equationOfState::perfectFluid: Added enthalpy departure function

Updated steamInjection to solve for internal energy for the water.
This commit is contained in:
Henry Weller
2018-10-18 12:10:28 +01:00
parent 62d278467c
commit ffc354252f
2 changed files with 4 additions and 4 deletions

View File

@ -95,7 +95,9 @@ inline Foam::scalar Foam::perfectFluid<Specie>::rho(scalar p, scalar T) const
template<class Specie>
inline Foam::scalar Foam::perfectFluid<Specie>::H(scalar p, scalar T) const
{
return 0;
const scalar RT = this->R()*T;
return -rho0_*RT/(rho0_ + p/RT);
}

View File

@ -23,11 +23,9 @@ thermoType
thermo hRefConst;
equationOfState perfectFluid;
specie specie;
energy sensibleEnthalpy;
energy sensibleInternalEnergy;
}
dpdt yes;
pressureWorkAlphaLimit 0;
mixture