33 template<
class CloudType>
36 devolatilisationModel_.reset
40 this->subModelProperties(),
45 surfaceReactionModel_.reset
49 this->subModelProperties(),
56 template<
class CloudType>
62 CloudType::cloudReset(c);
74 template<
class CloudType>
77 const word& cloudName,
85 CloudType(cloudName, rho, U, g, thermo,
false),
88 constProps_(this->particleProperties()),
89 devolatilisationModel_(NULL),
90 surfaceReactionModel_(NULL),
91 dMassDevolatilisation_(0.0),
92 dMassSurfaceReaction_(0.0)
104 if (this->
solution().resetSourcesOnStartup())
111 template<
class CloudType>
129 template<
class CloudType>
141 devolatilisationModel_(NULL),
142 surfaceReactionModel_(NULL),
143 dMassDevolatilisation_(0.0),
144 dMassSurfaceReaction_(0.0)
150 template<
class CloudType>
157 template<
class CloudType>
161 const scalar lagrangianDt
164 CloudType::setParcelThermoProperties(parcel, lagrangianDt);
171 parcel.YLiquid() = this->
composition().Y0(idLiquid);
176 template<
class CloudType>
180 const scalar lagrangianDt,
181 const bool fullyDescribed
184 CloudType::checkParcelProperties(parcel, lagrangianDt, fullyDescribed);
192 this->checkSuppliedComposition
198 this->checkSuppliedComposition
204 this->checkSuppliedComposition
214 template<
class CloudType>
221 clone(this->
name() +
"Copy").ptr()
227 template<
class CloudType>
230 cloudReset(cloudCopyPtr_());
231 cloudCopyPtr_.clear();
235 template<
class CloudType>
238 CloudType::resetSourceTerms();
242 template<
class CloudType>
247 typename parcelType::template
248 TrackingData<ReactingMultiphaseCloud<CloudType>> td(*
this);
255 template<
class CloudType>
272 template<
class CloudType>
277 this->devolatilisation().info(
Info);
278 this->surfaceReaction().info(
Info);
282 template<
class CloudType>
287 CloudType::particleType::writeFields(*
this, this->
composition());
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
DSMCCloud< dsmcParcel > CloudType
void setModels()
Set cloud sub-models.
basicMultiComponentMixture & composition
parcelType::constantProperties constProps_
Parcel constant properties.
autoPtr< SurfaceReactionModel< ReactingMultiphaseCloud< CloudType > > > surfaceReactionModel_
Surface reaction model.
Templated base class for multiphase reacting cloud.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const HashSet< word > &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the specified type.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
void cloudReset(ReactingMultiphaseCloud< CloudType > &c)
Reset state of cloud.
void restoreState()
Reset the current cloud to the previously stored state.
virtual void autoMap(const mapPolyMesh &)
Remap the cells of particles corresponding to the.
A class for handling words, derived from string.
void resetSourceTerms()
Reset the cloud source terms.
Thermo package for (S)olids (L)iquids and (G)ases Takes reference to thermo package, and provides:
virtual void writeFields() const
Write the field data for the cloud.
Base cloud calls templated on particle type.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
void storeState()
Store the current cloud state.
Virtual abstract base class for templated reactingMultiphaseCloud.
virtual ~ReactingMultiphaseCloud()
Destructor.
word name(const complex &)
Return a string representation of a complex.
autoPtr< DevolatilisationModel< ReactingMultiphaseCloud< CloudType > > > devolatilisationModel_
Devolatilisation model.
void setParcelThermoProperties(parcelType &parcel, const scalar lagrangianDt)
Set parcel thermo properties.
Mesh data needed to do the Finite Volume discretisation.
scalar dMassDevolatilisation_
Total mass transferred to continuous phase via devolatilisation.
void checkParcelProperties(parcelType &parcel, const scalar lagrangianDt, const bool fullyDescribed)
Check parcel properties.
Templated devolatilisation model class.
Selector class for relaxation factors, solver type and solution.
void info()
Print cloud information.
void evolve()
Evolve the cloud.
scalar dMassSurfaceReaction_
Total mass transferred to continuous phase via surface.
Templated surface reaction model class.