33template<
class CloudType>
50template<
class CloudType>
63template<
class CloudType>
76template<
class CloudType>
79 const typename parcelType::trackingData&
td
84 thetaPtr_->primitiveFieldRef() = 0.0;
88 const fvMesh&
mesh = this->owner().mesh();
96 this->owner().
name() +
"Theta",
97 mesh.time().timeName(),
103 dimensionedScalar(dimless, Zero)
110template<
class CloudType>
113 const typename parcelType::trackingData&
td
116 volScalarField& theta = thetaPtr_();
118 const fvMesh&
mesh = this->owner().mesh();
120 theta.primitiveFieldRef() /=
mesh.time().deltaTValue()*
mesh.V();
126template<
class CloudType>
132 const typename parcelType::trackingData&
td
137 theta[
p.cell()] += dt*
p.nParticle()*
p.volume();
Templated cloud function object base class.
CloudFunctionObject(CloudType &owner)
Construct null from owner.
virtual void postEvolve(const typename parcelType::trackingData &td)
Post-evolve hook.
const CloudType & owner() const
Return const access to the owner cloud.
particle::trackingData trackingData
Internal::FieldType & primitiveFieldRef(const bool updateAccessTime=true)
Return a reference to the internal field values.
@ NO_READ
Nothing to be read.
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Creates particle void fraction field on carrier phase.
virtual void postEvolve(const typename parcelType::trackingData &td)
Post-evolve hook.
virtual void write()
Write post-processing info.
VoidFraction(const dictionary &dict, CloudType &owner, const word &modelName)
Construct from dictionary.
virtual void preEvolve(const typename parcelType::trackingData &td)
Pre-evolve hook.
virtual bool postMove(parcelType &p, const scalar dt, const point &position0, const typename parcelType::trackingData &td)
Post-move hook.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh data needed to do the Finite Volume discretisation.
const dictionary & dict() const
Return const access to the cloud dictionary.
const word & modelName() const
Return const access to the name of the sub-model.
A class for handling words, derived from Foam::string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
wallPoints::trackData td(isBlockedFace, regionToBlockSize)
DSMCCloud< dsmcParcel > CloudType
const dimensionSet dimless
Dimensionless.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
errorManip< error > abort(error &err)
vector point
Point is a vector.
static constexpr const zero Zero
Global zero (0).
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.