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_)
149 const label patchI = patch().index();
151 const scalar dt = db().time().deltaTValue();
162 const word ddtSchemeName(zeta.
mesh().ddtScheme(zeta.
name()));
186 case tsCrankNicolson:
194 scalar dt0 = db().time().deltaT0Value();
196 scalar
c = 1.0 + dt/(dt + dt0);
197 scalar c00 = dt*dt/(dt0*(dt + dt0));
213 "waveSurfacePressureFvPatchScalarField<Type>::updateCoeffs()" 214 ) <<
" Unsupported temporal differencing scheme : " 215 << ddtSchemeName <<
nl 216 <<
" on patch " << this->patch().name()
224 Info<<
"min/max zetap = " <<
gMin(zetap & nf()) <<
", " 233 fixedValueFvPatchScalarField::updateCoeffs();
240 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
241 writeEntryIfDifferent<word>(os,
"zeta",
"zeta", zetaName_);
242 writeEntryIfDifferent<word>(os,
"rho",
"rho", rhoName_);
243 writeEntry(
"value", os);
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
GeometricBoundaryField & boundaryField()
Return reference to GeometricBoundaryField.
Basic first-order Euler implicit/explicit ddt using only the current and previous time-step values...
This is a pressure boundary condition, whose value is calculated as the hydrostatic pressure based on...
const dimensionSet dimArea(sqr(dimLength))
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Foam::fvPatchFieldMapper.
const Mesh & mesh() const
Return mesh.
const dimensionSet dimDensity
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual void write(Ostream &) const
Write.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Second-order backward-differencing ddt using the current and two previous time-step values...
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Macros for easy insertion into run-time selection tables.
ddtSchemeType
Enumeration defining the available ddt schemes.
const dimensionSet & dimensions() const
Return dimensions.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
errorManip< error > abort(error &err)
const word & name() const
Return name.
Type gMin(const FieldField< Field, Type > &f)
Initialise the NamedEnum HashTable from the static list of names.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
rDeltaT dimensionedInternalField()
Dimensioned<Type> registered with the database as a registered IOobject which has the functionality o...
waveSurfacePressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
const dimensionedVector & g
const GeometricField< Type, PatchField, GeoMesh > & oldTime() const
Return old time field.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
virtual void write(Ostream &) const
Write.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const dimensionedScalar c
Speed of light in a vacuum.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
Second-oder Crank-Nicolson implicit ddt using the current and previous time-step fields as well as th...
virtual label size() const
Return size.
const dimensionSet dimVelocity
Type gMax(const FieldField< Field, Type > &f)
A class for managing temporary objects.
const Type & value() const
Return const reference to value.