filmPyrolysisRadiativeCoupledMixedFvPatchScalarField Class Reference

Mixed boundary condition for temperature, to be used in the flow and pyrolysis regions when a film region model is used. More...

Inheritance diagram for filmPyrolysisRadiativeCoupledMixedFvPatchScalarField:
[legend]
Collaboration diagram for filmPyrolysisRadiativeCoupledMixedFvPatchScalarField:
[legend]

Public Types

typedef Foam::regionModels::surfaceFilmModels::thermoSingleLayer filmModelType
 
typedef Foam::regionModels::pyrolysisModels::pyrolysisModel pyrolysisModelType
 
- 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. More...
 
 filmPyrolysisRadiativeCoupledMixedFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field. More...
 
 filmPyrolysisRadiativeCoupledMixedFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 filmPyrolysisRadiativeCoupledMixedFvPatchScalarField (const filmPyrolysisRadiativeCoupledMixedFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given. More...
 
virtual tmp< fvPatchScalarFieldclone () const
 Construct and return a clone. More...
 
 filmPyrolysisRadiativeCoupledMixedFvPatchScalarField (const filmPyrolysisRadiativeCoupledMixedFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Construct as copy setting internal field reference. More...
 
virtual tmp< fvPatchScalarFieldclone (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...
 
tmp< scalarFieldK () const
 Get corresponding K field. More...
 
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field. More...
 
virtual void write (Ostream &) const
 Write. More...
 
- Public Member Functions inherited from temperatureCoupledBase
 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 wordkappaName () const
 Name of thermal conductivity field. More...
 
const wordalphaName () const
 Name of thermal diffusivity field. More...
 
virtual void autoMap (const fvPatchFieldMapper &)=0
 Map (and resize as needed) from self given a mapping object. More...
 
virtual void rmap (const fvPatchField< scalar > &, const labelList &)=0
 Reverse map the given fvPatchField onto this fvPatchField. More...
 
virtual tmp< scalarFieldkappa (const scalarField &Tp) const
 Given patch temperature calculate corresponding K field. More...
 
virtual tmp< scalarFieldalpha (const scalarField &Tp) const
 Given patch temperature calculate corresponding alphaEff field. More...
 
void write (Ostream &os) const
 Write. More...
 

Additional Inherited Members

- Protected Attributes inherited from temperatureCoupledBase
const fvPatchpatch_
 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 Protected Attributes inherited from temperatureCoupledBase
static const Enum< KMethodTypeKMethodTypeNames_
 

Detailed Description

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.
  • qr is the radiative flux defined in the radiation model.
See also
Foam::temperatureCoupledBase
Source files

Definition at line 99 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.H.

Member Typedef Documentation

◆ filmModelType

◆ pyrolysisModelType

Constructor & Destructor Documentation

◆ filmPyrolysisRadiativeCoupledMixedFvPatchScalarField() [1/4]

Construct from patch and internal field.

Definition at line 103 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C.

◆ filmPyrolysisRadiativeCoupledMixedFvPatchScalarField() [2/4]

filmPyrolysisRadiativeCoupledMixedFvPatchScalarField ( const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF,
const dictionary dict 
)

Construct from patch, internal field and dictionary.

Definition at line 154 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C.

References dict, Foam::exit(), Foam::FatalError, FatalErrorInFunction, dictionary::found(), IOobject::name(), fvPatchField< scalar >::operator=(), p, UList< T >::size(), and ensightPTraits< Type >::typeName.

Here is the call graph for this function:

◆ filmPyrolysisRadiativeCoupledMixedFvPatchScalarField() [3/4]

Construct by mapping given.

turbulentTemperatureCoupledBaffleMixedFvPatchScalarField onto a new patch

Definition at line 133 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C.

◆ filmPyrolysisRadiativeCoupledMixedFvPatchScalarField() [4/4]

Construct as copy setting internal field reference.

Definition at line 207 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "filmPyrolysisRadiativeCoupledMixed"  )

Runtime type information.

◆ clone() [1/2]

virtual tmp< fvPatchScalarField > clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 181 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.H.

◆ clone() [2/2]

virtual tmp< fvPatchScalarField > clone ( const DimensionedField< scalar, volMesh > &  iF) const
inlinevirtual

Construct and return a clone setting internal field reference.

Definition at line 200 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.H.

◆ autoMap()

void autoMap ( const fvPatchFieldMapper mapper)
virtual

Map (and resize as needed) from self given a mapping object.

Implements temperatureCoupledBase.

Definition at line 228 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C.

References temperatureCoupledBase::autoMap().

Here is the call graph for this function:

◆ rmap()

void rmap ( const fvPatchField< scalar > &  ptf,
const labelList addr 
)
virtual

Reverse map the given fvPatchField onto this fvPatchField.

Implements temperatureCoupledBase.

Definition at line 238 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C.

References Foam::refCast(), and temperatureCoupledBase::rmap().

Here is the call graph for this function:

◆ K()

tmp< scalarField > K ( ) const

Get corresponding K field.

Referenced by filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::updateCoeffs().

Here is the caller graph for this function:

◆ updateCoeffs()

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 418 of file filmPyrolysisRadiativeCoupledMixedFvPatchScalarField.C.

References os(), ObukhovLength::write(), Ostream::writeEntry(), and Ostream::writeEntryIfDifferent().

Here is the call graph for this function:

The documentation for this class was generated from the following files: