Employs a lumped mass model for temperature. More...
Public Member Functions | |
TypeName ("lumpedMassWallTemperature") | |
Runtime type information. More... | |
lumpedMassWallTemperatureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
Construct from patch and internal field. More... | |
lumpedMassWallTemperatureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
lumpedMassWallTemperatureFvPatchScalarField (const lumpedMassWallTemperatureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given. More... | |
lumpedMassWallTemperatureFvPatchScalarField (const lumpedMassWallTemperatureFvPatchScalarField &) | |
Construct as copy. More... | |
virtual tmp< fvPatchScalarField > | clone () const |
Construct and return a clone. More... | |
lumpedMassWallTemperatureFvPatchScalarField (const lumpedMassWallTemperatureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< fvPatchScalarField > | clone (const DimensionedField< scalar, volMesh > &iF) const |
Construct and return a clone setting internal field reference. More... | |
virtual void | autoMap (const fvPatchFieldMapper &) |
Map (and resize as needed) from self given a mapping object. More... | |
virtual void | rmap (const fvPatchField< scalar > &, const labelList &) |
Reverse map the given fvPatchField onto this fvPatchField. More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
void | write (Ostream &) const |
Write. More... | |
![]() | |
temperatureCoupledBase (const fvPatch &patch, const word &calculationMethod, const word &kappaName, const word &alphaAniName, const word &alphaName) | |
Construct from patch and K name. More... | |
temperatureCoupledBase (const fvPatch &patch, const dictionary &dict) | |
Construct from patch and dictionary. More... | |
temperatureCoupledBase (const fvPatch &patch, const temperatureCoupledBase &base) | |
Construct from patch and temperatureCoupledBase. More... | |
temperatureCoupledBase (const temperatureCoupledBase &) | |
Construct as copy. More... | |
virtual | ~temperatureCoupledBase ()=default |
Destructor. More... | |
word | KMethod () const |
Method to obtain K. More... | |
const word & | kappaName () const |
Name of thermal conductivity field. More... | |
const word & | alphaName () const |
Name of thermal diffusivity field. More... | |
virtual tmp< scalarField > | kappa (const scalarField &Tp) const |
Given patch temperature calculate corresponding K field. More... | |
virtual tmp< scalarField > | alpha (const scalarField &Tp) const |
Given patch temperature calculate corresponding alphaEff field. More... | |
void | write (Ostream &os) const |
Write. More... | |
Additional Inherited Members | |
![]() | |
enum | KMethodType { mtFluidThermo, mtSolidThermo, mtDirectionalSolidThermo, mtLookup, mtFunction } |
Type of supplied Kappa. More... | |
![]() | |
const fvPatch & | patch_ |
Underlying patch. More... | |
const KMethodType | method_ |
How to get K. More... | |
const word | kappaName_ |
Name of thermal conductivity field (if looked up from database) More... | |
const word | alphaAniName_ |
Name of the non-Isotropic alpha (default: Anialpha) More... | |
const word | alphaName_ |
Name of thermal diffusivity. More... | |
autoPtr< PatchFunction1< scalar > > | kappaFunction1_ |
Function1 for kappa. More... | |
autoPtr< PatchFunction1< scalar > > | alphaFunction1_ |
Function1 for alpha. More... | |
![]() | |
static const Enum< KMethodType > | KMethodTypeNames_ |
Employs a lumped mass model for temperature.
It considers a single temperature value for the whole patch and evaluates the temperature evolution using the net heat flux into the patch.
Property | Description | Required | Default value |
---|---|---|---|
kappaMethod | thermal conductivity option | yes | |
Cp | Heat capacity [J/kg.K] | yes | |
mass | Total mass [kg] | yes |
Example of the boundary condition specification:
myPatch { type lumpedMassWallTemperature; kappaMethod fluidThermo; kappa none; mass 1000; Cp 4100; value uniform 300.0; }
Definition at line 98 of file lumpedMassWallTemperatureFvPatchScalarField.H.
lumpedMassWallTemperatureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 38 of file lumpedMassWallTemperatureFvPatchScalarField.C.
Referenced by lumpedMassWallTemperatureFvPatchScalarField::clone().
lumpedMassWallTemperatureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 81 of file lumpedMassWallTemperatureFvPatchScalarField.C.
lumpedMassWallTemperatureFvPatchScalarField | ( | const lumpedMassWallTemperatureFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given.
lumpedMassWallTemperatureFvPatchScalarField onto a new patch
Definition at line 64 of file lumpedMassWallTemperatureFvPatchScalarField.C.
lumpedMassWallTemperatureFvPatchScalarField | ( | const lumpedMassWallTemperatureFvPatchScalarField & | tppsf | ) |
Construct as copy.
Definition at line 103 of file lumpedMassWallTemperatureFvPatchScalarField.C.
lumpedMassWallTemperatureFvPatchScalarField | ( | const lumpedMassWallTemperatureFvPatchScalarField & | tppsf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 117 of file lumpedMassWallTemperatureFvPatchScalarField.C.
TypeName | ( | "lumpedMassWallTemperature" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 158 of file lumpedMassWallTemperatureFvPatchScalarField.H.
References lumpedMassWallTemperatureFvPatchScalarField::lumpedMassWallTemperatureFvPatchScalarField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 175 of file lumpedMassWallTemperatureFvPatchScalarField.H.
References lumpedMassWallTemperatureFvPatchScalarField::lumpedMassWallTemperatureFvPatchScalarField().
|
virtual |
Map (and resize as needed) from self given a mapping object.
Implements temperatureCoupledBase.
Definition at line 133 of file lumpedMassWallTemperatureFvPatchScalarField.C.
|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Implements temperatureCoupledBase.
Definition at line 143 of file lumpedMassWallTemperatureFvPatchScalarField.C.
References Foam::refCast().
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 160 of file lumpedMassWallTemperatureFvPatchScalarField.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), forAll, Foam::gAverage(), Foam::gMax(), Foam::gMin(), Foam::gSum(), Foam::Info, temperatureCoupledBase::kappa(), Foam::foamVersion::patch, tmp< T >::ref(), Foam::fvc::snGrad(), and timeIndex.
void write | ( | Ostream & | os | ) | const |
Write.
Definition at line 223 of file lumpedMassWallTemperatureFvPatchScalarField.C.
References os(), Foam::vtk::write(), temperatureCoupledBase::write(), and Ostream::writeEntry().