42 mixedFvPatchVectorField(
p, iF,
dict, false),
43 phiName_(
dict.lookupOrDefault<
word>(
"phi",
"phi")),
44 rhoName_(
dict.lookupOrDefault<
word>(
"rho",
"rho")),
53 valueFraction() = 0.0;
66 mixedFvPatchVectorField(ptf,
p, iF, mapper),
67 phiName_(ptf.phiName_),
68 rhoName_(ptf.rhoName_),
69 inletDir_(mapper(ptf.inletDir_))
80 mixedFvPatchVectorField(pivpvf, iF),
81 phiName_(pivpvf.phiName_),
82 rhoName_(pivpvf.rhoName_),
83 inletDir_(pivpvf.inletDir_)
95 mixedFvPatchVectorField::map(ptf, mapper);
98 refCast<const pressureDirectedInletOutletVelocityFvPatchVectorField>
101 mapper(inletDir_, tiptf.inletDir_);
110 mixedFvPatchVectorField::reset(ptf);
113 refCast<const pressureDirectedInletOutletVelocityFvPatchVectorField>
116 inletDir_.reset(tiptf.inletDir_);
138 refValue() = inletDir_*phip/ndmagS;
145 refValue() = inletDir_*phip/(rhop*ndmagS);
150 <<
"dimensions of phi are not correct"
151 <<
"\n on patch " << this->patch().name()
152 <<
" of field " << this->internalField().name()
153 <<
" in file " << this->internalField().objectPath()
157 valueFraction() =
neg(phip);
159 mixedFvPatchVectorField::updateCoeffs();
169 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
170 writeEntryIfDifferent<word>(os,
"rho",
"rho", rhoName_);
178 void Foam::pressureDirectedInletOutletVelocityFvPatchVectorField::operator=
185 valueFraction()*(inletDir_*(inletDir_ & pvf))
186 + (1 - valueFraction())*pvf
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.
Generic GeometricField class.
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 > &)
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...
This velocity inlet/outlet boundary condition is applied to pressure boundaries where the pressure is...
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
pressureDirectedInletOutletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
virtual void reset(const fvPatchVectorField &)
Reset the fvPatchField to the given fvPatchField.
virtual void map(const fvPatchVectorField &, const fieldMapper &)
Map the given fvPatchField onto this fvPatchField.
A class for managing temporary objects.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const dimensionSet dimMassFlux
const dimensionSet dimVolumetricFlux
const dimensionSet dimless
SurfaceField< scalar > surfaceScalarField
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
VolField< scalar > volScalarField
Field< vector > vectorField
Specialisation of Field<T> for vector.
dimensionedScalar neg(const dimensionedScalar &ds)
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)