60 nbrPhiName_(ptf.nbrPhiName_),
61 phiName_(ptf.phiName_),
62 rhoName_(ptf.rhoName_)
74 nbrPhiName_(
dict.getOrDefault<
word>(
"nbrPhi",
"phi")),
75 phiName_(
dict.getOrDefault<
word>(
"phi",
"phi")),
76 rhoName_(
dict.getOrDefault<
word>(
"rho",
"rho"))
86 nbrPhiName_(ptf.nbrPhiName_),
87 phiName_(ptf.phiName_),
88 rhoName_(ptf.rhoName_)
99 nbrPhiName_(ptf.nbrPhiName_),
100 phiName_(ptf.phiName_),
101 rhoName_(ptf.rhoName_)
125 const fvPatch& nbrPatch = refCast<const fvMesh>
158 scalar
phi =
gSum(rhop*(*
this) & patch().Sf());
159 Info<< patch().boundaryMesh().mesh().name() <<
':'
160 << patch().name() <<
':'
161 << this->internalField().name() <<
" <- "
162 << nbrMesh.
name() <<
':'
163 << nbrPatch.
name() <<
':'
164 << this->internalField().name() <<
" :"
165 <<
" mass flux[Kg/s]:" << -
phi
172 <<
"dimensions of " << phiName_ <<
" are incorrect" <<
nl
173 <<
" on patch " << this->patch().name()
174 <<
" of field " << this->internalField().name()
175 <<
" in file " << this->internalField().objectPath()
195 writeEntry(
"value",
os);
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.
const word & name() const noexcept
Return the object name.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
static int & msgType() noexcept
Message tag of standard messages.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
This boundary condition supplies a fixed value constraint, and is the base class for a number of othe...
virtual bool write()
Write the output fields.
A FieldMapper for finite-volume patch fields.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual const word & name() const
Return name.
const GeometricField::Patch & lookupPatchField(const word &name, const GeometricField *=nullptr, const Type *=nullptr) const
Describes a volumetric/mass flow normal vector boundary condition by its magnitude as an integral ove...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Determines a mapping between patch face centres and mesh cell or face centres and processors they're ...
const polyMesh & sampleMesh() const
Get the region mesh.
const polyPatch & samplePolyPatch() const
Get the patch on the region.
void distribute(List< Type > &lst) const
Wrapper around map/interpolate data distribution.
label index() const noexcept
The index of this patch in the boundaryMesh.
Mesh consisting of general polyhedral cells.
A class for handling words, derived from Foam::string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
Type gSum(const FieldField< Field, Type > &f)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const dimensionSet dimArea(sqr(dimLength))
const dimensionSet dimVelocity
messageStream Info
Information stream (stdout output on master, null elsewhere)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
const dimensionSet dimDensity
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)