Go to the documentation of this file.
44 fixedValueFvPatchScalarField(
p, iF),
58 fixedValueFvPatchScalarField(
p, iF,
dict,
false),
59 rhoName_(
dict.getOrDefault<
word>(
"rho",
"rho")),
60 p_(
"p",
dict,
p.size())
62 if (
dict.found(
"value"))
64 fvPatchScalarField::operator=
85 fixedValueFvPatchScalarField(ptf,
p, iF, mapper),
97 fixedValueFvPatchScalarField(ptf),
110 fixedValueFvPatchScalarField(ptf, iF),
123 fixedValueFvPatchScalarField::autoMap(m);
134 fixedValueFvPatchScalarField::rmap(ptf, addr);
137 refCast<const prghPressureFvPatchScalarField>(ptf);
139 p_.rmap(tiptf.
p_, addr);
163 mag(
g.value()) > SMALL
170 fixedValueFvPatchScalarField::updateCoeffs();
178 p_.writeEntry(
"p", os);
179 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.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
word rhoName_
Name of phase-fraction field.
A class for handling words, derived from Foam::string.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
static constexpr const zero Zero
Global zero (0)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
void cmptMag(FieldField< Field, Type > &cf, const FieldField< Field, Type > &f)
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
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.
const uniformDimensionedVectorField & g
virtual void write(Ostream &) const
Write.
const std::string patch
OpenFOAM patch number as a std::string.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
scalarField p_
Static pressure.
prghPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
Foam::fvPatchFieldMapper.
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
This boundary condition provides static pressure condition for p_rgh, calculated as:
static const gravity & New(const Time &runTime)
Construct on Time.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...