|
[Sponsors] |
Getting access to DB() inside perfectGas class |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 3, 2021, 17:10 |
Getting access to DB() inside perfectGas class
|
#1 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51 |
Hey everybody,
does anyone know how I could get access to the db() registry inside the perfectGas class? Out of the box I guess it is not possible as this class and all inherited classes don't have any reference to the mesh object nor any other related classes. Probably it is not possible here.
__________________
Keep foaming, Tobias Holzmann |
|
July 6, 2021, 09:49 |
|
#2 |
New Member
Omair
Join Date: May 2017
Posts: 9
Rep Power: 9 |
I have a similar question. Can we access density inside the perfectGas class?.
|
|
July 8, 2021, 08:07 |
|
#3 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,695
Rep Power: 40 |
Quote:
Not sure how/why it would be reasonable. If we simply view perfect-gas like any function such as sin(), cos() - we wouldn't really have any database connection for them either. |
||
July 8, 2021, 09:03 |
|
#4 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51 |
Hey Mark,
yes I was checking the implementation and as you state, it is just a «stupid» function. The reason why I wanted to have access to the db() was the following:
__________________
Keep foaming, Tobias Holzmann |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Transport models in reactingFoam | kuria | OpenFOAM Running, Solving & CFD | 1 | January 22, 2021 04:50 |
Read from dictionary inside new smoother class | TommyGun | OpenFOAM Programming & Development | 3 | May 22, 2020 18:08 |
Type mismatch: Assigning a scalar to a Field<Type> inside templated BC code | karlli | OpenFOAM Programming & Development | 2 | August 28, 2017 01:25 |
Thermophysical properties for bouyantpimplefoam/chtmultiRegionfoam --water (any liq) | manuc | OpenFOAM Running, Solving & CFD | 10 | November 16, 2016 07:44 |
Read a dictionary inside the intermediate library | Sören Sander | OpenFOAM Programming & Development | 4 | July 1, 2016 08:16 |