CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   thermophysicalProperties for multicompound (https://www.cfd-online.com/Forums/openfoam-solving/254719-thermophysicalproperties-multicompound.html)

LIYAFEI February 27, 2024 10:03

thermophysicalProperties for multicompound
 
Dear OpenFOAMer


Recently, I use the openfoam 11 (foundation edition) to simulate a multicompound gas + solid case with foamMultiRun.


For the gas, thermophysicalProperties was set as follows:



thermoType
{
type heRhoThermo;
mixture coefficientWilkeMulticomponentMixture;
transport polynomial;
thermo hPolynomial;
equationOfState icoPolynomial;
specie specie;
energy sensibleEnthalpy;
}


but, the transport, thermodynamics and equationOfState could not wok


When I use :
thermoType
{
type heRhoThermo;
mixture coefficientWilkeMulticomponentMixture;
transport sutherland;
thermo janaf;
equationOfState perfectGas;
specie specie;
energy sensibleEnthalpy;
}

It is ok.


So I wanna know what is wrong with the code.
And when I use the transport (polynomial), thermo (hPolynomial) and equationOfState (icoPolynomial), should I need to recompile openfoam?

LIYAFEI February 27, 2024 10:05

For example, there is one specie property

N2
{
specie
{
molWeight 28.0134;
}
equationOfState
{
rhoCoeffs<8> ( 0.27748668 0.00015383 -0.0126020 0 0 0 0 0 );
}
thermodynamics
{
Hf 0;
Sf 0;
CpCoeffs<8> ( 979.08 0.41787 -0.0011761 1.6742e-06 -7.2559e-10 0 0 0 );
}
transport
{
muCoeffs<8> ( -1.59498e-05 -5.64465e-09 2.003549e-6 0 0 0 0 0 );
kappaCoeffs<8> ( -0.0236496 1.069544e-05 0.002561146 0 0 0 0 0 );
}
}

LIYAFEI February 28, 2024 04:12

From the guidance, I know equationOfState icoPolynomial could not be used for mixture.
So know, I use equationOfState perfectGas.


When conducting single-core simulation, there are no issues, but parallel simulation returns an error.


All times are GMT -4. The time now is 18:12.