Go to the documentation of this file.
45 Foam::waveSurfacePressureFvPatchScalarField::ddtSchemeTypeNames_
48 ddtSchemeType::tsEuler,
49 fv::EulerDdtScheme<scalar>::typeName_()
52 ddtSchemeType::tsCrankNicolson,
53 fv::CrankNicolsonDdtScheme<scalar>::typeName_()
56 ddtSchemeType::tsBackward,
57 fv::backwardDdtScheme<scalar>::typeName_()
71 fixedValueFvPatchScalarField(
p, iF),
86 fixedValueFvPatchScalarField(
p, iF,
dict),
87 phiName_(
dict.getOrDefault<
word>(
"phi",
"phi")),
88 zetaName_(
dict.getOrDefault<
word>(
"zeta",
"zeta")),
89 rhoName_(
dict.getOrDefault<
word>(
"rho",
"rho"))
102 fixedValueFvPatchScalarField(ptf,
p, iF, mapper),
103 phiName_(ptf.phiName_),
104 zetaName_(ptf.zetaName_),
105 rhoName_(ptf.rhoName_)
115 fixedValueFvPatchScalarField(wspsf),
116 phiName_(wspsf.phiName_),
117 zetaName_(wspsf.zetaName_),
118 rhoName_(wspsf.rhoName_)
129 fixedValueFvPatchScalarField(wspsf, iF),
130 phiName_(wspsf.phiName_),
131 zetaName_(wspsf.zetaName_),
132 rhoName_(wspsf.rhoName_)
145 const label patchi =
patch().index();
147 const scalar dt = db().time().deltaTValue();
154 const word ddtSchemeName(zeta.mesh().ddtScheme(zeta.name()));
188 scalar dt0 = db().time().deltaT0Value();
190 scalar
c = 1.0 + dt/(dt + dt0);
191 scalar c00 = dt*dt/(dt0*(dt + dt0));
206 << ddtSchemeName <<
nl
207 <<
" on patch " << this->
patch().name()
208 <<
" of field " << this->internalField().name()
209 <<
" in file " << this->internalField().objectPath()
215 Info<<
"min/max zetap = " <<
gMin(zetap & nf()) <<
", "
224 fixedValueFvPatchScalarField::updateCoeffs();
234 writeEntry(
"value", os);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
const dimensionSet dimVelocity
const dimensionSet dimDensity
const GeometricField< Type, PatchField, GeoMesh > & oldTime() const
Return old time field.
Ostream & endl(Ostream &os)
Add newline and flush stream.
waveSurfacePressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
const dimensionSet dimArea(sqr(dimLength))
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
messageStream Info
Information stream (uses stdout - output is on the master only)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
virtual void write(Ostream &) const
Write.
const uniformDimensionedVectorField & g
errorManip< error > abort(error &err)
ddtSchemeType
Enumeration defining the available ddt schemes.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const std::string patch
OpenFOAM patch number as a std::string.
Boundary & boundaryFieldRef(const bool updateAccessTime=true)
Return a reference to the boundary field.
const dimensionedScalar c
Speed of light in a vacuum.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
Type gMin(const FieldField< Field, Type > &f)
This is a pressure boundary condition, whose value is calculated as the hydrostatic pressure based on...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Type gMax(const FieldField< Field, Type > &f)
static const gravity & New(const Time &runTime)
Construct on Time.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...