42 liquid_(
dict.lookupOrDefault<
Switch>(
"liquid", true))
44 if (
dict.found(
"value"))
95 !faceCellSubset_.valid()
100 faceCellSubset_->setCellSubset(patch().faceCells());
106 faceCellSubset_->subMesh().tetBasePtIs();
109 return faceCellSubset_();
122 waves.
height(t, patch().Cf()),
123 waves.
height(t, patch().patch().localPoints()),
156 const label fs = is + meshs.
boundary()[patchis].patch().start();
159 const label i = patch().patch().whichFace(
f);
160 result[i] = alphas[cs];
187 writeEntryIfDifferent<Switch>(os,
"liquid",
true, liquid_);
#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.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
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...
virtual void write(Ostream &) const
Write.
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.
This boundary condition provides a waveAlpha condition. This sets the phase fraction to that specifie...
tmp< scalarField > alpha(const scalar t) const
Return the current modelled phase fraction field on the patch.
virtual void write(Ostream &) const
Write.
waveAlphaFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
tmp< scalarField > alphan(const scalar t) const
Return the current modelled phase fraction field in the.
const fvMeshSubset & faceCellSubset() const
Access the face-cell subset.
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.
static const waveSuperposition & New(const objectRegistry &db)
Return a reference to the wave model on the given database,.
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
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.
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< scalar > scalarField
Specialisation of Field<T> for scalar.
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.