eConstThermo: Corrected entropy function
Resolves bug-report https://bugs.openfoam.org/view.php?id=2436
This commit is contained in:
parent
d5dd04e0a6
commit
100d9a9dd1
1 changed files with 2 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
|||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
|
|
@ -146,7 +146,7 @@ inline Foam::scalar Foam::eConstThermo<EquationOfState>::s
|
|||
const scalar T
|
||||
) const
|
||||
{
|
||||
return cp()*log(T/Tstd) + EquationOfState::s(p, T);
|
||||
return cp(p, T)*log(T/Tstd) + EquationOfState::s(p, T);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue