42 directionMixedFvPatchVectorField(
p, iF),
43 phiName_(
dict.lookupOrDefault<
word>(
"phi",
"phi"))
50 if (
dict.found(
"tangentialVelocity"))
56 db().time().userUnits(),
64 valueFraction() =
Zero;
77 directionMixedFvPatchVectorField(ptf,
p, iF, mapper),
78 phiName_(ptf.phiName_),
79 tangentialVelocity_(ptf.tangentialVelocity_, false)
90 directionMixedFvPatchVectorField(pivpvf, iF),
91 phiName_(pivpvf.phiName_),
92 tangentialVelocity_(pivpvf.tangentialVelocity_, false)
105 if (tangentialVelocity_.valid())
107 const vector tangentialVelocity =
108 tangentialVelocity_->value(db().time().value());
110 refValue() = tangentialVelocity -
n*(
n & tangentialVelocity);
116 valueFraction() =
neg(phip)*(
I -
sqr(patch().nf()));
118 directionMixedFvPatchVectorField::updateCoeffs();
130 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
131 if (tangentialVelocity_.valid())
136 db().time().userUnits(),
138 tangentialVelocity_()
147 void Foam::pressureInletOutletVelocityFvPatchVectorField::operator=
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const dimensionSet & dimensions() const
Return dimensions.
static autoPtr< Function1< Type > > New(const word &name, const Function1s::unitConversions &units, const dictionary &dict)
Select from dictionary.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Abstract base class for field mapping.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
friend Ostream & operator(Ostream &, const fvPatchField< Type > &)
virtual void operator=(const UList< Type > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
Velocity inlet/outlet boundary condition for patches where the pressure is specified in some manner,...
pressureInletOutletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A class for managing temporary objects.
A class for handling words, derived from string.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
SurfaceField< scalar > surfaceScalarField
static const Identity< scalar > I
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
dimensionSet transform(const dimensionSet &)
Field< vector > vectorField
Specialisation of Field<T> for vector.
dimensionedScalar neg(const dimensionedScalar &ds)
const dimensionSet dimVelocity
void evaluate(GeometricField< Type, PatchField, GeoMesh > &result, const Function1< Type > &func, const GeometricField< Type, PatchField, GeoMesh > &x)
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)