solidDisplacementFoam::readThermalProperties: Cache "k" for thermal BCs

This commit is contained in:
Henry Weller
2019-02-08 17:07:57 +00:00
parent 11fa53fb66
commit b3003ab5be

View File

@ -44,8 +44,8 @@ volScalarField DT
); );
// Cache "C" for use in thermal BCs // Cache "k" for use in thermal BCs
autoPtr<volScalarField> CPtr; autoPtr<volScalarField> rhoKPtr;
if (thermalStress) if (thermalStress)
{ {
@ -58,6 +58,8 @@ if (thermalStress)
IOobject::NO_WRITE IOobject::NO_WRITE
); );
autoPtr<volScalarField> CPtr;
const dictionary& CDict(thermalProperties.subDict("C")); const dictionary& CDict(thermalProperties.subDict("C"));
word CType(CDict.lookup("type")); word CType(CDict.lookup("type"));
if (CType == "uniform") if (CType == "uniform")
@ -101,8 +103,6 @@ if (thermalStress)
volScalarField& C = CPtr(); volScalarField& C = CPtr();
autoPtr<volScalarField> rhoKPtr;
IOobject rhoKIO IOobject rhoKIO
( (
"k", "k",