Employs a lumped mass model for temperature. More...
#include <lumpedMassWallTemperatureFvPatchScalarField.H>


Public Member Functions | |
| TypeName ("lumpedMassWallTemperature") | |
| Runtime type information. | |
| lumpedMassWallTemperatureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
| Construct from patch and internal field. | |
| lumpedMassWallTemperatureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. | |
| lumpedMassWallTemperatureFvPatchScalarField (const lumpedMassWallTemperatureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given. | |
| lumpedMassWallTemperatureFvPatchScalarField (const lumpedMassWallTemperatureFvPatchScalarField &) | |
| Construct as copy. | |
| lumpedMassWallTemperatureFvPatchScalarField (const lumpedMassWallTemperatureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
| Construct as copy setting internal field reference. | |
| virtual tmp< fvPatchField< scalar > > | clone () const |
| Return a clone. | |
| virtual tmp< fvPatchField< scalar > > | clone (const DimensionedField< scalar, volMesh > &iF) const |
| Clone with an internal field reference. | |
| virtual void | autoMap (const fvPatchFieldMapper &) |
| Map (and resize as needed) from self given a mapping object. | |
| virtual void | rmap (const fvPatchField< scalar > &, const labelList &) |
| Reverse map the given fvPatchField onto this fvPatchField. | |
| virtual void | updateCoeffs () |
| Update the coefficients associated with the patch field. | |
| void | write (Ostream &) const |
| Write. | |
| Public Member Functions inherited from temperatureCoupledBase | |
| temperatureCoupledBase (const fvPatch &patch, const KMethodType method=KMethodType::mtFluidThermo) | |
| Default construct from patch, using fluidThermo (default) or specified method. | |
| temperatureCoupledBase (const fvPatch &patch, const KMethodType method, const word &kappaName, const word &alphaName, const word &alphaAniName) | |
| Construct from patch, method type and field names. | |
| temperatureCoupledBase (const fvPatch &patch, const dictionary &dict) | |
| Construct from patch and dictionary. | |
| temperatureCoupledBase (const fvPatch &patch, const temperatureCoupledBase &base) | |
| Construct from patch and temperatureCoupledBase. | |
| temperatureCoupledBase (const temperatureCoupledBase &base) | |
| Copy construct. | |
| virtual | ~temperatureCoupledBase ()=default |
| Destructor. | |
| word | KMethod () const |
| Method to obtain K. | |
| const word & | kappaName () const noexcept |
| Name of thermal conductivity field. | |
| const word & | alphaName () const noexcept |
| Name of thermal diffusivity field. | |
| virtual tmp< scalarField > | kappa (const scalarField &Tp) const |
| Given patch temperature calculate corresponding K field. | |
| virtual tmp< scalarField > | alpha (const scalarField &Tp) const |
| Given patch temperature calculate corresponding alphaEff field. | |
| void | write (Ostream &os) const |
| Write. | |
Additional Inherited Members | |
| Public Types inherited from temperatureCoupledBase | |
| enum | KMethodType { mtFluidThermo , mtSolidThermo , mtDirectionalSolidThermo , mtLookup , mtFunction } |
| Type of supplied Kappa. More... | |
| Protected Attributes inherited from temperatureCoupledBase | |
| const fvPatch & | patch_ |
| Underlying patch. | |
| const KMethodType | method_ |
| How to get K. | |
| const word | kappaName_ |
| Name of thermal conductivity field (if looked up from database). | |
| const word | alphaName_ |
| Name of thermal diffusivity. | |
| const word | alphaAniName_ |
| Name of the non-isotropic alpha (for directional solidThermo). | |
| autoPtr< PatchFunction1< scalar > > | kappaFunction1_ |
| Function1 for kappa. | |
| autoPtr< PatchFunction1< scalar > > | alphaFunction1_ |
| Function1 for alpha. | |
| Static Protected Attributes inherited from temperatureCoupledBase | |
| 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 94 of file lumpedMassWallTemperatureFvPatchScalarField.H.
| lumpedMassWallTemperatureFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF ) |
Construct from patch and internal field.
Definition at line 29 of file lumpedMassWallTemperatureFvPatchScalarField.C.
References p, and temperatureCoupledBase::temperatureCoupledBase().
Referenced by lumpedMassWallTemperatureFvPatchScalarField(), lumpedMassWallTemperatureFvPatchScalarField(), lumpedMassWallTemperatureFvPatchScalarField(), rmap(), and TypeName().


| lumpedMassWallTemperatureFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const dictionary & | dict ) |
Construct from patch, internal field and dictionary.
Definition at line 65 of file lumpedMassWallTemperatureFvPatchScalarField.C.
References dict, IOobjectOption::MUST_READ, p, fvPatchFieldBase::readDict(), temperatureCoupledBase::temperatureCoupledBase(), and Foam::Zero.

| 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 48 of file lumpedMassWallTemperatureFvPatchScalarField.C.
References lumpedMassWallTemperatureFvPatchScalarField(), p, and temperatureCoupledBase::temperatureCoupledBase().

| lumpedMassWallTemperatureFvPatchScalarField | ( | const lumpedMassWallTemperatureFvPatchScalarField & | tppsf | ) |
Construct as copy.
Definition at line 87 of file lumpedMassWallTemperatureFvPatchScalarField.C.
References lumpedMassWallTemperatureFvPatchScalarField(), and temperatureCoupledBase::temperatureCoupledBase().

| lumpedMassWallTemperatureFvPatchScalarField | ( | const lumpedMassWallTemperatureFvPatchScalarField & | tppsf, |
| const DimensionedField< scalar, volMesh > & | iF ) |
Construct as copy setting internal field reference.
Definition at line 101 of file lumpedMassWallTemperatureFvPatchScalarField.C.
References lumpedMassWallTemperatureFvPatchScalarField(), and temperatureCoupledBase::temperatureCoupledBase().

| TypeName | ( | "lumpedMassWallTemperature" | ) |
Runtime type information.
References lumpedMassWallTemperatureFvPatchScalarField().

|
inlinevirtual |
Return a clone.
Definition at line 182 of file lumpedMassWallTemperatureFvPatchScalarField.H.
References fvPatchField< Type >::Clone().

|
inlinevirtual |
Clone with an internal field reference.
Definition at line 190 of file lumpedMassWallTemperatureFvPatchScalarField.H.
References fvPatchField< Type >::Clone().

|
virtual |
Map (and resize as needed) from self given a mapping object.
Implements temperatureCoupledBase.
Definition at line 118 of file lumpedMassWallTemperatureFvPatchScalarField.C.
References temperatureCoupledBase::autoMap().

|
virtual |
Reverse map the given fvPatchField onto this fvPatchField.
Implements temperatureCoupledBase.
Definition at line 128 of file lumpedMassWallTemperatureFvPatchScalarField.C.
References lumpedMassWallTemperatureFvPatchScalarField(), Foam::refCast(), and temperatureCoupledBase::rmap().

|
virtual |
Update the coefficients associated with the patch field.
Definition at line 146 of file lumpedMassWallTemperatureFvPatchScalarField.C.
References Foam::endl(), forAll, Foam::gAverage(), Foam::gMinMax(), Foam::gWeightedSum(), Foam::Info, temperatureCoupledBase::kappa(), limits, tmp< T >::ref(), and timeIndex.

| void write | ( | Ostream & | os | ) | const |
Write.
Definition at line 211 of file lumpedMassWallTemperatureFvPatchScalarField.C.
References os(), mixedFvPatchField< Type >::write(), and temperatureCoupledBase::write().
