58 > Foam::waveSurfacePressureFvPatchScalarField::ddtSchemeTypeNames_;
70 fixedValueFvPatchScalarField(p, iF),
85 fixedValueFvPatchScalarField(p, iF, dict),
101 fixedValueFvPatchScalarField(ptf, p, iF, mapper),
102 phiName_(ptf.phiName_),
103 zetaName_(ptf.zetaName_),
104 rhoName_(ptf.rhoName_)
114 fixedValueFvPatchScalarField(wspsf),
115 phiName_(wspsf.phiName_),
116 zetaName_(wspsf.zetaName_),
117 rhoName_(wspsf.rhoName_)
128 fixedValueFvPatchScalarField(wspsf, iF),
129 phiName_(wspsf.phiName_),
130 zetaName_(wspsf.zetaName_),
131 rhoName_(wspsf.rhoName_)
146 const scalar dt = db().time().deltaTValue();
153 const word ddtSchemeName(zeta.
mesh().ddtScheme(zeta.
name()));
179 case tsCrankNicolson:
187 scalar dt0 = db().time().deltaT0Value();
189 scalar
c = 1.0 + dt/(dt + dt0);
190 scalar c00 = dt*dt/(dt0*(dt + dt0));
205 << ddtSchemeName <<
nl 206 <<
" on patch " << this->patch().name()
207 <<
" of field " << this->internalField().name()
208 <<
" in file " << this->internalField().objectPath()
214 Info<<
"min/max zetap = " <<
gMin(zetap & nf()) <<
", " 223 fixedValueFvPatchScalarField::updateCoeffs();
230 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
231 writeEntryIfDifferent<word>(os,
"zeta",
"zeta", zetaName_);
232 writeEntryIfDifferent<word>(os,
"rho",
"rho", rhoName_);
waveSurfacePressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
Second-oder Crank-Nicolson implicit ddt using the current and previous time-step fields as well as th...
const GeometricField< Type, PatchField, GeoMesh > & oldTime() const
Return old time field.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
ddtSchemeType
Enumeration defining the available ddt schemes.
const word & name() const
Return name.
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Type gMin(const FieldField< Field, Type > &f)
const Boundary & boundaryField() const
Return const-reference to the boundary field.
Ostream & endl(Ostream &os)
Add newline and flush stream.
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...
virtual void write(Ostream &) const
Write.
Initialise the NamedEnum HashTable from the static list of names.
Macros for easy insertion into run-time selection tables.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const dimensionSet & dimensions() const
Return dimensions.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
A class for handling words, derived from string.
virtual void write(Ostream &) const
Write.
Foam::fvPatchFieldMapper.
const Type & value() const
Return const reference to value.
Second-order backward-differencing ddt using the current and two previous time-step values...
errorManip< error > abort(error &err)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
This is a pressure boundary condition, whose value is calculated as the hydrostatic pressure based on...
const Mesh & mesh() const
Return mesh.
Type gMax(const FieldField< Field, Type > &f)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
const dimensionSet dimDensity
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
Boundary & boundaryFieldRef()
Return a reference to the boundary field.
const dimensionedScalar c
Speed of light in a vacuum.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
A class for managing temporary objects.
const dimensionedVector & g
Basic first-order Euler implicit/explicit ddt using only the current and previous time-step values...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
const dimensionSet dimArea(sqr(dimLength))
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
const dimensionSet dimVelocity