43 if (
dict.found(
"value"))
92 !faceCellSubset_.valid()
97 faceCellSubset_->setCellSubset(patch().faceCells());
103 faceCellSubset_->subMesh().tetBasePtIs();
106 return faceCellSubset_();
119 waves.
height(t, patch().Cf()),
120 waves.
height(t, patch().patch().localPoints()),
121 waves.
UGas(t, patch().Cf())(),
122 waves.
UGas(t, patch().patch().localPoints())(),
123 waves.
ULiquid(t, patch().Cf())(),
124 waves.
ULiquid(t, patch().patch().localPoints())()
159 const label fs = is + meshs.
boundary()[patchis].patch().start();
162 const label i = patch().patch().whichFace(
f);
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const dimensionSet & dimensions() const
Return dimensions.
label timeIndex() const
Return current time index.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Abstract base class for field mapping.
This boundary condition sets a fixed value. When the flow direction is inwards this acts exactly like...
Post-processing mesh subset tool. Given the original mesh and the list of selected cells,...
Mesh data needed to do the Finite Volume discretisation.
const Time & time() const
Return the top-level database.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual tmp< Field< Type > > patchInternalField() const
Return internal field next to patch as patch field.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
const polyMesh & mesh() const
Return the mesh reference.
bool changing() const
Is mesh changing.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
virtual const pointField & points() const
Return raw points.
const vectorField & cellCentres() const
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
A wrapper around a list of wave models. Superimposes the modelled values of elevation and velocity....
virtual tmp< scalarField > height(const scalar t, const vectorField &p) const
Get the height above the waves at a given time and global positions.
virtual tmp< vectorField > ULiquid(const scalar t, const vectorField &p) const
Get the liquid velocity at a given time and global positions.
virtual tmp< vectorField > UGas(const scalar t, const vectorField &p) const
Get the gas velocity at a given time and global positions.
static const waveSuperposition & New(const objectRegistry &db)
Return a reference to the wave model on the given database,.
This boundary condition provides a waveVelocity condition. This sets the velocity to that specified b...
waveVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
tmp< vectorField > U(const scalar t) const
Return the current modelled velocity field on the patch faces.
tmp< vectorField > Un(const scalar t) const
Return the current modelled velocity field in the neighbour.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
const fvMeshSubset & faceCellSubset() const
Access the face-cell subset.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
Field< vector > vectorField
Specialisation of Field<T> for vector.
label findIndex(const ListType &, typename ListType::const_reference, const label start=0)
Find first occurrence of given element and return index,.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
ListType subset(const UList< T > &select, const T &value, const ListType &)
Extract elements of List when select is a certain value.
tmp< Field< Type > > levelSetAverage(const fvMesh &mesh, const scalarField &levelC, const scalarField &levelP, const Field< Type > &positiveC, const Field< Type > &positiveP, const Field< Type > &negativeC, const Field< Type > &negativeP)
Calculate the average value of two fields, one on each side of a level set.