30 template<
class CloudType>
34 template<
class CloudType>
38 template<
class CloudType>
45 template<
class CloudType,
class Derived>
55 template<
class CloudType,
class Derived>
65 const bool isInternal =
p.onInternalFace(mesh);
67 const label facei =
p.face();
70 const label patchFacei = isInternal ? -1 :
bMesh.patchFaceIndices()[bFacei];
72 const bool own = mesh.
faceOwner()[facei] ==
p.cell();
74 const scalar
sign = own == isPre ? +1 : -1;
79 : phi_.boundaryFieldRef()[
patchi][patchFacei];
87 template<
class CloudType,
class Derived>
96 write_(
dict.lookupOrDefault<
bool>(
"write",
true)),
101 this->owner().
name() +
":" + Derived::typeName,
102 this->owner().mesh().time().
name(),
105 this->owner().mesh(),
111 template<
class CloudType,
class Derived>
125 template<
class CloudType,
class Derived>
132 template<
class CloudType,
class Derived>
139 template<
class CloudType,
class Derived>
146 template<
class CloudType,
class Derived>
149 if (
p.onBoundaryFace(this->owner().mesh()))
151 accumulate(
p,
false);
Templated cloud function object base class.
Templated base class for dsmc cloud.
const fvMesh & mesh() const
Return references to the mesh.
Function objects which generate the number, volume or mass flux of particles in a cloud.
virtual void preFace(const parcelType &p)
Pre-face hook.
Flux(const dictionary &dict, CloudType &owner, const word &modelName)
Construct from dictionary.
void write()
Write post-processing info.
virtual void postFace(const parcelType &p)
Post-face hook.
virtual ~Flux()
Destructor.
void accumulate(const parcelType &p, const bool isPre)
Accumulate the particle into the flux.
virtual void preEvolve()
Pre-evolve hook.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
scalar deltaTValue() const
Return time step value.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Dimension set for the base types.
const Time & time() const
Return time.
Mesh consisting of general polyhedral cells.
virtual const labelList & faceOwner() const
Return face owner.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
label nInternalFaces() const
A class for handling words, derived from string.
const polyBoundaryMesh & bMesh
dimensionedScalar sign(const dimensionedScalar &ds)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const HashTable< dimensionSet > & dimensions()
Get the table of dimension sets.
word name(const bool)
Return a word representation of a bool.
const dimensionSet dimless
const dimensionSet dimTime
const dimensionSet dimVolume
const dimensionSet dimMass
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.