41 directionMixedFvPatchVectorField(p, iF),
43 fixTangentialInflow_(
true),
51 valueFraction() =
Zero;
63 directionMixedFvPatchVectorField(p, iF),
65 fixTangentialInflow_(dict.
lookup(
"fixTangentialInflow")),
72 refValue() = normalVelocity();
74 valueFraction() =
Zero;
87 directionMixedFvPatchVectorField(ptf, p, iF, mapper),
88 phiName_(ptf.phiName_),
89 fixTangentialInflow_(ptf.fixTangentialInflow_),
104 directionMixedFvPatchVectorField(pivpvf, iF),
105 phiName_(pivpvf.phiName_),
106 fixTangentialInflow_(pivpvf.fixTangentialInflow_),
118 directionMixedFvPatchVectorField::autoMap(m);
119 normalVelocity_->autoMap(m);
129 directionMixedFvPatchVectorField::rmap(ptf, addr);
132 refCast<const fixedNormalInletOutletVelocityFvPatchVectorField>(ptf);
145 normalVelocity_->evaluate();
148 valueFraction() =
sqr(patch().nf());
150 if (fixTangentialInflow_)
155 valueFraction() +=
neg(phip)*(
I - valueFraction());
158 directionMixedFvPatchVectorField::updateCoeffs();
170 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
171 writeEntry(os,
"fixTangentialInflow", fixTangentialInflow_);
174 normalVelocity_->write(os);
182 void Foam::fixedNormalInletOutletVelocityFvPatchVectorField::operator=
virtual void rmap(const fvPatchVectorField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
const fvPatchVectorField & normalVelocity() const
Return the BC which provides the normal component of velocity.
Ostream & indent(Ostream &os)
Indent stream.
Ostream & writeKeyword(Foam::Ostream &os, const keyType &kw)
Write the keyword to the Ostream with the current level of indentation.
This velocity inlet/outlet boundary condition combines a fixed normal component obtained from the "no...
void evaluate(GeometricField< Type, PatchField, GeoMesh > &result, const Function1< Type > &func, const GeometricField< Type, PatchField, GeoMesh > &x)
A list of keyword definitions, which are a keyword followed by any number of values (e...
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Ostream & endl(Ostream &os)
Add newline and flush stream.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
volVectorField vectorField(fieldObject, mesh)
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
virtual void write(Ostream &) const
Write.
dimensionedScalar neg(const dimensionedScalar &ds)
Macros for easy insertion into run-time selection tables.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
static const Identity< scalar > I
autoPtr< BasicCompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleMomentumTransportModel::transportModel &transport)
A class for handling words, derived from string.
fixedNormalInletOutletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
Foam::fvPatchFieldMapper.
virtual label size() const
Return size.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
virtual void operator=(const UList< Type > &)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
A class for managing temporary objects.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Ostream & incrIndent(Ostream &os)
Increment the indent level.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
tmp< fvPatchField< Type > > clone() const
Disallow clone without setting internal field reference.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
virtual void write(Ostream &) const
Write.
dimensionSet transform(const dimensionSet &)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.