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
|
// 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",
|
||||||
|
|||||||
Reference in New Issue
Block a user