44 directionMixedFvPatchVectorField(
p, iF),
54 valueFraction() =
Zero;
66 directionMixedFvPatchVectorField(
p, iF),
67 phiName_(
dict.getOrDefault<
word>(
"phi",
"phi")),
68 fixTangentialInflow_(
dict.
lookup(
"fixTangentialInflow")),
78 valueFraction() =
Zero;
91 directionMixedFvPatchVectorField(ptf,
p, iF, mapper),
92 phiName_(ptf.phiName_),
93 fixTangentialInflow_(ptf.fixTangentialInflow_),
107 directionMixedFvPatchVectorField(pivpvf),
121 directionMixedFvPatchVectorField(pivpvf, iF),
122 phiName_(pivpvf.phiName_),
135 directionMixedFvPatchVectorField::autoMap(m);
146 directionMixedFvPatchVectorField::rmap(ptf, addr);
162 normalVelocity_->evaluate();
163 refValue() = normalVelocity();
165 valueFraction() =
sqr(patch().nf());
167 if (fixTangentialInflow_)
172 valueFraction() +=
neg(phip)*(
I - valueFraction());
175 directionMixedFvPatchVectorField::updateCoeffs();
176 directionMixedFvPatchVectorField::evaluate();
187 os.writeEntryIfDifferent<word>(
"phi",
"phi", phiName_);
188 os.writeEntry(
"fixTangentialInflow", fixTangentialInflow_);
190 os.beginBlock(
"normalVelocity");
191 normalVelocity_->write(
os);
200void Foam::fixedNormalInletOutletVelocityFvPatchVectorField::operator=
218 fixedNormalInletOutletVelocityFvPatchVectorField
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...
@ MUST_READ
Reading required.
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 a number of values (eg,...
This velocity inlet/outlet boundary condition combines a fixed normal component obtained from the "no...
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
fixedNormalInletOutletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
virtual void write(Ostream &) const
Write.
tmp< fvPatchVectorField > normalVelocity_
BC which provided the normal component of the velocity.
virtual void rmap(const fvPatchVectorField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual tmp< fvPatchField< vector > > clone() const
Return a clone.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
word phiName_
Flux field name.
Switch fixTangentialInflow_
Set true to fix the tangential component for inflow.
const fvPatchVectorField & normalVelocity() const
Return the BC which provides the normal component of velocity.
virtual void readDict(const dictionary &dict)
Read dictionary entries.
A FieldMapper for finite-volume patch fields.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
virtual void operator=(const UList< Type > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Lookup type of boundary radiation properties.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
Define a concrete fvPatchField type and add to run-time tables Example, (fvPatchScalarField,...
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
List< label > labelList
A List of labels.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
refinementData transform(const tensor &, const refinementData val)
No-op rotational transform for base types.
static const Identity< scalar > I
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
dimensionedScalar neg(const dimensionedScalar &ds)
static constexpr const zero Zero
Global zero (0).
fvPatchField< vector > fvPatchVectorField