41 directionMixedFvPatchVectorField(p, iF),
46 valueFraction() =
Zero;
59 directionMixedFvPatchVectorField(ptf, p, iF, mapper),
60 phiName_(ptf.phiName_),
61 tangentialVelocity_(ptf.tangentialVelocity_,
false)
73 directionMixedFvPatchVectorField(p, iF),
78 if (dict.
found(
"tangentialVelocity"))
86 valueFraction() =
Zero;
97 directionMixedFvPatchVectorField(pivpvf, iF),
98 phiName_(pivpvf.phiName_),
99 tangentialVelocity_(pivpvf.tangentialVelocity_,
false)
112 if (tangentialVelocity_.
valid())
114 const scalar t = this->db().time().timeOutputValue();
115 const vector tangentialVelocity = tangentialVelocity_->
value(t);
117 refValue() = tangentialVelocity - n*(n & tangentialVelocity);
123 valueFraction() =
neg(phip)*(
I -
sqr(patch().nf()));
125 directionMixedFvPatchVectorField::updateCoeffs();
137 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
138 if (tangentialVelocity_.
valid())
148 void Foam::pressureInletOutletVelocityFvPatchVectorField::operator=
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
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)
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 write(Ostream &) const
Write.
virtual void write(Ostream &) const
Write.
dimensionedScalar neg(const dimensionedScalar &ds)
Macros for easy insertion into run-time selection tables.
pressureInletOutletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual Type value(const scalar x) const =0
Return value as a function of scalar x.
static const Identity< scalar > I
This velocity inlet/outlet boundary condition is applied to pressure boundaries where the pressure is...
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.
Foam::fvPatchFieldMapper.
bool valid() const
Return true if the autoPtr valid (ie, the pointer is set)
virtual label size() const
Return size.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
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
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
dimensionSet transform(const dimensionSet &)