filmPyrolysisVelocityCoupledFvPatchVectorField Class Reference

This boundary condition is designed to be used in conjunction with surface film and pyrolysis modelling. More...

Inheritance diagram for filmPyrolysisVelocityCoupledFvPatchVectorField:
Collaboration diagram for filmPyrolysisVelocityCoupledFvPatchVectorField:

Public Member Functions

 TypeName ("filmPyrolysisVelocityCoupled")
 Runtime type information. More...
 
 filmPyrolysisVelocityCoupledFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &)
 Construct from patch and internal field. More...
 
 filmPyrolysisVelocityCoupledFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 filmPyrolysisVelocityCoupledFvPatchVectorField (const filmPyrolysisVelocityCoupledFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given. More...
 
 filmPyrolysisVelocityCoupledFvPatchVectorField (const filmPyrolysisVelocityCoupledFvPatchVectorField &)
 Copy constructor. More...
 
virtual tmp< fvPatchVectorField > clone () const
 Construct and return a clone. More...
 
 filmPyrolysisVelocityCoupledFvPatchVectorField (const filmPyrolysisVelocityCoupledFvPatchVectorField &, const DimensionedField< vector, volMesh > &)
 Copy constructor setting internal field reference. More...
 
virtual tmp< fvPatchVectorField > clone (const DimensionedField< vector, volMesh > &iF) const
 Construct and return a clone setting internal field reference. More...
 
const word & phiName () const
 Return the name of phi. More...
 
word & phiName ()
 Return reference to the name of phi to allow adjustment. More...
 
const word & rhoName () const
 Return the name of rho. More...
 
word & rhoName ()
 Return reference to the name of rho to allow adjustment. More...
 
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field. More...
 
virtual void write (Ostream &) const
 Write. More...
 

Detailed Description

This boundary condition is designed to be used in conjunction with surface film and pyrolysis modelling.

It provides a velocity boundary condition for patches on the primary region based on whether the patch is seen to be 'wet', retrieved from the film alpha field.

  • if the patch is wet, the velocity is set using the film velocity
  • otherwise, it is set using pyrolysis out-gassing velocity

Example of the boundary condition specification:

<patchName>
{
    type            filmPyrolysisVelocityCoupled;
    phi             phi;      // name of flux field (default = phi)
    rho             rho;      // name of density field (default = rho)
    deltaWet        1e-4;     // threshold height for 'wet' film
    value           uniform   (0 0 0); // initial velocity / [m/s]
}
Source files

Definition at line 67 of file filmPyrolysisVelocityCoupledFvPatchVectorField.H.

Constructor & Destructor Documentation

◆ filmPyrolysisVelocityCoupledFvPatchVectorField() [1/5]

◆ filmPyrolysisVelocityCoupledFvPatchVectorField() [2/5]

Construct from patch, internal field and dictionary.

Definition at line 68 of file filmPyrolysisVelocityCoupledFvPatchVectorField.C.

References filmPyrolysisVelocityCoupledFvPatchVectorField::filmPyrolysisVelocityCoupledFvPatchVectorField().

Here is the call graph for this function:

◆ filmPyrolysisVelocityCoupledFvPatchVectorField() [3/5]

◆ filmPyrolysisVelocityCoupledFvPatchVectorField() [4/5]

◆ filmPyrolysisVelocityCoupledFvPatchVectorField() [5/5]

Copy constructor setting internal field reference.

Definition at line 104 of file filmPyrolysisVelocityCoupledFvPatchVectorField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "filmPyrolysisVelocityCoupled"  )

Runtime type information.

◆ clone() [1/2]

virtual tmp<fvPatchVectorField> clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 126 of file filmPyrolysisVelocityCoupledFvPatchVectorField.H.

References filmPyrolysisVelocityCoupledFvPatchVectorField::filmPyrolysisVelocityCoupledFvPatchVectorField().

Here is the call graph for this function:

◆ clone() [2/2]

virtual tmp<fvPatchVectorField> clone ( const DimensionedField< vector, volMesh > &  iF) const
inlinevirtual

Construct and return a clone setting internal field reference.

Definition at line 143 of file filmPyrolysisVelocityCoupledFvPatchVectorField.H.

References filmPyrolysisVelocityCoupledFvPatchVectorField::filmPyrolysisVelocityCoupledFvPatchVectorField().

Here is the call graph for this function:

◆ phiName() [1/2]

const word& phiName ( ) const
inline

Return the name of phi.

Definition at line 159 of file filmPyrolysisVelocityCoupledFvPatchVectorField.H.

◆ phiName() [2/2]

word& phiName ( )
inline

Return reference to the name of phi to allow adjustment.

Definition at line 165 of file filmPyrolysisVelocityCoupledFvPatchVectorField.H.

◆ rhoName() [1/2]

const word& rhoName ( ) const
inline

Return the name of rho.

Definition at line 171 of file filmPyrolysisVelocityCoupledFvPatchVectorField.H.

◆ rhoName() [2/2]

word& rhoName ( )
inline

Return reference to the name of rho to allow adjustment.

Definition at line 177 of file filmPyrolysisVelocityCoupledFvPatchVectorField.H.

References filmPyrolysisVelocityCoupledFvPatchVectorField::updateCoeffs(), and filmPyrolysisVelocityCoupledFvPatchVectorField::write().

Here is the call graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 119 of file filmPyrolysisVelocityCoupledFvPatchVectorField.C.

References Foam::dimArea, Foam::dimDensity, DimensionedField< Type, GeoMesh >::dimensions(), Foam::dimVelocity, Foam::exit(), Foam::FatalError, FatalErrorInFunction, UPstream::msgType(), Foam::nl, patchi, phi, and filmPyrolysisVelocityCoupledFvPatchVectorField::write().

Referenced by filmPyrolysisVelocityCoupledFvPatchVectorField::rhoName().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write()

void write ( Ostream &  os) const
virtual

Write.

Definition at line 210 of file filmPyrolysisVelocityCoupledFvPatchVectorField.C.

References Foam::makePatchTypeField(), fvPatchField< Type >::write(), and Foam::writeEntry().

Referenced by filmPyrolysisVelocityCoupledFvPatchVectorField::rhoName(), and filmPyrolysisVelocityCoupledFvPatchVectorField::updateCoeffs().

Here is the call graph for this function:
Here is the caller graph for this function:

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