forces: Updated reading of 'nu'

Resolves bug-report http://bugs.openfoam.org/view.php?id=2158
This commit is contained in:
Henry Weller
2016-07-22 09:56:02 +01:00
parent 08a7438038
commit 02c9367dee

View File

@ -291,7 +291,12 @@ Foam::tmp<Foam::volScalarField> Foam::functionObjects::forces::mu() const
const dictionary& transportProperties =
obr_.lookupObject<dictionary>("transportProperties");
dimensionedScalar nu(transportProperties.lookup("nu"));
dimensionedScalar nu
(
"nu",
dimViscosity,
transportProperties.lookup("nu")
);
return rho()*nu;
}