Use basicThermo::dictName rather than hard-coding "thermophysicalProperties"

This commit is contained in:
Henry Weller
2015-06-24 10:44:57 +01:00
parent b73fe0d4c3
commit 5e05479e2a
22 changed files with 34 additions and 33 deletions

View File

@ -266,10 +266,10 @@ Foam::tmp<Foam::volSymmTensorField> Foam::forces::devRhoReff() const
Foam::tmp<Foam::volScalarField> Foam::forces::mu() const
{
if (obr_.foundObject<fluidThermo>("thermophysicalProperties"))
if (obr_.foundObject<fluidThermo>(basicThermo::dictName))
{
const fluidThermo& thermo =
obr_.lookupObject<fluidThermo>("thermophysicalProperties");
obr_.lookupObject<fluidThermo>(basicThermo::dictName);
return thermo.mu();
}