How RR is defined in OpenFOAM. We won’t dig into the code too much here. I come up with writing this when I read binary.C
.
RR is defined in thermodynamicConstants.C
as:
1 | namespace Foam |
R is defined in physicoChemicalConstants.H
as:
1 | namespace Foam |
If you want to use these two values, include constants.H
and librarylibOpenFOAM
when make the file. Test them use the following code:
1 | Info << "RR is " << Foam::constant::thermodynamic::RR << nl; |
Remember here RR
is a dimensionless scalar and R
is a dimensioned scalar.