mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: pressureTools - updated so that (reference) pressure field not necessary on construction
This commit is contained in:
@ -268,11 +268,9 @@ void Foam::pressureTools::read(const dictionary& dict)
|
|||||||
dict.readIfPresent("UName", UName_);
|
dict.readIfPresent("UName", UName_);
|
||||||
dict.readIfPresent("rhoName", rhoName_);
|
dict.readIfPresent("rhoName", rhoName_);
|
||||||
|
|
||||||
const volScalarField& p = obr_.lookupObject<volScalarField>(pName_);
|
if (rhoName_ == "rhoInf")
|
||||||
|
|
||||||
if (p.dimensions() != dimPressure)
|
|
||||||
{
|
{
|
||||||
dict.lookup("rhoRef") >> rhoInf_;
|
dict.lookup("rhoInf") >> rhoInf_;
|
||||||
}
|
}
|
||||||
|
|
||||||
dict.lookup("calcTotal") >> calcTotal_;
|
dict.lookup("calcTotal") >> calcTotal_;
|
||||||
|
|||||||
Reference in New Issue
Block a user