Reacting heterogeneous Parcel. More...
Classes | |
| class | constantProperties |
| Class to hold reacting particle constant properties. More... | |
| class | iNew |
| Factory class to read-construct particles used for. More... | |
Public Types | |
| typedef ParcelType::trackingData | trackingData |
| Use base tracking data. More... | |
Public Member Functions | |
| TypeName ("ReactingHeterogeneousParcel") | |
| Runtime type information. More... | |
| AddToPropertyList (ParcelType,+" nReactions(F1..FN)") | |
| String representation of properties. More... | |
| ReactingHeterogeneousParcel (const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti) | |
| Construct from mesh, position and topology. More... | |
| ReactingHeterogeneousParcel (const polyMesh &mesh, const vector &position, const label celli) | |
| Construct from a position and a cell, searching for the rest of the. More... | |
| ReactingHeterogeneousParcel (const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti, const label typeId, const scalar nParticle0, const scalar d0, const scalar dTarget0, const vector &U0, const vector &f0, const vector &angularMomentum0, const vector &torque0, const scalarField &Y, const scalarField &F, const constantProperties &constProps) | |
| Construct from components. More... | |
| ReactingHeterogeneousParcel (const polyMesh &mesh, Istream &is, bool readFields=true, bool newFormat=true) | |
| Construct from Istream. More... | |
| ReactingHeterogeneousParcel (const ReactingHeterogeneousParcel &p) | |
| Construct as a copy. More... | |
| ReactingHeterogeneousParcel (const ReactingHeterogeneousParcel &p, const polyMesh &mesh) | |
| Construct as a copy. More... | |
| virtual autoPtr< particle > | clone () const |
| Construct and return a (basic particle) clone. More... | |
| virtual autoPtr< particle > | clone (const polyMesh &mesh) const |
| Construct and return a (basic particle) clone. More... | |
| const scalarField & | F () const |
| Return const access to F. More... | |
| label | canCombust () const |
| Return const access to the canCombust flag. More... | |
| scalarField & | F () |
| Return access to F. More... | |
| label & | canCombust () |
| Return access to the canCombust flag. More... | |
| template<class TrackCloudType > | |
| void | calc (TrackCloudType &cloud, trackingData &td, const scalar dt) |
| Update parcel properties over the time interval. More... | |
| void | writeProperties (Ostream &os, const wordRes &filters, const word &delim, const bool namesOnly) const |
| Write individual parcel properties to stream. More... | |
| template<class TrackCloudType > | |
| Foam::scalar | CpEff (TrackCloudType &cloud, trackingData &td, const scalar p, const scalar T, const label idS) const |
| template<class TrackCloudType > | |
| Foam::scalar | HsEff (TrackCloudType &cloud, trackingData &td, const scalar p, const scalar T, const label idS) const |
| template<class TrackCloudType > | |
| Foam::scalar | LEff (TrackCloudType &cloud, trackingData &td, const scalar p, const scalar T, const label idS) const |
Static Public Member Functions | |
| template<class CloudType , class CompositionType > | |
| static void | readFields (CloudType &c, const CompositionType &compModel) |
| Read - composition supplied. More... | |
| template<class CloudType > | |
| static void | readFields (CloudType &c) |
| Read - no composition. More... | |
| template<class CloudType , class CompositionType > | |
| static void | writeFields (const CloudType &c, const CompositionType &compModel) |
| Write - composition supplied. More... | |
| template<class CloudType > | |
| static void | writeFields (const CloudType &c) |
| Read - no composition. More... | |
| template<class CloudType > | |
| static void | readObjects (CloudType &c, const objectRegistry &obr) |
| Read particle fields as objects from the obr registry. More... | |
| template<class CloudType , class CompositionType > | |
| static void | readObjects (CloudType &c, const CompositionType &compModel, const objectRegistry &obr) |
| Read particle fields as objects from the obr registry. More... | |
| template<class CloudType > | |
| static void | writeObjects (const CloudType &c, objectRegistry &obr) |
| Write particle fields as objects into the obr registry. More... | |
| template<class CloudType , class CompositionType > | |
| static void | writeObjects (const CloudType &c, const CompositionType &compModel, objectRegistry &obr) |
| Write particle fields as objects into the obr registry. More... | |
Static Public Attributes | |
| static const std::size_t | sizeofFields |
| Size in bytes of the fields. More... | |
Protected Member Functions | |
| template<class TrackCloudType > | |
| void | calcHeterogeneousReactions (TrackCloudType &cloud, trackingData &td, const scalar dt, const scalar Res, const scalar nu, const scalar d, const scalar T, const scalar mass, const label canCombust, const scalar N, scalar &NCpW, const scalarField &YSolid, scalarField &F, scalarField &dMassSRSolid, scalarField &dMassSRCarrier, scalar &Sh, scalar &dhsTrans) const |
| Calculate surface reactions. More... | |
Protected Attributes | |
| scalarField | F_ |
| Progress variables for reactions. More... | |
| label | canCombust_ |
| Flag to identify if the particle can devolatilise and combust. More... | |
Friends | |
| Ostream & | operator (Ostream &, const ReactingHeterogeneousParcel< ParcelType > &) |
Reacting heterogeneous Parcel.
Definition at line 52 of file ReactingHeterogeneousParcel.H.
| typedef ParcelType::trackingData trackingData |
Use base tracking data.
Definition at line 109 of file ReactingHeterogeneousParcel.H.
|
inline |
Construct from mesh, position and topology.
Other properties initialised as null
Definition at line 65 of file ReactingHeterogeneousParcelI.H.
Referenced by ReactingHeterogeneousParcel< ParcelType >::clone().
|
inline |
Construct from a position and a cell, searching for the rest of the.
required topology. Other properties are initialised as null.
Definition at line 81 of file ReactingHeterogeneousParcelI.H.
|
inline |
Construct from components.
Definition at line 95 of file ReactingHeterogeneousParcelI.H.
| ReactingHeterogeneousParcel | ( | const polyMesh & | mesh, |
| Istream & | is, | ||
| bool | readFields = true, |
||
| bool | newFormat = true |
||
| ) |
Construct from Istream.
Definition at line 50 of file ReactingHeterogeneousParcelIO.C.
References IOstream::check(), F(), FUNCTION_NAME, and Foam::readFields().
| ReactingHeterogeneousParcel | ( | const ReactingHeterogeneousParcel< ParcelType > & | p | ) |
Construct as a copy.
| ReactingHeterogeneousParcel | ( | const ReactingHeterogeneousParcel< ParcelType > & | p, |
| const polyMesh & | mesh | ||
| ) |
Construct as a copy.
|
protected |
Calculate surface reactions.
Definition at line 296 of file ReactingHeterogeneousParcel.C.
References F(), Foam::min(), nu, Foam::Re(), Foam::sum(), and Foam::T().
| TypeName | ( | "ReactingHeterogeneousParcel< ParcelType >" | ) |
Runtime type information.
| AddToPropertyList | ( | ParcelType | , |
| +" nReactions(F1..FN)" | |||
| ) |
String representation of properties.
Construct and return a (basic particle) clone.
Definition at line 273 of file ReactingHeterogeneousParcel.H.
References ReactingHeterogeneousParcel< ParcelType >::ReactingHeterogeneousParcel().
Construct and return a (basic particle) clone.
Definition at line 279 of file ReactingHeterogeneousParcel.H.
References mesh, and ReactingHeterogeneousParcel< ParcelType >::ReactingHeterogeneousParcel().
|
inline |
Return const access to F.
Definition at line 162 of file ReactingHeterogeneousParcelI.H.
References ReactingHeterogeneousParcel< ParcelType >::F_.
|
inline |
Return const access to the canCombust flag.
Definition at line 178 of file ReactingHeterogeneousParcelI.H.
References ReactingHeterogeneousParcel< ParcelType >::canCombust_.
|
inline |
Return access to F.
Definition at line 170 of file ReactingHeterogeneousParcelI.H.
References ReactingHeterogeneousParcel< ParcelType >::F_.
|
inline |
Return access to the canCombust flag.
Definition at line 185 of file ReactingHeterogeneousParcelI.H.
References ReactingHeterogeneousParcel< ParcelType >::canCombust_.
| void calc | ( | TrackCloudType & | cloud, |
| trackingData & | td, | ||
| const scalar | dt | ||
| ) |
Update parcel properties over the time interval.
Definition at line 86 of file ReactingHeterogeneousParcel.C.
References Foam::cbrt(), composition, Cs, forAll, Foam::constant::mathematical::pi(), Foam::pow4(), Foam::Re(), Su, Foam::sum(), T0, Foam::fieldTypes::volume, and Foam::Zero.
|
static |
Read - composition supplied.
Definition at line 85 of file ReactingHeterogeneousParcelIO.C.
References Foam::constant::universal::c, F(), forAll, Foam::name(), p, Foam::readFields(), solidNames(), Y, and Foam::Zero.
|
static |
Read - no composition.
Definition at line 76 of file ReactingHeterogeneousParcelIO.C.
References Foam::constant::universal::c, and Foam::readFields().
|
static |
Write - composition supplied.
Definition at line 179 of file ReactingHeterogeneousParcelIO.C.
References Foam::constant::universal::c, F(), forAll, Foam::name(), p, p0, solidNames(), Foam::writeFields(), and Y.
|
static |
Read - no composition.
Definition at line 168 of file ReactingHeterogeneousParcelIO.C.
References Foam::constant::universal::c, and Foam::writeFields().
| void writeProperties | ( | Ostream & | os, |
| const wordRes & | filters, | ||
| const word & | delim, | ||
| const bool | namesOnly | ||
| ) | const |
Write individual parcel properties to stream.
Definition at line 256 of file ReactingHeterogeneousParcelIO.C.
References writeProp.
|
static |
Read particle fields as objects from the obr registry.
Definition at line 279 of file ReactingHeterogeneousParcelIO.C.
References Foam::constant::universal::c.
|
static |
Read particle fields as objects from the obr registry.
Definition at line 303 of file ReactingHeterogeneousParcelIO.C.
References Foam::constant::universal::c, Foam::nl, and WarningInFunction.
|
static |
Write particle fields as objects into the obr registry.
Definition at line 291 of file ReactingHeterogeneousParcelIO.C.
References Foam::constant::universal::c.
|
static |
Write particle fields as objects into the obr registry.
Definition at line 324 of file ReactingHeterogeneousParcelIO.C.
References Foam::constant::universal::c, F(), forAll, Foam::name(), p0, solidNames(), and Y.
| Foam::scalar CpEff | ( | TrackCloudType & | cloud, |
| trackingData & | td, | ||
| const scalar | p, | ||
| const scalar | T, | ||
| const label | idS | ||
| ) | const |
Definition at line 39 of file ReactingHeterogeneousParcel.C.
| Foam::scalar HsEff | ( | TrackCloudType & | cloud, |
| trackingData & | td, | ||
| const scalar | p, | ||
| const scalar | T, | ||
| const label | idS | ||
| ) | const |
Definition at line 54 of file ReactingHeterogeneousParcel.C.
| Foam::scalar LEff | ( | TrackCloudType & | cloud, |
| trackingData & | td, | ||
| const scalar | p, | ||
| const scalar | T, | ||
| const label | idS | ||
| ) | const |
Definition at line 69 of file ReactingHeterogeneousParcel.C.
|
friend |
|
static |
Size in bytes of the fields.
Definition at line 73 of file ReactingHeterogeneousParcel.H.
|
protected |
Progress variables for reactions.
Definition at line 157 of file ReactingHeterogeneousParcel.H.
Referenced by ReactingHeterogeneousParcel< ParcelType >::F().
|
protected |
Flag to identify if the particle can devolatilise and combust.
Combustion possible only after volatile content falls below threshold value. States include: 0 = can combust but can change 1 = can devolatilise, can combust -1 = cannot devolatilise or combust, and cannot change
Definition at line 165 of file ReactingHeterogeneousParcel.H.
Referenced by ReactingHeterogeneousParcel< ParcelType >::canCombust().