58 > Foam::waveSurfacePressureFvPatchScalarField::ddtSchemeTypeNames_;
71 fixedValueFvPatchScalarField(
p, iF,
dict),
72 phiName_(
dict.lookupOrDefault<
word>(
"phi",
"phi")),
73 zetaName_(
dict.lookupOrDefault<
word>(
"zeta",
"zeta")),
74 rhoName_(
dict.lookupOrDefault<
word>(
"rho",
"rho"))
76 if (!db().foundObject<volVectorField>(zetaName_))
78 Info <<
"Creating field " << zetaName_ <<
endl;
92 patch().boundaryMesh().mesh(),
111 fixedValueFvPatchScalarField(ptf,
p, iF, mapper),
112 phiName_(ptf.phiName_),
113 zetaName_(ptf.zetaName_),
114 rhoName_(ptf.rhoName_)
125 fixedValueFvPatchScalarField(wspsf, iF),
126 phiName_(wspsf.phiName_),
127 zetaName_(wspsf.zetaName_),
128 rhoName_(wspsf.rhoName_)
146 const scalar dt = db().time().deltaTValue();
151 const word ddtSchemeName(zeta.
mesh().schemes().ddt(zeta.
name()));
177 case tsCrankNicolson:
185 scalar dt0 = db().time().deltaT0Value();
187 scalar
c = 1.0 + dt/(dt + dt0);
188 scalar c00 = dt*dt/(dt0*(dt + dt0));
203 << ddtSchemeName <<
nl
204 <<
" on patch " << this->patch().name()
205 <<
" of field " << this->internalField().name()
206 <<
" in file " << this->internalField().objectPath()
216 this->db().template lookupObject<uniformDimensionedScalarField>(
"pRef");
220 fixedValueFvPatchScalarField::updateCoeffs();
227 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
228 writeEntryIfDifferent<word>(os,
"zeta",
"zeta", zetaName_);
229 writeEntryIfDifferent<word>(os,
"rho",
"rho", rhoName_);
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const dimensionSet & dimensions() const
Return dimensions.
const Mesh & mesh() const
Return mesh.
Generic GeometricField class.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
Boundary & boundaryFieldRef()
Return a reference to the boundary field.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const word & name() const
Return name.
Initialise the NamedEnum HashTable from the static list of names.
const FieldType & oldTime() const
Return the old time field.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Abstract base class for field mapping.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Second-oder Crank-Nicolson implicit ddt using the current and previous time-step fields as well as th...
Basic first-order Euler implicit/explicit ddt using only the current and previous time-step values.
Second-order backward-differencing ddt using the current and two previous time-step values.
void store()
Transfer ownership of this object to its registry.
A class for managing temporary objects.
T * ptr() const
Return tmp pointer for reuse.
This is a pressure boundary condition, the value of which is calculated as the hydrostatic pressure b...
virtual void write(Ostream &) const
Write.
waveSurfacePressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
ddtSchemeType
Enumeration defining the available ddt schemes.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const dimensionedScalar c
Speed of light in a vacuum.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
const dimensionSet dimMassFlux
errorManip< error > abort(error &err)
const dimensionSet dimLength
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
VolField< scalar > volScalarField
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)