mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: incorrect lookup name in ReynoldsAnalogy (fixes #1751)
- used fluidThermo::typeName instead of fluidThermo::dictName within the Cp() method.
This commit is contained in:
@ -5,7 +5,7 @@
|
|||||||
\\ / A nd | www.openfoam.com
|
\\ / A nd | www.openfoam.com
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2017 OpenCFD Ltd.
|
Copyright (C) 2017-2020 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -81,10 +81,10 @@ Foam::heatTransferCoeffModels::ReynoldsAnalogy::Cp(const label patchi) const
|
|||||||
const label n = mesh_.boundary()[patchi].size();
|
const label n = mesh_.boundary()[patchi].size();
|
||||||
return tmp<Field<scalar>>::New(n, CpRef_);
|
return tmp<Field<scalar>>::New(n, CpRef_);
|
||||||
}
|
}
|
||||||
else if (mesh_.foundObject<fluidThermo>(fluidThermo::typeName))
|
else if (mesh_.foundObject<fluidThermo>(fluidThermo::dictName))
|
||||||
{
|
{
|
||||||
const fluidThermo& thermo =
|
const fluidThermo& thermo =
|
||||||
mesh_.lookupObject<fluidThermo>(fluidThermo::typeName);
|
mesh_.lookupObject<fluidThermo>(fluidThermo::dictName);
|
||||||
|
|
||||||
const scalarField& pp = thermo.p().boundaryField()[patchi];
|
const scalarField& pp = thermo.p().boundaryField()[patchi];
|
||||||
const scalarField& Tp = thermo.T().boundaryField()[patchi];
|
const scalarField& Tp = thermo.T().boundaryField()[patchi];
|
||||||
|
|||||||
Reference in New Issue
Block a user