62 template<
class CloudType,
class Derived>
90 void accumulate(
const parcelType&
p,
const bool isPre);
113 new Derived(
static_cast<const Derived&
>(*
this))
130 virtual void preFace(
const parcelType&
p);
133 virtual void postFace(
const parcelType&
p);
141 template<
class CloudType>
144 public Flux<CloudType, NumberFlux<CloudType>>
169 return p.nParticle();
178 template<
class CloudType>
181 public Flux<CloudType, VolumeFlux<CloudType>>
206 return p.nParticle()*
p.volume();
215 template<
class CloudType>
218 public Flux<CloudType, MassFlux<CloudType>>
243 return p.nParticle()*
p.mass();
Templated cloud function object base class.
const CloudType & owner() const
Return const access to the owner cloud.
Templated base class for dsmc cloud.
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 autoPtr< CloudFunctionObject< CloudType > > clone() const
Construct and return a clone.
virtual ~Flux()
Destructor.
void accumulate(const parcelType &p, const bool isPre)
Accumulate the particle into the flux.
virtual void preEvolve()
Pre-evolve hook.
Generic GeometricField class.
static const dimensionSet dimensions
Dimensions of the flux field.
TypeName("massFlux")
Runtime type information.
static scalar dPhiDeltaT(const typename CloudType::particleType &p)
Return the flux contribution for a single particle.
static const dimensionSet dimensions
Dimensions of the flux field.
static scalar dPhiDeltaT(const typename CloudType::particleType &p)
Return the flux contribution for a single particle.
TypeName("numberFlux")
Runtime type information.
static const dimensionSet dimensions
Dimensions of the flux field.
TypeName("volumeFlux")
Runtime type information.
static scalar dPhiDeltaT(const typename CloudType::particleType &p)
Return the flux contribution for a single particle.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Dimension set for the base types.
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 string.