This boundary condition is applied to a patch which bounds a solid body, wholly or partially. It represents the body as a lumped mass, i.e. by a single temperature T
which is fixed across the patch. The body has a volume V
which is either specified by the user, or is calculated when the patch describes a closed volume (including in 2D meshes). Starting from an initial, specified T
, the change in temperature is calculated over time according to an applied power source Q
and the heat transferred across the boundary (positive into the lumped mass):
More...
Public Member Functions | |
TypeName ("lumpedMassTemperature") | |
Runtime type information. More... | |
lumpedMassTemperatureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
lumpedMassTemperatureFvPatchScalarField (const lumpedMassTemperatureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fieldMapper &) | |
Construct by mapping given fixedValueTypeFvPatchField. More... | |
lumpedMassTemperatureFvPatchScalarField (const lumpedMassTemperatureFvPatchScalarField &)=delete | |
Disallow copy without setting internal field reference. More... | |
lumpedMassTemperatureFvPatchScalarField (const lumpedMassTemperatureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
Copy constructor 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 | map (const fvPatchScalarField &, const fieldMapper &) |
Map the given fvPatchField onto this fvPatchField. More... | |
virtual void | reset (const fvPatchScalarField &) |
Reset the fvPatchField to the given fvPatchField. More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
This boundary condition is applied to a patch which bounds a solid body, wholly or partially. It represents the body as a lumped mass, i.e. by a single temperature T
which is fixed across the patch. The body has a volume V
which is either specified by the user, or is calculated when the patch describes a closed volume (including in 2D meshes). Starting from an initial, specified T
, the change in temperature is calculated over time according to an applied power source Q
and the heat transferred across the boundary (positive into the lumped mass):
where
= | specified power source [W] | |
= | total calculated heat transferred across the boundary [W] | |
= | density [kg/m^3] | |
= | specific heat capacity [J/(kg K)] | |
= | volume of the lumped mass [m^3} |
Property | Description | Req'd? | Default |
---|---|---|---|
rho | density | yes | |
Cv | specific heat capacity | yes | |
T | temperature | yes | |
Q | power source | no | 0 |
volume | volume of the lumped mass | no | calculated |
Example of the boundary condition specification:
<patchName> { type lumpedMassTemperature; rho 1000; Cv 1300; T 500; Q constant 0.5; value uniform $T; // placeholder }
Definition at line 143 of file lumpedMassTemperatureFvPatchScalarField.H.
lumpedMassTemperatureFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 47 of file lumpedMassTemperatureFvPatchScalarField.C.
References dict, Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::Info, Foam::nl, fvPatchField< Type >::operator=(), and UniformDimensionedField< Type >::value().
lumpedMassTemperatureFvPatchScalarField | ( | const lumpedMassTemperatureFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fieldMapper & | mapper | ||
) |
Construct by mapping given fixedValueTypeFvPatchField.
onto a new patch
Definition at line 104 of file lumpedMassTemperatureFvPatchScalarField.C.
|
delete |
Disallow copy without setting internal field reference.
lumpedMassTemperatureFvPatchScalarField | ( | const lumpedMassTemperatureFvPatchScalarField & | ptf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Copy constructor setting internal field reference.
Definition at line 122 of file lumpedMassTemperatureFvPatchScalarField.C.
TypeName | ( | "lumpedMassTemperature" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 214 of file lumpedMassTemperatureFvPatchScalarField.H.
|
virtual |
Map the given fvPatchField onto this fvPatchField.
Definition at line 140 of file lumpedMassTemperatureFvPatchScalarField.C.
|
virtual |
Reset the fvPatchField to the given fvPatchField.
Used for mesh to mesh mapping
Definition at line 150 of file lumpedMassTemperatureFvPatchScalarField.C.
|
virtual |
Update the coefficients associated with the patch field.
Definition at line 159 of file lumpedMassTemperatureFvPatchScalarField.C.
References Foam::gSum(), thermophysicalTransportModel::kappaEff(), Foam::operator==(), and patchi.
|
virtual |
Write.
Definition at line 196 of file lumpedMassTemperatureFvPatchScalarField.C.
References fvPatchField< Type >::write(), and Foam::writeEntry().