waveAlphaFvPatchScalarField Class Reference

This boundary condition provides a waveAlpha condition. This sets the phase fraction to that specified by a superposition of wave models. All the wave modelling parameters are obtained from a centrally registered waveSuperposition class. More...

Inheritance diagram for waveAlphaFvPatchScalarField:
Collaboration diagram for waveAlphaFvPatchScalarField:

Public Member Functions

 TypeName ("waveAlpha")
 Runtime type information. More...
 
 waveAlphaFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, fvMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 waveAlphaFvPatchScalarField (const waveAlphaFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, fvMesh > &, const fieldMapper &)
 Construct by mapping given fixedValueTypeFvPatchField onto a new. More...
 
 waveAlphaFvPatchScalarField (const waveAlphaFvPatchScalarField &)=delete
 Disallow copy without setting internal field reference. More...
 
 waveAlphaFvPatchScalarField (const waveAlphaFvPatchScalarField &, const DimensionedField< scalar, fvMesh > &)
 Copy constructor setting internal field reference. More...
 
virtual tmp< fvPatchScalarFieldclone (const DimensionedField< scalar, fvMesh > &iF) const
 Construct and return a clone setting internal field reference. More...
 
bool liquid () const
 Access the liquid flag. More...
 
const fvMeshSubsetfaceCellSubset () const
 Access the face-cell subset. More...
 
tmp< scalarFieldalpha (const scalar t) const
 Return the current modelled phase fraction field on the patch. More...
 
tmp< scalarFieldalphan (const scalar t) const
 Return the current modelled phase fraction field in the. 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 provides a waveAlpha condition. This sets the phase fraction to that specified by a superposition of wave models. All the wave modelling parameters are obtained from a centrally registered waveSuperposition class.

Usage
Property Description Required? Default
phi Name of the flux field no phi
liquid Is the alpha field that of the liquid? no true

Example of the boundary condition specification:

    <patchName>
    {
        type        waveAlpha;
        libs        ("libwaves.so");
        liquid      true;
    }
See also
Foam::waveSuperposition
Source files

Definition at line 89 of file waveAlphaFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ waveAlphaFvPatchScalarField() [1/4]

waveAlphaFvPatchScalarField ( const fvPatch p,
const DimensionedField< scalar, fvMesh > &  iF,
const dictionary dict 
)

Construct from patch, internal field and dictionary.

Definition at line 34 of file waveAlphaFvPatchScalarField.C.

References dict, DimensionedField< Type, GeoMesh, PrimitiveField >::dimensions(), and p.

Referenced by waveAlphaFvPatchScalarField::clone().

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

◆ waveAlphaFvPatchScalarField() [2/4]

waveAlphaFvPatchScalarField ( const waveAlphaFvPatchScalarField ptf,
const fvPatch p,
const DimensionedField< scalar, fvMesh > &  iF,
const fieldMapper mapper 
)

Construct by mapping given fixedValueTypeFvPatchField onto a new.

patch

Definition at line 61 of file waveAlphaFvPatchScalarField.C.

◆ waveAlphaFvPatchScalarField() [3/4]

Disallow copy without setting internal field reference.

◆ waveAlphaFvPatchScalarField() [4/4]

Copy constructor setting internal field reference.

Definition at line 74 of file waveAlphaFvPatchScalarField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "waveAlpha"  )

Runtime type information.

◆ clone()

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

Construct and return a clone setting internal field reference.

Definition at line 145 of file waveAlphaFvPatchScalarField.H.

References waveAlphaFvPatchScalarField::waveAlphaFvPatchScalarField().

Here is the call graph for this function:

◆ liquid()

bool liquid ( ) const
inline

Access the liquid flag.

Definition at line 162 of file waveAlphaFvPatchScalarField.H.

◆ faceCellSubset()

const Foam::fvMeshSubset & faceCellSubset ( ) const

Access the face-cell subset.

Definition at line 88 of file waveAlphaFvPatchScalarField.C.

References polyMesh::changing(), mesh, fvMesh::time(), timeIndex, and TimeState::timeIndex().

Here is the call graph for this function:

◆ alpha()

Foam::tmp< Foam::scalarField > alpha ( const scalar  t) const

Return the current modelled phase fraction field on the patch.

faces at the given time

Definition at line 114 of file waveAlphaFvPatchScalarField.C.

References waveSuperposition::height(), Foam::levelSetFraction(), and waveSuperposition::New().

Here is the call graph for this function:

◆ alphan()

Foam::tmp< Foam::scalarField > alphan ( const scalar  t) const

Return the current modelled phase fraction field in the.

neighbour cells at the given time

Definition at line 130 of file waveAlphaFvPatchScalarField.C.

References fvMesh::boundary(), primitiveMesh::cellCentres(), f(), Foam::findIndex(), forAll, waveSuperposition::height(), Foam::levelSetFraction(), waveSuperposition::New(), polyMesh::points(), tmp< T >::ref(), and Foam::subset().

Here is the call graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 168 of file waveAlphaFvPatchScalarField.C.

References alpha(), Foam::operator==(), and Foam::dimensions::time.

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 181 of file waveAlphaFvPatchScalarField.C.

References Foam::vtkWriteOps::write().

Here is the call graph for this function:

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