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/)
-   -   Multiregion and multiphase solver (https://www.cfd-online.com/Forums/openfoam-solving/215092-multiregion-multiphase-solver.html)

iconde February 22, 2019 03:21

Multiregion and multiphase solver
 
Hi!

I'm trying to solve a multiregion case, where in one of the regions, I need to have gas and liquid. I can do that using other solvers which implements multiphase functions, but I don't know how to do it in a multiregion enviroment. My idea was to use thermophysicalProperties to define each of the phases, but something is not well defined since I've got always negative temperature error. My actual thermophysicalProperties file is:

thermoType
{
type heRhoThermo;
mixture multiComponentMixture;
transport const;
thermo hConst;
equationOfState rhoConst;
specie specie;
energy sensibleEnthalpy;
}

species
(
water
air
air2
);

water
{
specie
{
molWeight 18;
}
equationOfState
{
rho 500;
}
thermodynamics
{
Cp 4195;
Hf 0;
}
transport
{
mu 3.645e-4;
Pr 2.289;
}
}
air
{
specie
{
molWeight 28.9;
}
equationOfState
{
rho 100;
}
thermodynamics
{
Cp 1007;
Hf 0;
}
transport
{
mu 1.84e-05;
Pr 0.7;
}
}

air2
{
specie
{
molWeight 28.9;
}
equationOfState
{
rho 100;
}
thermodynamics
{
Cp 1007;
Hf 0;
}
transport
{
mu 1.84e-05;
Pr 0.7;
}
}


Anyone knows how to do it properly? Thanks :)


All times are GMT -4. The time now is 11:15.