Where is the Boltzmann constant value set?
Hello,
I am wondering where the Boltzmann constant value is set in OpenFOAM. The variable k is defined under src/OpenFOAM/global/constants/fundamental/fundamentalConstants.C. I expected to find the value set here too, like for the Avogadro constant. (Actually, NA is the only value set her.) Code:
defineDimensionedConstantWithDefault If anyone can point me in the right direction, I would be very grateful. Regards, hester |
The Boltzman's constant is is taken as variable by fundamentalConstants.H. Actuallyit is defined at line 41 of file LISASMDCalcMethod2.H. Check https://cpp.openfoam.org/v5/fundamen...stants_8H.html.
|
Hello msaravia,
thank you for your reply. If you look at your mentioned source code, you will see that k in this file is not the Boltzmann constant but it is an integer used for iteration. This is the file the doxygen documentation will lead you to if your looking for physicoChemical::k (as mentioned in my initial post). Regards, hester |
Hi Hester,
The Boltzmann constant value is given in $WM_PROJECT_DIR/etc/controlDict Code:
DimensionedConstants Vince |
Hi Vince,
this is exactly what I was looking for. Thank you! hester |
All times are GMT -4. The time now is 15:50. |