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_)
115 fixedValueFvPatchScalarField(wspsf, iF),
116 phiName_(wspsf.phiName_),
117 zetaName_(wspsf.zetaName_),
118 rhoName_(wspsf.rhoName_)
133 const scalar dt = db().time().deltaTValue();
140 const word ddtSchemeName(zeta.
mesh().schemes().ddt(zeta.
name()));
166 case tsCrankNicolson:
174 scalar dt0 = db().time().deltaT0Value();
176 scalar
c = 1.0 + dt/(dt + dt0);
177 scalar c00 = dt*dt/(dt0*(dt + dt0));
192 << ddtSchemeName <<
nl 193 <<
" on patch " << this->patch().name()
194 <<
" of field " << this->internalField().name()
195 <<
" in file " << this->internalField().objectPath()
201 Info<<
"min/max zetap = " <<
gMin(zetap & nf()) <<
", " 210 fixedValueFvPatchScalarField::updateCoeffs();
217 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
218 writeEntryIfDifferent<word>(os,
"zeta",
"zeta", zetaName_);
219 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.
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.
const dimensionedScalar c
Speed of light in a vacuum.
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 dimMassFlux
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.
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)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.