solidDisplacementFoam::readThermalProperties: Cache "k" for thermal BCs
This commit is contained in:
@ -44,8 +44,8 @@ volScalarField DT
|
||||
);
|
||||
|
||||
|
||||
// Cache "C" for use in thermal BCs
|
||||
autoPtr<volScalarField> CPtr;
|
||||
// Cache "k" for use in thermal BCs
|
||||
autoPtr<volScalarField> rhoKPtr;
|
||||
|
||||
if (thermalStress)
|
||||
{
|
||||
@ -58,6 +58,8 @@ if (thermalStress)
|
||||
IOobject::NO_WRITE
|
||||
);
|
||||
|
||||
autoPtr<volScalarField> CPtr;
|
||||
|
||||
const dictionary& CDict(thermalProperties.subDict("C"));
|
||||
word CType(CDict.lookup("type"));
|
||||
if (CType == "uniform")
|
||||
@ -101,8 +103,6 @@ if (thermalStress)
|
||||
|
||||
volScalarField& C = CPtr();
|
||||
|
||||
autoPtr<volScalarField> rhoKPtr;
|
||||
|
||||
IOobject rhoKIO
|
||||
(
|
||||
"k",
|
||||
|
||||
Reference in New Issue
Block a user