mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Use basicThermo::dictName rather than hard-coding "thermophysicalProperties"
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user