Go to the documentation of this file.
44 directionMixedFvPatchVectorField(
p, iF),
46 fixTangentialInflow_(true),
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),
108 phiName_(pivpvf.phiName_),
109 fixTangentialInflow_(pivpvf.fixTangentialInflow_),
110 normalVelocity_(pivpvf.normalVelocity().clone())
121 directionMixedFvPatchVectorField(pivpvf, iF),
122 phiName_(pivpvf.phiName_),
123 fixTangentialInflow_(pivpvf.fixTangentialInflow_),
124 normalVelocity_(pivpvf.normalVelocity().clone())
135 directionMixedFvPatchVectorField::autoMap(m);
136 normalVelocity_->autoMap(m);
146 directionMixedFvPatchVectorField::rmap(ptf, addr);
149 refCast<const fixedNormalInletOutletVelocityFvPatchVectorField>(ptf);
162 normalVelocity_->evaluate();
163 refValue() = normalVelocity();
165 valueFraction() =
sqr(
patch().nf());
167 if (fixTangentialInflow_)
169 const fvsPatchField<scalar>& phip =
172 valueFraction() +=
neg(phip)*(
I - valueFraction());
175 directionMixedFvPatchVectorField::updateCoeffs();
188 os.
writeEntry(
"fixTangentialInflow", fixTangentialInflow_);
194 writeEntry(
"value",
os);
200 void Foam::fixedNormalInletOutletVelocityFvPatchVectorField::operator=
218 fixedNormalInletOutletVelocityFvPatchVectorField
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
virtual void operator=(const UList< Type > &)
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
static constexpr const zero Zero
virtual void rmap(const fvPatchVectorField &, const labelList &)
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
virtual Ostream & beginBlock(const keyType &kw)
dimensionSet transform(const dimensionSet &ds)
Field< vector > vectorField
Specialisation of Field<T> for vector.
virtual void updateCoeffs()
Switch fixTangentialInflow_
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
tmp< fvPatchVectorField > normalVelocity_
Lookup type of boundary radiation properties.
virtual Ostream & endBlock()
This velocity inlet/outlet boundary condition combines a fixed normal component obtained from the "no...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual void write(Ostream &) const
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
virtual bool write(const token &tok)=0
virtual void autoMap(const fvPatchFieldMapper &)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
fvPatchField< vector > fvPatchVectorField
dimensionedSymmTensor sqr(const dimensionedVector &dv)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
fixedNormalInletOutletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual tmp< fvPatchField< Type > > clone() const
Ostream & writeEntry(const keyType &key, const T &value)
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
dimensionedScalar neg(const dimensionedScalar &ds)
static const Identity< scalar > I
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const fvPatchVectorField & normalVelocity() const
string evaluate(label fieldWidth, const std::string &s, size_t pos=0, size_t len=std::string::npos)