42 fixedValueFvPatchVectorField(p, iF),
58 fixedValueFvPatchVectorField(ptf, p, iF, mapper),
59 phiName_(ptf.phiName_),
60 rhoName_(ptf.rhoName_),
61 inletDir_(ptf.inletDir_, mapper)
73 fixedValueFvPatchVectorField(p, iF),
76 inletDir_(
"inletDirection", dict, p.
size())
88 fixedValueFvPatchVectorField(pivpvf),
89 phiName_(pivpvf.phiName_),
90 rhoName_(pivpvf.rhoName_),
91 inletDir_(pivpvf.inletDir_)
102 fixedValueFvPatchVectorField(pivpvf, iF),
103 phiName_(pivpvf.phiName_),
104 rhoName_(pivpvf.rhoName_),
105 inletDir_(pivpvf.inletDir_)
116 fixedValueFvPatchVectorField::autoMap(m);
117 inletDir_.autoMap(m);
127 fixedValueFvPatchVectorField::rmap(ptf, addr);
130 refCast<const pressureDirectedInletVelocityFvPatchVectorField>(ptf);
132 inletDir_.
rmap(tiptf.inletDir_, addr);
166 <<
"dimensions of phi are not correct" 167 <<
"\n on patch " << this->patch().name()
168 <<
" of field " << this->internalField().name()
169 <<
" in file " << this->internalField().objectPath()
173 fixedValueFvPatchVectorField::updateCoeffs();
183 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
184 writeEntryIfDifferent<word>(os,
"rho",
"rho", rhoName_);
186 writeEntry(
"value", os);
192 void Foam::pressureDirectedInletVelocityFvPatchVectorField::operator=
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
void writeEntry(const word &keyword, Ostream &os) const
Write the field as a dictionary entry.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
volVectorField vectorField(fieldObject, mesh)
pressureDirectedInletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
Macros for easy insertion into run-time selection tables.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
A class for handling words, derived from string.
Foam::fvPatchFieldMapper.
virtual label size() const
Return size.
const dimensionSet & dimensions() const
Return dimensions.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void rmap(const fvPatchVectorField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
const dimensionSet dimDensity
virtual void operator=(const UList< Type > &)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
This velocity inlet boundary condition is applied to patches where the pressure is specified...
A class for managing temporary objects.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
virtual void write(Ostream &) const
Write.
const dimensionSet dimArea(sqr(dimLength))
virtual void write(Ostream &) const
Write.
const dimensionSet dimVelocity