46 #ifndef ReactingCloud_H 47 #define ReactingCloud_H 58 template<
class CloudType>
61 template<
class CloudType>
68 template<
class CloudType>
110 typename parcelType::constantProperties
constProps_;
209 inline const ReactingCloud&
cloudCopy()
const;
212 inline const typename parcelType::constantProperties&
216 inline typename parcelType::constantProperties&
constProps();
240 const typename parcelType::trackingData&
td 267 Srho(
const label i)
const;
283 const scalar lagrangianDt
290 const scalar lagrangianDt,
291 const bool fullyDescribed
void resetSourceTerms()
Reset the cloud source terms.
virtual void writeObjects(objectRegistry &obr) const
Write particle fields as objects into the obr registry.
autoPtr< IOobject > clone() const
Clone.
Templated phase change model class.
void storeState()
Store the current cloud state.
parcelType::constantProperties constProps_
Parcel constant properties.
const word & cloudName() const
Return the cloud type.
const word & name() const noexcept
Return the object name.
wallPoints::trackData td(isBlockedFace, regionToBlockSize)
const PtrList< volScalarField::Internal > & rhoTrans() const
Return const access to mass source fields.
void setParcelThermoProperties(parcelType &parcel, const scalar lagrangianDt)
Set parcel thermo properties.
void restoreState()
Reset the current cloud to the previously stored state.
Virtual abstract base class for templated ReactingCloud.
void setModels()
Set cloud sub-models.
void transferToCarrier(const parcelType &p, const typename parcelType::trackingData &td)
Transfer the effect of parcel to the carrier phase.
tmp< volScalarField::Internal > Srho() const
Return tmp total mass source for carrier phase.
virtual void writeFields() const
Write the field data for the cloud.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
void evolve()
Evolve the cloud.
const ReactingCloud & cloudCopy() const
Return a reference to the cloud copy.
virtual autoPtr< Cloud< parcelType > > cloneBare(const word &name) const
Construct and return bare clone based on (this) with new name.
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const NameMatchPredicate &selectedFields, DynamicList< regIOobject *> &storedObjects)
Read the selected GeometricFields of the templated type and store on the objectRegistry.
A class for handling words, derived from Foam::string.
autoPtr< PhaseChangeModel< ReactingCloud< CloudType > > > phaseChangeModel_
Reacting phase change model.
const parcelType::constantProperties & constProps() const
Return the constant properties.
Thermo package for (S)olids (L)iquids and (G)ases Takes reference to thermo package, and provides:
void checkParcelProperties(parcelType &parcel, const scalar lagrangianDt, const bool fullyDescribed)
Check parcel properties.
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
ParcelType parcelType
Type of parcel the cloud was instantiated for.
const uniformDimensionedVectorField & g
autoPtr< CompositionModel< ReactingCloud< CloudType > > > compositionModel_
Reacting composition model.
CloudType cloudType
Type of cloud this cloud was instantiated for.
virtual void autoMap(const mapPolyMesh &)
Remap the cells of particles corresponding to the.
void scaleSources()
Apply scaling to (transient) cloud sources.
const fvMesh & mesh() const
Return reference to the mesh.
Templated base class for reacting cloud.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
PtrList< volScalarField > & Y
Mesh data needed to do the Finite Volume discretisation.
const dimensionedScalar c
Speed of light in a vacuum.
virtual ~ReactingCloud()=default
Destructor.
void info()
Print cloud information.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
void cloudReset(ReactingCloud< CloudType > &c)
Reset state of cloud.
PtrList< volScalarField::Internal > rhoTrans_
Mass transfer fields - one per carrier phase specie.
const CompositionModel< ReactingCloud< CloudType > > & composition() const
Return const access to reacting composition model.
void checkSuppliedComposition(const scalarField &YSupplied, const scalarField &Y, const word &YName)
Check that size of a composition field is valid.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
A class for managing temporary objects.
Registry of regIOobjects.
Templated reacting parcel composition model class Consists of carrier species (via thermo package)...
tmp< fvScalarMatrix > SYi(const label i, volScalarField &Yi) const
Return mass source term for specie i - specie eqn.
Templated base class for dsmc cloud.
const PhaseChangeModel< ReactingCloud< CloudType > > & phaseChange() const
Return const access to reacting phase change model.
void relaxSources(const ReactingCloud< CloudType > &cloudOldTime)
Apply relaxation to (steady state) cloud sources.
CloudType::particleType parcelType
Type of parcel the cloud was instantiated for.
ReactingCloud< CloudType > reactingCloudType
Convenience typedef for this cloud type.