58 > Foam::waveSurfacePressureFvPatchScalarField::ddtSchemeTypeNames_;
70 fixedValueFvPatchScalarField(p, iF),
85 fixedValueFvPatchScalarField(p, iF),
106 fixedValueFvPatchScalarField(ptf, p, iF, mapper),
107 phiName_(ptf.phiName_),
108 zetaName_(ptf.zetaName_),
109 rhoName_(ptf.rhoName_)
119 fixedValueFvPatchScalarField(wspsf),
120 phiName_(wspsf.phiName_),
121 zetaName_(wspsf.zetaName_),
122 rhoName_(wspsf.rhoName_)
133 fixedValueFvPatchScalarField(wspsf, iF),
134 phiName_(wspsf.phiName_),
135 zetaName_(wspsf.zetaName_),
136 rhoName_(wspsf.rhoName_)
151 const scalar dt = db().time().deltaTValue();
162 const word ddtSchemeName(zeta.
mesh().ddtScheme(zeta.
name()));
188 case tsCrankNicolson:
196 scalar dt0 = db().time().deltaT0Value();
198 scalar
c = 1.0 + dt/(dt + dt0);
199 scalar c00 = dt*dt/(dt0*(dt + dt0));
214 << ddtSchemeName <<
nl 215 <<
" on patch " << this->patch().name()
216 <<
" of field " << this->internalField().name()
217 <<
" in file " << this->internalField().objectPath()
223 Info<<
"min/max zetap = " <<
gMin(zetap & nf()) <<
", " 232 fixedValueFvPatchScalarField::updateCoeffs();
239 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
240 writeEntryIfDifferent<word>(os,
"zeta",
"zeta", zetaName_);
241 writeEntryIfDifferent<word>(os,
"rho",
"rho", rhoName_);
242 writeEntry(
"value", os);
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...
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.
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.
virtual void write(Ostream &) const
Write.
Type gMin(const FieldField< Field, Type > &f)
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...
const Type & value() const
Return const reference to value.
Initialise the NamedEnum HashTable from the static list of names.
Macros for easy insertion into run-time selection tables.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
const GeometricField< Type, PatchField, GeoMesh > & oldTime() const
Return old time field.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
A class for handling words, derived from string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Foam::fvPatchFieldMapper.
virtual label size() const
Return size.
Second-order backward-differencing ddt using the current and two previous time-step values...
errorManip< error > abort(error &err)
const dimensionSet & dimensions() const
Return dimensions.
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 dimensionedVector & g
Type gMax(const FieldField< Field, Type > &f)
const dimensionSet dimDensity
Boundary & boundaryFieldRef()
Return a reference to the boundary field.
const Mesh & mesh() const
Return mesh.
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.
Basic first-order Euler implicit/explicit ddt using only the current and previous time-step values...
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
const word & name() const
Return name.
const dimensionSet dimArea(sqr(dimLength))
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void write(Ostream &) const
Write.
const dimensionSet dimVelocity