equationOfState::perfectFluid: Added Cp departure function
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2012-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -101,7 +101,9 @@ inline Foam::scalar Foam::perfectFluid<Specie>::H(scalar p, scalar T) const
|
||||
template<class Specie>
|
||||
inline Foam::scalar Foam::perfectFluid<Specie>::Cp(scalar p, scalar T) const
|
||||
{
|
||||
return 0;
|
||||
return
|
||||
sqr(p/(rho(p, T)*T))/this->R()
|
||||
- sqr(Pstd/(rho(Pstd, T)*T))/this->R();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user