1 Info<<
"Reading thermal properties\n" <<
endl;
3 IOdictionary thermalProperties
10 IOobject::MUST_READ_IF_MODIFIED,
15 bool thermalStress(thermalProperties.get<
bool>(
"thermalStress"));
49 autoPtr<volScalarField>
CPtr;
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" 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" 176 scalar alphaValue(
alphaDict.get<scalar>(
"value"));
194 alphaIO.readOpt(IOobject::MUST_READ);
208 <<
"Valid type entries are uniform or field for alpha" 214 Info<<
"Normalising k : k/rho\n" <<
endl;
217 Info<<
"Calculating thermal coefficients\n" <<
endl;
219 threeKalpha = threeK*
alpha;
word CType(CDict.get< word >("type"))
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
Info<< "Reading thermal properties\"<< 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
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
IOobject rhoKIO("k", Time::timeName(0), mesh, IOobject::NO_READ, IOobject::NO_WRITE)
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
const dictionary & alphaDict(thermalProperties.subDict("alpha"))
IOobject alphaIO("alpha", Time::timeName(0), mesh, IOobject::NO_READ, IOobject::NO_WRITE)
Ostream & endl(Ostream &os)
Add newline and flush stream.
label k
Boltzmann constant.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
autoPtr< volScalarField > rhoKPtr
const dimensionSet dimTemperature(0, 0, 0, 1, 0, 0, 0)
volScalarField & alpha
Fine-structure constant: default SI units: [].
word alphaType(alphaDict.get< word >("type"))
errorManip< error > abort(error &err)
IOobject CIO("C", Time::timeName(0), mesh, IOobject::NO_READ, IOobject::NO_WRITE)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
autoPtr< volScalarField > alphaPtr
messageStream Info
Information stream (stdout output on master, null elsewhere)
const dictionary & kDict(thermalProperties.subDict("k"))
const dictionary & CDict(thermalProperties.subDict("C"))
word kType(kDict.get< word >("type"))
static constexpr const zero Zero
Global zero (0)