Go to the documentation of this file.
44 fixedValueFvPatchScalarField(
p, iF),
59 fixedValueFvPatchScalarField(
p, iF,
dict,
false),
60 UName_(
dict.lookupOrDefault<
word>(
"U",
"U")),
61 phiName_(
dict.lookupOrDefault<
word>(
"phi",
"phi")),
62 rhoName_(
dict.lookupOrDefault<
word>(
"rho",
"rho")),
63 p0_(
"p0",
dict,
p.size())
65 if (
dict.found(
"value"))
67 fvPatchScalarField::operator=
87 fixedValueFvPatchScalarField(ptf,
p, iF, mapper),
100 fixedValueFvPatchScalarField(ptf),
114 fixedValueFvPatchScalarField(ptf, iF),
129 fixedValueFvPatchScalarField::autoMap(m);
140 fixedValueFvPatchScalarField::rmap(ptf, addr);
143 refCast<const prghTotalPressureFvPatchScalarField>(ptf);
145 p0_.rmap(tiptf.
p0_, addr);
173 mag(
g.value()) > SMALL
182 - rhop*((
g.value() &
patch().Cf()) - ghRef.value())
185 fixedValueFvPatchScalarField::updateCoeffs();
195 p0_.writeEntry(
"p0", os);
196 writeEntry(
"value", os);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
word phiName_
Name of the flux transporting the field.
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.
This boundary condition provides static pressure condition for p_rgh, calculated as:
prghTotalPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal 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.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void write(Ostream &) const
Write.
dimensionedScalar pos0(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
void cmptMag(FieldField< Field, Type > &cf, const FieldField< Field, Type > &f)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
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.
const uniformDimensionedVectorField & g
GeometricField< vector, fvPatchField, volMesh > volVectorField
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
const std::string patch
OpenFOAM patch number as a std::string.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
word UName_
Name of the velocity field.
scalarField p0_
Total pressure.
word rhoName_
Name of phase-fraction field.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
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...
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.