1Info<<
"Reading thermal properties\n" <<
endl;
3IOdictionary thermalProperties
10 IOobject::MUST_READ_IF_MODIFIED,
15bool thermalStress(thermalProperties.get<
bool>(
"thermalStress"));
49 autoPtr<volScalarField>
CPtr;
60 const dictionary&
CDict(thermalProperties.subDict(
"C"));
64 scalar CValue(
CDict.get<scalar>(
"value"));
75 dimensionSet(0, 2, -2 , -1, 0),
82 else if (
CType ==
"field")
84 CIO.readOpt(IOobject::MUST_READ);
98 <<
"Valid type entries are uniform or field for C"
115 const dictionary&
kDict(thermalProperties.subDict(
"k"));
119 scalar rhoKValue(
kDict.get<scalar>(
"value"));
130 dimensionSet(1, 1, -3 , -1, 0),
137 else if (
kType ==
"field")
139 rhoKIO.readOpt(IOobject::MUST_READ);
153 <<
"Valid type entries are uniform or field for K"
154 <<
abort(FatalError);
171 const dictionary&
alphaDict(thermalProperties.subDict(
"alpha"));
176 scalar alphaValue(
alphaDict.get<scalar>(
"value"));
194 alphaIO.readOpt(IOobject::MUST_READ);
208 <<
"Valid type entries are uniform or field for alpha"
209 <<
abort(FatalError);
214 Info<<
"Normalising k : k/rho\n" << endl;
217 Info<<
"Calculating thermal coefficients\n" << endl;
219 threeKalpha = threeK*
alpha;
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
IOobject alphaIO("alpha", runTime.timeName(0), mesh, IOobject::NO_READ, IOobject::NO_WRITE)
autoPtr< volScalarField > rhoKPtr
const dictionary & alphaDict(thermalProperties.subDict("alpha"))
IOobject rhoKIO("k", runTime.timeName(0), mesh, IOobject::NO_READ, IOobject::NO_WRITE)
word CType(CDict.get< word >("type"))
const dictionary & kDict(thermalProperties.subDict("k"))
IOobject CIO("C", runTime.timeName(0), mesh, IOobject::NO_READ, IOobject::NO_WRITE)
Info<< "Reading thermal properties\n"<< endl;IOdictionary thermalProperties(IOobject("thermalProperties", runTime.constant(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE));bool thermalStress(thermalProperties.get< bool >("thermalStress"));volScalarField threeKalpha(IOobject("threeKalpha", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), mesh, dimensionedScalar(dimensionSet(0, 2, -2, -1, 0), Zero));volScalarField DT(IOobject("DT", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), mesh, dimensionedScalar(dimensionSet(0, 2, -1, 0, 0), Zero));if(thermalStress){ autoPtr< volScalarField > CPtr
const dictionary & CDict(thermalProperties.subDict("C"))
autoPtr< volScalarField > alphaPtr
word kType(kDict.get< word >("type"))
word alphaType(alphaDict.get< word >("type"))