53 liquid_(dict.lookupOrDefault<
Switch>(
"liquid",
true))
55 if (dict.found(
"value"))
106 !faceCellSubset_.valid()
111 faceCellSubset_->setCellSubset(
patch().faceCells());
117 faceCellSubset_->subMesh().tetBasePtIs();
120 return faceCellSubset_();
167 const label fs = is + meshs.
boundary()[patchis].patch().start();
171 result[i] = alphas[cs];
200 writeEntryIfDifferent<Switch>(os,
"liquid",
true, liquid_);
const fvBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
bool changing() const
Is mesh changing (topology changing and/or moving)
A wrapper around a list of wave models. Superimposes the modelled values of elevation and velocity...
#define forAll(list, i)
Loop across all elements in list.
label index() const
Return the index of this patch in the fvBoundaryMesh.
A list of keyword definitions, which are a keyword followed by any number of values (e...
tmp< scalarField > levelSetFraction(const fvMesh &mesh, const scalarField &levelC, const scalarField &levelP, const bool above)
Calculate the volume-fraction that a level set occupies. This gives the.
bool updated() const
Return true if the boundary condition has already been updated.
virtual void write(Ostream &) const
Write.
T & ref() const
Return non-const reference or generate a fatal error.
void size(const label)
Override size to be inconsistent with allocated storage.
This boundary condition provides a waveAlpha condition. This sets the phase fraction to that specifie...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none/any.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
const Time & time() const
Return the top-level database.
Macros for easy insertion into run-time selection tables.
const labelList & faceMap() const
Return face map.
tmp< scalarField > alphan(const scalar t) const
Return the current modelled phase fraction field in the.
virtual void operator==(const fvPatchField< Type > &)
scalar userTimeValue() const
Return current user time value.
virtual const pointField & points() const
Return raw points.
const labelList & patchMap() const
Return patch map.
const fvMesh & subMesh() const
Return reference to subset mesh.
tmp< scalarField > alpha(const scalar t) const
Return the current modelled phase fraction field on the patch.
virtual tmp< scalarField > height(const scalar t, const vectorField &p) const
Get the height above the waves at a given time and global positions.
const fvMesh & mesh() const
Return the mesh reference.
virtual void write(Ostream &) const
Write.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
const polyPatch & patch() const
Return the polyPatch.
Foam::fvPatchFieldMapper.
const vectorField & cellCentres() const
const fvPatch & patch() const
Return patch.
static const waveSuperposition & New(const objectRegistry &db)
Return a reference to the wave model on the given database,.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
volScalarField scalarField(fieldObject, mesh)
const Time & time() const
Return time.
Post-processing mesh subset tool. Given the original mesh and the list of selected cells...
label findIndex(const ListType &, typename ListType::const_reference, const label start=0)
Find first occurrence of given element and return index,.
waveAlphaFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
const fvMeshSubset & faceCellSubset() const
Access the face-cell subset.
label timeIndex() const
Return current time index.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Mesh data needed to do the Finite Volume discretisation.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const objectRegistry & db() const
Return local objectRegistry.
ListType subset(const UList< T > &select, const T &value, const ListType &)
Extract elements of List when select is a certain value.
A class for managing temporary objects.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
label size() const
Return the number of elements in the UList.
label whichFace(const label l) const
Return label of face in patch from global face label.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.