40 directionMixedFvPatchVectorField(p, iF),
45 valueFraction() =
Zero;
56 directionMixedFvPatchVectorField(p, iF),
59 if (dict.
found(
"value"))
65 fvPatchVectorField::operator=(patchInternalField());
70 valueFraction() =
Zero;
82 directionMixedFvPatchVectorField(ptf, p, iF, mapper),
92 directionMixedFvPatchVectorField(ptf),
103 directionMixedFvPatchVectorField(ptf, iF),
112 const scalar t = db().time().timeOutputValue();
118 waves_.
height(t, patch().Cf()),
119 waves_.
height(t, patch().patch().localPoints()),
120 waves_.
UGas(t, patch().Cf())(),
121 waves_.
UGas(t, patch().patch().localPoints())(),
122 waves_.
ULiquid(t, patch().Cf())(),
123 waves_.
ULiquid(t, patch().patch().localPoints())()
143 valueFraction() = (1 -
pos0(phip))*
I +
pos0(phip)*nnp;
145 directionMixedFvPatchVectorField::updateCoeffs();
146 directionMixedFvPatchVectorField::evaluate();
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
tmp< vectorField > UGas(const scalar t, const vectorField &p) const
Get the gas velocity at a given time and global positions.
void write(Ostream &) const
Write.
waveVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
virtual void write(Ostream &) const
Write.
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...
tmp< vectorField > ULiquid(const scalar t, const vectorField &p) const
Get the liquid velocity at a given time and global positions.
volVectorField vectorField(fieldObject, mesh)
Macros for easy insertion into run-time selection tables.
tmp< DimensionedField< Type, volMesh > > levelSetAverage(const fvMesh &mesh, const scalarField &levelC, const scalarField &levelP, const DimensionedField< Type, volMesh > &positiveC, const DimensionedField< Type, pointMesh > &positiveP, const DimensionedField< Type, volMesh > &negativeC, const DimensionedField< Type, pointMesh > &negativeP)
Calculate the average value of two fields, one on each side of a level set.
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.
static const Identity< scalar > I
Foam::fvPatchFieldMapper.
This boundary condition provides a waveVelocity condition. This sets the velocity to that specified b...
virtual label size() const
Return size.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
dimensionedScalar pos0(const dimensionedScalar &ds)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
A class for managing temporary objects.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
tmp< vectorField > U() const
Return the current modelled velocity field.