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