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, dict),
76 inletDir_(
"inletDirection", dict, p.
size())
86 fixedValueFvPatchVectorField(pivpvf),
87 phiName_(pivpvf.phiName_),
88 rhoName_(pivpvf.rhoName_),
89 inletDir_(pivpvf.inletDir_)
100 fixedValueFvPatchVectorField(pivpvf, iF),
101 phiName_(pivpvf.phiName_),
102 rhoName_(pivpvf.rhoName_),
103 inletDir_(pivpvf.inletDir_)
114 fixedValueFvPatchVectorField::autoMap(m);
115 inletDir_.autoMap(m);
125 fixedValueFvPatchVectorField::rmap(ptf, addr);
128 refCast<const pressureDirectedInletVelocityFvPatchVectorField>(ptf);
130 inletDir_.
rmap(tiptf.inletDir_, addr);
164 <<
"dimensions of phi are not correct" 165 <<
"\n on patch " << this->patch().name()
166 <<
" of field " << this->internalField().name()
167 <<
" in file " << this->internalField().objectPath()
171 fixedValueFvPatchVectorField::updateCoeffs();
181 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
182 writeEntryIfDifferent<word>(os,
"rho",
"rho", rhoName_);
184 writeEntry(
"value", os);
190 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.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
void writeEntry(const word &keyword, Ostream &os) const
Write the field as a dictionary entry.
pressureDirectedInletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
virtual void write(Ostream &) const
Write.
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)
const dimensionSet & dimensions() const
Return dimensions.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
A class for handling words, derived from string.
Foam::fvPatchFieldMapper.
virtual void write(Ostream &) const
Write.
virtual label size() const
Return size.
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
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...
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
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
const dimensionSet dimArea(sqr(dimLength))
const dimensionSet dimVelocity