Skip to content
Permalink
Browse files

equationOfState::perfectFluid: Added Cp departure function

  • Loading branch information...
Henry Weller
Henry Weller committed Feb 14, 2019
1 parent 7a398ae commit dfc10f67a45fb4b82da42c6bb631744b63c113e1
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/thermophysicalModels/specie/equationOfState/perfectFluid/perfectFluidI.H
@@ -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();
}


0 comments on commit dfc10f6

Please sign in to comment.
You can’t perform that action at this time.