IAPWS-IF97 Properties of Water and Steam library compatible for OpenFOAM v8.
Installation introduction
run following command in terminal to compile the lib
wmake libso
usage
add the compiled lib in file controlDict like that:
libs
(
"libfluidThermophysicalModelsNew.so"
)
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 8
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object thermophysicalProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
thermoType IAPWSThermo;
run the case as normal:
decomposePar
mpirun -np 4 buoyantSimpleFoam -parallel
result of test case buoyantCavity_IAWPS: