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().userTimeValue();
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.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
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...
const autoPtr< Function1< vector > > & tangentialVelocity() const
Return the tangential velocity Function1.
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.
static const Identity< scalar > I
Velocity inlet/outlet boundary condition for patches where the pressure is specified in some manner...
A class for handling words, derived from string.
Foam::fvPatchFieldMapper.
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 &)