Skip to content
Snippets Groups Projects
Commit 62fb508c authored by Henry Weller's avatar Henry Weller
Browse files

functionObjects::forceCoeffs: Corrected setting of rhoRef for compressible flow

Resolves bug-report https://bugs.openfoam.org/view.php?id=2387
parent 6fc22deb
Branches
Tags
No related merge requests found
......@@ -163,6 +163,9 @@ bool Foam::functionObjects::forceCoeffs::read(const dictionary& dict)
// Free stream velocity magnitude
dict.lookup("magUInf") >> magUInf_;
// Reference (free stream) density
dict.lookup("rhoInf") >> rhoRef_;
// Reference length and area scales
dict.lookup("lRef") >> lRef_;
dict.lookup("Aref") >> Aref_;
......
......@@ -638,7 +638,7 @@ bool Foam::functionObjects::forces::read(const dictionary& dict)
// Reference density needed for incompressible calculations
if (rhoName_ == "rhoInf")
{
rhoRef_ = readScalar(dict.lookup("rhoInf"));
dict.lookup("rhoInf") >> rhoRef_;
}
// Reference pressure, 0 by default
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment