41 mixedFvPatchScalarField(p, iF),
59 mixedFvPatchScalarField(p, iF),
64 if (dict.
found(
"value"))
70 fvPatchScalarField::operator=(patchInternalField());
87 mixedFvPatchScalarField(ptf, p, iF, mapper),
90 inletOutlet_(ptf.inletOutlet_)
99 mixedFvPatchScalarField(ptf),
101 liquid_(ptf.liquid_),
102 inletOutlet_(ptf.inletOutlet_)
111 mixedFvPatchScalarField(ptf, iF),
113 liquid_(ptf.liquid_),
114 inletOutlet_(ptf.inletOutlet_)
122 const scalar t = db().time().timeOutputValue();
125 refCast<const waveVelocityFvPatchVectorField>
135 waves.
height(t, patch().Cf()),
136 waves.
height(t, patch().patch().localPoints()),
149 refValue() =
alpha();
156 valueFraction() = 1 -
pos0(phip);
163 mixedFvPatchScalarField::updateCoeffs();
173 writeEntryIfDifferent<word>(os,
"U",
"U", UName_);
174 writeEntryIfDifferent<bool>(os,
"inletOutlet",
true, inletOutlet_);
A wrapper around a list of wave models. Superimposes the modelled values of elevation and velocity...
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
tmp< scalarField > alpha() const
Return the current modelled phase fraction field.
A list of keyword definitions, which are a keyword followed by any number of values (e...
This boundary condition provides a waveAlpha condition. This sets the phase fraction to that specifie...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
GeometricField< vector, fvPatchField, volMesh > volVectorField
Macros for easy insertion into run-time selection tables.
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
tmp< scalarField > height(const scalar t, const vectorField &p) const
Get the height above the waves at a given time and global positions.
A class for handling words, derived from string.
virtual void write(Ostream &) const
Write.
Foam::fvPatchFieldMapper.
This boundary condition provides a waveVelocity condition. This sets the velocity to that specified b...
tmp< DimensionedField< scalar, volMesh > > 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 the.
virtual label size() const
Return size.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
volScalarField scalarField(fieldObject, mesh)
dimensionedScalar pos0(const dimensionedScalar &ds)
waveAlphaFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const waveSuperposition & waves() const
Access the wave models.
A class for managing temporary objects.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField