From 4cffcbd440b4ef14b7becd8c8a8bfad3a5fee5a6 Mon Sep 17 00:00:00 2001 From: andy <a.heather@opencfd.co.uk> Date: Fri, 15 Oct 2010 14:51:20 +0100 Subject: [PATCH] BUG: Corrected Hf and Sf units for hPoly thermo on write --- .../specie/thermo/hPolynomial/hPolynomialThermo.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/thermophysicalModels/specie/thermo/hPolynomial/hPolynomialThermo.C b/src/thermophysicalModels/specie/thermo/hPolynomial/hPolynomialThermo.C index 8fd3eadcd3a..ff371e23039 100644 --- a/src/thermophysicalModels/specie/thermo/hPolynomial/hPolynomialThermo.C +++ b/src/thermophysicalModels/specie/thermo/hPolynomial/hPolynomialThermo.C @@ -93,8 +93,8 @@ void Foam::hPolynomialThermo<EquationOfState, PolySize>::write ) const { EquationOfState::write(os); - os.writeKeyword("Hf") << Hf_ << token::END_STATEMENT << nl; - os.writeKeyword("Sf") << Sf_ << token::END_STATEMENT << nl; + os.writeKeyword("Hf") << Hf_/this->W() << token::END_STATEMENT << nl; + os.writeKeyword("Sf") << Sf_/this->W() << token::END_STATEMENT << nl; os.writeKeyword("cpPolynomial") << cpPolynomial_/this->W() << token::END_STATEMENT << nl; } -- GitLab