41 mixedFvPatchVectorField(p, iF),
48 valueFraction() = 0.0;
60 mixedFvPatchVectorField(p, iF),
63 inletDir_(
"inletDirection", dict, p.
size())
68 valueFraction() = 0.0;
81 mixedFvPatchVectorField(ptf, p, iF, mapper),
82 phiName_(ptf.phiName_),
83 rhoName_(ptf.rhoName_),
84 inletDir_(mapper(ptf.inletDir_))
95 mixedFvPatchVectorField(pivpvf, iF),
96 phiName_(pivpvf.phiName_),
97 rhoName_(pivpvf.rhoName_),
98 inletDir_(pivpvf.inletDir_)
109 mixedFvPatchVectorField::autoMap(m);
110 m(inletDir_, inletDir_);
120 mixedFvPatchVectorField::rmap(ptf, addr);
123 refCast<const pressureDirectedInletOutletVelocityFvPatchVectorField>
126 inletDir_.
rmap(tiptf.inletDir_, addr);
148 refValue() = inletDir_*phip/ndmagS;
155 refValue() = inletDir_*phip/(rhop*ndmagS);
160 <<
"dimensions of phi are not correct" 161 <<
"\n on patch " << this->patch().name()
162 <<
" of field " << this->internalField().name()
163 <<
" in file " << this->internalField().objectPath()
167 valueFraction() = 1.0 -
pos0(phip);
169 mixedFvPatchVectorField::updateCoeffs();
179 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
180 writeEntryIfDifferent<word>(os,
"rho",
"rho", rhoName_);
188 void Foam::pressureDirectedInletOutletVelocityFvPatchVectorField::operator=
195 valueFraction()*(inletDir_*(inletDir_ & pvf))
196 + (1 - valueFraction())*pvf
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A list of keyword definitions, which are a keyword followed by any number of values (e...
pressureDirectedInletOutletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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.
Macros for easy insertion into run-time selection tables.
virtual void rmap(const fvPatchVectorField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const dimensionSet & dimensions() const
Return dimensions.
A class for handling words, derived from string.
Foam::fvPatchFieldMapper.
const dimensionSet dimFlux
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
virtual label size() const
Return size.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
dimensionedScalar pos0(const dimensionedScalar &ds)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
const dimensionSet dimMassFlux
virtual void write(Ostream &) const
Write.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
This velocity inlet/outlet boundary condition is applied to pressure boundaries where the pressure is...
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...