This boundary condition provides a waveVelocity condition. This sets the velocity 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 ("waveVelocity") | |
| Runtime type information. More... | |
| waveVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, fvMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. More... | |
| waveVelocityFvPatchVectorField (const waveVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, fvMesh > &, const fieldMapper &) | |
| Construct by mapping given mixedTypeFvPatchField onto a new patch. More... | |
| waveVelocityFvPatchVectorField (const waveVelocityFvPatchVectorField &)=delete | |
| Disallow copy without setting internal field reference. More... | |
| waveVelocityFvPatchVectorField (const waveVelocityFvPatchVectorField &, const DimensionedField< vector, fvMesh > &) | |
| Copy constructor setting internal field reference. More... | |
| virtual tmp< fvPatchVectorField > | clone (const DimensionedField< vector, fvMesh > &iF) const |
| Construct and return a clone setting internal field reference. More... | |
| const fvMeshSubset & | faceCellSubset () const |
| Access the face-cell subset. More... | |
| tmp< vectorField > | U (const scalar t) const |
| Return the current modelled velocity field on the patch faces. More... | |
| tmp< vectorField > | Un (const scalar t) const |
| Return the current modelled velocity field in the neighbour. More... | |
| virtual void | updateCoeffs () |
| Update the coefficients associated with the patch field. More... | |
This boundary condition provides a waveVelocity condition. This sets the velocity 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 |
Example of the boundary condition specification:
<patchName>
{
type waveVelocity;
libs ("libwaves.so");
}Definition at line 82 of file waveVelocityFvPatchVectorField.H.
| waveVelocityFvPatchVectorField | ( | const fvPatch & | p, |
| const DimensionedField< vector, fvMesh > & | iF, | ||
| const dictionary & | dict | ||
| ) |
Construct from patch, internal field and dictionary.
Definition at line 34 of file waveVelocityFvPatchVectorField.C.
References dict, DimensionedField< Type, GeoMesh, PrimitiveField >::dimensions(), and p.
Referenced by waveVelocityFvPatchVectorField::clone().


| waveVelocityFvPatchVectorField | ( | const waveVelocityFvPatchVectorField & | ptf, |
| const fvPatch & | p, | ||
| const DimensionedField< vector, fvMesh > & | iF, | ||
| const fieldMapper & | mapper | ||
| ) |
Construct by mapping given mixedTypeFvPatchField onto a new patch.
Definition at line 60 of file waveVelocityFvPatchVectorField.C.
|
delete |
Disallow copy without setting internal field reference.
| waveVelocityFvPatchVectorField | ( | const waveVelocityFvPatchVectorField & | ptf, |
| const DimensionedField< vector, fvMesh > & | iF | ||
| ) |
Copy constructor setting internal field reference.
Definition at line 72 of file waveVelocityFvPatchVectorField.C.
| TypeName | ( | "waveVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 134 of file waveVelocityFvPatchVectorField.H.
References waveVelocityFvPatchVectorField::waveVelocityFvPatchVectorField().

| const Foam::fvMeshSubset & faceCellSubset | ( | ) | const |
Access the face-cell subset.
Definition at line 85 of file waveVelocityFvPatchVectorField.C.
References polyMesh::changing(), mesh, fvMesh::time(), timeIndex, and TimeState::timeIndex().

| Foam::tmp< Foam::vectorField > U | ( | const scalar | t | ) | const |
Return the current modelled velocity field on the patch faces.
at the given time
Definition at line 111 of file waveVelocityFvPatchVectorField.C.
References waveSuperposition::height(), Foam::levelSetAverage(), waveSuperposition::New(), waveSuperposition::UGas(), and waveSuperposition::ULiquid().

| Foam::tmp< Foam::vectorField > Un | ( | const scalar | t | ) | const |
Return the current modelled velocity field in the neighbour.
cells at the given time
Definition at line 130 of file waveVelocityFvPatchVectorField.C.
References fvMesh::boundary(), primitiveMesh::cellCentres(), f(), Foam::findIndex(), forAll, waveSuperposition::height(), Foam::levelSetAverage(), waveSuperposition::New(), polyMesh::points(), tmp< T >::ref(), Foam::subset(), waveSuperposition::UGas(), and waveSuperposition::ULiquid().

|
virtual |
Update the coefficients associated with the patch field.
Definition at line 171 of file waveVelocityFvPatchVectorField.C.
References Foam::operator==(), Foam::dimensions::time, and U.
