functionObjects::forces: Construct nu without need to specify name and dimensions

Resolved patch request https://bugs.openfoam.org/view.php?id=2880
This commit is contained in:
Henry Weller
2018-03-15 00:44:33 +00:00
parent 81947c8085
commit 0fd3db427f

View File

@ -261,7 +261,12 @@ Foam::functionObjects::forces::devRhoReff() const
const dictionary& transportProperties =
obr_.lookupObject<dictionary>("transportProperties");
dimensionedScalar nu(transportProperties.lookup("nu"));
dimensionedScalar nu
(
"nu",
dimViscosity,
transportProperties.lookup("nu")
);
const volVectorField& U = obr_.lookupObject<volVectorField>(UName_);