Mixed boundary condition for temperature, to be used in the flow and pyrolysis regions when a film region model is used. More...
#include <filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.H>


Public Types | |
| typedef Foam::regionModels::surfaceFilmModels::thermoSingleLayer | filmModelType |
| typedef Foam::regionModels::pyrolysisModels::pyrolysisModel | pyrolysisModelType |
| typedef filmPyrolysisRadiativeCoupledMixedFvPatchScalarField | myType |
| Public Types inherited from temperatureCoupledBase | |
| enum | KMethodType { mtFluidThermo , mtSolidThermo , mtDirectionalSolidThermo , mtLookup , mtFunction } |
| Type of supplied Kappa. More... | |
Public Member Functions | |
| TypeName ("filmPyrolysisRadiativeCoupledMixed") | |
| Runtime type information. | |
| filmPyrolysisRadiativeCoupledMixedFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
| Construct from patch and internal field. | |
| filmPyrolysisRadiativeCoupledMixedFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. | |
| filmPyrolysisRadiativeCoupledMixedFvPatchScalarField (const filmPyrolysisRadiativeCoupledMixedFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given. | |
| filmPyrolysisRadiativeCoupledMixedFvPatchScalarField (const filmPyrolysisRadiativeCoupledMixedFvPatchScalarField &, 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. | |
| tmp< scalarField > | K () const |
| Get corresponding K field. | |
| virtual void | updateCoeffs () |
| Update the coefficients associated with the patch field. | |
| virtual 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 | |
| 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_ |
Mixed boundary condition for temperature, to be used in the flow and pyrolysis regions when a film region model is used.
Example usage:
myInterfacePatchName
{
type filmPyrolysisRadiativeCoupledMixed;
Tnbr T;
kappaMethod fluidThermo;
kappa none;
qr qr;
filmDeltaDry 0.0;
filmDeltaWet 3e-4;
value $internalField;
}
Needs to be on underlying mapped(Wall)FvPatch. It calculates local field as:
ratio = (filmDelta - filmDeltaDry)/(filmDeltaWet - filmDeltaDry)
when ratio = 1 is considered wet and the film temperature is fixed at the wall. If ratio = 0 (dry) it emulates the normal radiative solid BC.
In between ratio 0 and 1 the gradient and value contributions are weighted using the ratio field in the following way:
qConv = ratio*htcwfilm*(Tfilm - *this);
qRad = (1.0 - ratio)*qr;
Then the solid can gain or loose energy through radiation or conduction towards the film.
Notes:
kappaMethod and kappa are inherited from temperatureCoupledBase.Definition at line 95 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.H.
Definition at line 103 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.H.
Definition at line 106 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.H.
Definition at line 108 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.H.
| filmPyrolysisRadiativeCoupledMixedFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF ) |
Construct from patch and internal field.
Definition at line 102 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C.
References p, and temperatureCoupledBase::temperatureCoupledBase().
Referenced by filmPyrolysisRadiativeCoupledMixedFvPatchScalarField(), filmPyrolysisRadiativeCoupledMixedFvPatchScalarField(), and TypeName().


| filmPyrolysisRadiativeCoupledMixedFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const dictionary & | dict ) |
Construct from patch, internal field and dictionary.
Definition at line 146 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C.
References dict, Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::isA(), IOobjectOption::MUST_READ, p, and temperatureCoupledBase::temperatureCoupledBase().

| filmPyrolysisRadiativeCoupledMixedFvPatchScalarField | ( | const filmPyrolysisRadiativeCoupledMixedFvPatchScalarField & | psf, |
| const fvPatch & | p, | ||
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const fvPatchFieldMapper & | mapper ) |
Construct by mapping given.
turbulentTemperatureCoupledBaffleMixedFvPatchScalarField onto a new patch
Definition at line 125 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C.
References filmPyrolysisRadiativeCoupledMixedFvPatchScalarField(), p, and temperatureCoupledBase::temperatureCoupledBase().

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

| TypeName | ( | "filmPyrolysisRadiativeCoupledMixed" | ) |
Runtime type information.
References filmPyrolysisRadiativeCoupledMixedFvPatchScalarField().

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

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

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

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

| tmp< scalarField > K | ( | ) | const |
Get corresponding K field.
Referenced by updateCoeffs().

|
virtual |
Update the coefficients associated with the patch field.
Definition at line 241 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C.
References alpha, temperatureCoupledBase::alpha(), GeometricField< Type, PatchField, GeoMesh >::boundaryField(), kinematicSingleLayer::delta(), fvPatch::deltaCoeffs(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::gAverage(), Foam::gMinMax(), Foam::gSum(), Foam::gWeightedSum(), heatTransferModel::h(), thermoSingleLayer::htcw(), fvPatch::index(), Foam::Info, K(), temperatureCoupledBase::kappa(), limits, fvPatch::lookupPatchField(), regionModel::mapRegionPatchField(), Foam::max(), mesh, Foam::min(), fvMesh::name(), fvPatch::name(), IOobject::name(), regionModel::nbrCoupledPatchID(), Foam::nl, regionModel::primaryMesh(), Foam::refCast(), regionModel::toPrimary(), thermoSingleLayer::Ts(), Foam::type(), and Foam::Zero.

|
virtual |
Write.
Definition at line 422 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C.
References os(), mixedFvPatchField< Type >::write(), and temperatureCoupledBase::write().
