Go to the documentation of this file.
44 directionMixedFvPatchVectorField(
p, iF),
49 valueFraction() =
Zero;
62 directionMixedFvPatchVectorField(ptf,
p, iF, mapper),
63 phiName_(ptf.phiName_)
65 if (ptf.tangentialVelocity_.size())
67 tangentialVelocity_ = mapper(ptf.tangentialVelocity_);
76 const DimensionedField<vector, volMesh>& iF,
77 const dictionary&
dict
80 directionMixedFvPatchVectorField(
p, iF),
81 phiName_(
dict.getOrDefault<word>(
"phi",
"phi"))
86 if (
dict.found(
"tangentialVelocity"))
99 valueFraction() =
Zero;
109 directionMixedFvPatchVectorField(pivpvf),
110 phiName_(pivpvf.phiName_),
111 tangentialVelocity_(pivpvf.tangentialVelocity_)
122 directionMixedFvPatchVectorField(pivpvf, iF),
123 phiName_(pivpvf.phiName_),
124 tangentialVelocity_(pivpvf.tangentialVelocity_)
133 tangentialVelocity_ = tangentialVelocity;
135 refValue() = tangentialVelocity_ -
n*(
n & tangentialVelocity_);
144 directionMixedFvPatchVectorField::autoMap(m);
145 if (tangentialVelocity_.size())
147 tangentialVelocity_.autoMap(m);
158 directionMixedFvPatchVectorField::rmap(ptf, addr);
160 if (tangentialVelocity_.size())
162 const pressureInletOutletVelocityFvPatchVectorField& tiptf =
163 refCast<const pressureInletOutletVelocityFvPatchVectorField>(ptf);
165 tangentialVelocity_.rmap(tiptf.tangentialVelocity_, addr);
177 const fvsPatchField<scalar>& phip =
182 directionMixedFvPatchVectorField::updateCoeffs();
195 if (tangentialVelocity_.size())
197 tangentialVelocity_.writeEntry(
"tangentialVelocity",
os);
199 writeEntry(
"value",
os);
205 void Foam::pressureInletOutletVelocityFvPatchVectorField::operator=
223 pressureInletOutletVelocityFvPatchVectorField
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
List< label > labelList
A List of labels.
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
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
virtual void write(Ostream &) const
const vectorField & tangentialVelocity() const
pressureInletOutletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
dimensionSet transform(const dimensionSet &ds)
virtual void updateCoeffs()
Field< vector > vectorField
Specialisation of Field<T> for vector.
Generic templated field type.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
virtual void rmap(const fvPatchVectorField &, const labelList &)
fvPatchField< vector > fvPatchVectorField
dimensionedSymmTensor sqr(const dimensionedVector &dv)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual void autoMap(const fvPatchFieldMapper &)
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void setTangentialVelocity(const vectorField &tangentialVelocity)
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...
This velocity inlet/outlet boundary condition is applied to velocity boundaries where the pressure is...
string evaluate(label fieldWidth, const std::string &s, size_t pos=0, size_t len=std::string::npos)