Go to the documentation of this file.
41 directionMixedFvPatchVectorField(
p, iF),
43 fixTangentialInflow_(
true),
49 refValue() = vector::zero;
50 refGrad() = vector::zero;
51 valueFraction() = symmTensor::zero;
64 directionMixedFvPatchVectorField(ptf,
p, iF, mapper),
82 directionMixedFvPatchVectorField(
p, iF),
83 phiName_(
dict.lookupOrDefault<
word>(
"phi",
"phi")),
84 fixTangentialInflow_(
dict.lookup(
"fixTangentialInflow")),
91 refValue() = normalVelocity();
92 refGrad() = vector::zero;
93 valueFraction() = symmTensor::zero;
103 directionMixedFvPatchVectorField(pivpvf),
117 directionMixedFvPatchVectorField(pivpvf, iF),
131 directionMixedFvPatchVectorField::autoMap(m);
132 normalVelocity_->autoMap(m);
142 directionMixedFvPatchVectorField::rmap(ptf, addr);
145 refCast<const fixedNormalInletOutletVelocityFvPatchVectorField>(ptf);
161 valueFraction() =
sqr(patch().nf());
168 valueFraction() +=
neg(phip)*(
I - valueFraction());
171 directionMixedFvPatchVectorField::updateCoeffs();
172 directionMixedFvPatchVectorField::evaluate();
183 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
188 normalVelocity_->
write(os);
190 writeEntry(
"value", os);
196 void Foam::fixedNormalInletOutletVelocityFvPatchVectorField::operator=
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
virtual void operator=(const UList< Type > &)
A class for handling words, derived from string.
autoPtr< BasicCompressibleTurbulenceModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleTurbulenceModel::transportModel &transport, const word &propertiesName)
A class for managing temporary objects.
virtual void rmap(const fvPatchVectorField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
dimensionSet transform(const dimensionSet &)
word phiName_
Flux field name.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Switch fixTangentialInflow_
Set true to fix the tangential component for inflow.
virtual Ostream & write(const token &)=0
Write next token to stream.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
tmp< fvPatchVectorField > normalVelocity_
BC which provided the normal component of the velocity.
volVectorField vectorField(fieldObject, mesh)
static const sphericalTensor I(1)
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 any number of values (e....
virtual void write(Ostream &) const
Write.
Macros for easy insertion into run-time selection tables.
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
Ostream & indent(Ostream &os)
Indent stream.
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
fixedNormalInletOutletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
virtual tmp< fvPatchField< Type > > clone() const
Construct and return a clone.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
dimensionedScalar neg(const dimensionedScalar &ds)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const fvPatchVectorField & normalVelocity() const
Return the BC which provides the normal component of velocity.