1 Info<<
"Reading thermal properties\n" <<
endl;
3 IOdictionary thermalProperties
10 IOobject::MUST_READ_IF_MODIFIED,
15 Switch thermalStress(thermalProperties.lookup(
"thermalStress"));
50 autoPtr<volScalarField>
CPtr;
61 const dictionary&
CDict(thermalProperties.subDict(
"C"));
76 dimensionSet(0, 2, -2 , -1, 0),
79 zeroGradientFvPatchField<scalar>::typeName
84 else if (
CType ==
"field")
86 CIO.readOpt() = IOobject::MUST_READ;
101 "readThermalProperties.H" 102 ) <<
"Valid type entries are uniform or field for C" 119 const dictionary&
kDict(thermalProperties.subDict(
"k"));
134 dimensionSet(1, 1, -3 , -1, 0),
137 zeroGradientFvPatchField<scalar>::typeName
142 else if (
kType ==
"field")
144 rhoKIO.readOpt() = IOobject::MUST_READ;
159 "readThermalProperties.H" 160 ) <<
"Valid type entries are uniform or field for K" 178 const dictionary&
alphaDict(thermalProperties.subDict(
"alpha"));
196 zeroGradientFvPatchField<scalar>::typeName
202 alphaIO.readOpt() = IOobject::MUST_READ;
217 "readThermalProperties.H" 218 ) <<
"Valid type entries are uniform or field for alpha" 224 Info<<
"Normalising k : k/rho\n" <<
endl;
227 Info<<
"Calculating thermal coefficients\n" <<
endl;
229 threeKalpha = threeK*
alpha;
const dictionary & CDict(thermalProperties.subDict("C"))
autoPtr< volScalarField > rhoKPtr
word kType(kDict.lookup("type"))
IOobject alphaIO("alpha", runTime.timeName(0), mesh, IOobject::NO_READ, IOobject::NO_WRITE)
const dictionary & alphaDict(thermalProperties.subDict("alpha"))
word alphaType(alphaDict.lookup("type"))
Info<< "Reading thermal properties\n"<< endl;IOdictionary thermalProperties(IOobject("thermalProperties", runTime.constant(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE));Switch thermalStress(thermalProperties.lookup("thermalStress"));volScalarField threeKalpha(IOobject("threeKalpha", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), mesh, dimensionedScalar("0", dimensionSet(0, 2,-2,-1, 0), 0.0));volScalarField DT(IOobject("DT", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), mesh, dimensionedScalar("0", dimensionSet(0, 2,-1, 0, 0), 0.0));if(thermalStress){autoPtr< volScalarField > CPtr
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
Ostream & endl(Ostream &os)
Add newline and flush stream.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
label k
Boltzmann constant.
word CType(CDict.lookup("type"))
const dictionary & kDict(thermalProperties.subDict("k"))
IOobject CIO("C", runTime.timeName(0), mesh, IOobject::NO_READ, IOobject::NO_WRITE)
errorManip< error > abort(error &err)
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
IOobject rhoKIO("k", runTime.timeName(0), mesh, IOobject::NO_READ, IOobject::NO_WRITE)
autoPtr< volScalarField > alphaPtr
const dimensionSet dimTemperature(0, 0, 0, 1, 0, 0, 0)
volScalarField & alpha
Fine-structure constant: default SI units: [].
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.