Go to the documentation of this file.
71 nbrPhiName_(
dict.lookupOrDefault<
word>(
"nbrPhi",
"phi")),
72 phiName_(
dict.lookupOrDefault<
word>(
"phi",
"phi")),
73 rhoName_(
dict.lookupOrDefault<
word>(
"rho",
"rho"))
122 const fvPatch& nbrPatch = refCast<const fvMesh>
155 scalar
phi =
gSum(rhop*(*
this) & patch().Sf());
156 Info<< patch().boundaryMesh().mesh().name() <<
':'
157 << patch().name() <<
':'
159 << nbrMesh.
name() <<
':'
160 << nbrPatch.
name() <<
':'
162 <<
" mass flux[Kg/s]:" << -phi
169 <<
"dimensions of " <<
phiName_ <<
" are incorrect" <<
nl
170 <<
" on patch " << this->patch().name()
189 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
190 writeEntryIfDifferent<word>(os,
"rho",
"rho", rhoName_);
192 writeEntry(
"value", os);
virtual void write(Ostream &) const
Write.
word phiName_
Name of the local mass flux.
A class for handling words, derived from string.
const dimensionSet dimVelocity
const dimensionSet dimDensity
virtual void write(Ostream &) const
Write.
rDeltaT dimensionedInternalField()
const polyPatch & samplePolyPatch() const
Get the patch on the region.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Type gSum(const FieldField< Field, Type > &f)
Determines a mapping between patch face centres and mesh cell or face centres and processors they're ...
Mesh consisting of general polyhedral cells.
This boundary condition supplies a fixed value constraint, and is the base class for a number of othe...
const word & name() const
Return name.
const polyMesh & sampleMesh() const
Get the region mesh.
const dimensionSet dimArea(sqr(dimLength))
Pre-declare SubField and related Field type.
void distribute(List< Type > &lst) const
Wrapper around map/interpolate data distribution.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
const word & name() const
Return name.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
word rhoName_
Name of the density field used to normalize the mass flux.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Macros for easy insertion into run-time selection tables.
mappedFlowRateFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
errorManipArg< error, int > exit(error &err, const int errNo=1)
word nbrPhiName_
Name of the neighbor flux setting the inlet mass flux.
static int & msgType()
Message tag of standard messages.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Describes a volumetric/mass flow normal vector boundary condition by its magnitude as an integral ove...
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
const GeometricField::PatchFieldType & lookupPatchField(const word &name, const GeometricField *=NULL, const Type *=NULL) const
Lookup and return the patchField of the named field from the.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Generic GeometricField class.
label index() const
Return the index of this patch in the boundaryMesh.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...