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...


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< fvPatchScalarField > | clone (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 fvMeshSubset & | faceCellSubset () const |
| Access the face-cell subset. More... | |
| tmp< scalarField > | alpha (const scalar t) const |
| Return the current modelled phase fraction field on the patch. More... | |
| tmp< scalarField > | alphan (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... | |
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.
| 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;
}Definition at line 89 of file waveAlphaFvPatchScalarField.H.
| 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().


| 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.
|
delete |
Disallow copy without setting internal field reference.
| waveAlphaFvPatchScalarField | ( | const waveAlphaFvPatchScalarField & | ptf, |
| const DimensionedField< scalar, fvMesh > & | iF | ||
| ) |
Copy constructor setting internal field reference.
Definition at line 74 of file waveAlphaFvPatchScalarField.C.
| TypeName | ( | "waveAlpha" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 145 of file waveAlphaFvPatchScalarField.H.
References waveAlphaFvPatchScalarField::waveAlphaFvPatchScalarField().

|
inline |
Access the liquid flag.
Definition at line 162 of file waveAlphaFvPatchScalarField.H.
| 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().

| 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().

| 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().

|
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.

|
virtual |
Write.
Definition at line 181 of file waveAlphaFvPatchScalarField.C.
References Foam::vtkWriteOps::write().
