mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: forceCoeffs - corrected handling of pDyn for compressible cases. Fixes #436
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation | Copyright (C) 2015-2016 OpenCFD Ltd.
|
\\/ M anipulation | Copyright (C) 2015-2017 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -250,6 +250,14 @@ bool Foam::functionObjects::forceCoeffs::read(const dictionary& dict)
|
|||||||
// Free stream velocity magnitude
|
// Free stream velocity magnitude
|
||||||
dict.lookup("magUInf") >> magUInf_;
|
dict.lookup("magUInf") >> magUInf_;
|
||||||
|
|
||||||
|
// If case is compressible we must read rhoInf (store in rhoRef_) to
|
||||||
|
// calculate the reference dynamic pressure
|
||||||
|
// - note: for incompressible, rhoRef_ is already initialised
|
||||||
|
if (rhoName_ != "rhoInf")
|
||||||
|
{
|
||||||
|
dict.lookup("rhoInf") >> rhoRef_;
|
||||||
|
}
|
||||||
|
|
||||||
// Reference length and area scales
|
// Reference length and area scales
|
||||||
dict.lookup("lRef") >> lRef_;
|
dict.lookup("lRef") >> lRef_;
|
||||||
dict.lookup("Aref") >> Aref_;
|
dict.lookup("Aref") >> Aref_;
|
||||||
|
|||||||
Reference in New Issue
Block a user