30 template<
class CloudType>
33 if (thetaPtr_.valid())
39 FatalErrorIn(
"void Foam::VoidFraction<CloudType>::write()")
47 template<
class CloudType>
60 template<
class CloudType>
73 template<
class CloudType>
80 template<
class CloudType>
83 if (thetaPtr_.valid())
85 thetaPtr_->internalField() = 0.0;
97 this->owner().
name() +
"Theta",
111 template<
class CloudType>
124 template<
class CloudType>
136 theta[cellI] += dt*p.nParticle()*p.volume();
virtual ~VoidFraction()
Destructor.
Mesh data needed to do the Finite Volume discretisation.
virtual void postMove(parcelType &p, const label cellI, const scalar dt, const point &position0, bool &keepParticle)
Post-move hook.
word name(const complex &)
Return a string representation of a complex.
const DimensionedField< scalar, volMesh > & V() const
Return cell volumes.
virtual void preEvolve()
Pre-evolve hook.
Creates particle void fraction field on carrier phase.
A class for handling words, derived from string.
VoidFraction(const dictionary &dict, CloudType &owner, const word &modelName)
Construct from dictionary.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
InternalField & internalField()
Return internal field.
A list of keyword definitions, which are a keyword followed by any number of values (e...
const Time & time() const
Return the top-level database.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
scalar deltaTValue() const
Return time step value.
virtual void write()
Write post-processing info.
errorManip< error > abort(error &err)
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
virtual void postEvolve()
Post-evolve hook.
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
Templated base class for dsmc cloud.
Templated cloud function object base class.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.