CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Where is physicoChemical::k defined? (http://www.cfd-online.com/Forums/openfoam-programming-development/117755-where-physicochemical-k-defined.html)

santiagomarquezd May 14, 2013 15:47

Where is physicoChemical::k defined?
 
I was looking for the physicoChemical::k definition but I couldn't find it. Where is it located in FOAM 2.2.x or 2.2? The best I could find was what is in fundamentalConstants.C, but i couldn't find the point where the value 1.3806488*10-23 is assigned.

Regards.

wyldckat May 14, 2013 17:08

Greetings Santiago,

Remember one of the new features in 2.2 for dynamic units and constants? http://www.openfoam.org/version2.2.0...me-control.php

Check the list "DimensionedConstants" in "$WM_PROJECT_DIR/etc/controlDict". To see where it's located, run:
Code:

echo $WM_PROJECT_DIR/etc/controlDict
You can also check it online, in particular line 924: https://github.com/OpenFOAM/OpenFOAM...ntrolDict#L924
It's dynamically loaded at runtime! :D

Best regards,
Bruno

santiagomarquezd May 15, 2013 10:07

Thanks Bruno, now I'm understanding the presence of the defineDimensionedConstant* macros, they read the constant from the definition file. I checked the 1.7.x distro and the k constant was hard-coded.

Regards.


All times are GMT -4. The time now is 17:37.