ReactingHeterogeneousParcel< ParcelType > Class Template Reference

Reacting heterogeneous Parcel. More...

Inheritance diagram for ReactingHeterogeneousParcel< ParcelType >:
[legend]
Collaboration diagram for ReactingHeterogeneousParcel< ParcelType >:
[legend]

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< particleclone () const
 Construct and return a (basic particle) clone. More...
 
virtual autoPtr< particleclone (const polyMesh &mesh) const
 Construct and return a (basic particle) clone. More...
 
const scalarFieldF () const
 Return const access to F. More...
 
label canCombust () const
 Return const access to the canCombust flag. More...
 
scalarFieldF ()
 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
 
template<class TrackCloudType >
Foam::scalar updatedDeltaVolume (TrackCloudType &cloud, const scalarField &dMass, const scalar p, const scalar T)
 

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 >
scalar updatedDeltaVolume (TrackCloudType &cloud, const scalarField &dMass, const scalar p, const scalar T)
 Return change of volume due to mass exchange. More...
 
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

Ostreamoperator (Ostream &, const ReactingHeterogeneousParcel< ParcelType > &)
 

Detailed Description

template<class ParcelType>
class Foam::ReactingHeterogeneousParcel< ParcelType >

Reacting heterogeneous Parcel.

Source files

Definition at line 66 of file ReactingHeterogeneousParcel.H.

Member Typedef Documentation

◆ trackingData

Use base tracking data.

Definition at line 109 of file ReactingHeterogeneousParcel.H.

Constructor & Destructor Documentation

◆ ReactingHeterogeneousParcel() [1/6]

ReactingHeterogeneousParcel ( const polyMesh mesh,
const barycentric coordinates,
const label  celli,
const label  tetFacei,
const label  tetPti 
)
inline

Construct from mesh, position and topology.

Other properties initialised as null

Definition at line 64 of file ReactingHeterogeneousParcelI.H.

◆ ReactingHeterogeneousParcel() [2/6]

ReactingHeterogeneousParcel ( const polyMesh mesh,
const vector position,
const label  celli 
)
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 80 of file ReactingHeterogeneousParcelI.H.

◆ ReactingHeterogeneousParcel() [3/6]

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 
)
inline

Construct from components.

Definition at line 94 of file ReactingHeterogeneousParcelI.H.

◆ ReactingHeterogeneousParcel() [4/6]

ReactingHeterogeneousParcel ( const polyMesh mesh,
Istream is,
bool  readFields = true,
bool  newFormat = true 
)

Construct from Istream.

Definition at line 49 of file ReactingHeterogeneousParcelIO.C.

References IOstream::check(), ReactingHeterogeneousParcel< ParcelType >::F(), ReactingHeterogeneousParcel< ParcelType >::F_, FUNCTION_NAME, ReactingHeterogeneousParcel< ParcelType >::readFields(), Foam::readFields(), and List< T >::transfer().

Here is the call graph for this function:

◆ ReactingHeterogeneousParcel() [5/6]

Construct as a copy.

◆ ReactingHeterogeneousParcel() [6/6]

ReactingHeterogeneousParcel ( const ReactingHeterogeneousParcel< ParcelType > &  p,
const polyMesh mesh 
)

Construct as a copy.

Member Function Documentation

◆ updatedDeltaVolume() [1/2]

scalar updatedDeltaVolume ( TrackCloudType &  cloud,
const scalarField dMass,
const scalar  p,
const scalar  T 
)
protected

Return change of volume due to mass exchange.

◆ calcHeterogeneousReactions()

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
protected

Calculate surface reactions.

Definition at line 355 of file ReactingHeterogeneousParcel.C.

References F(), Foam::min(), nu, Foam::Re(), Foam::sum(), and T.

Here is the call graph for this function:

◆ TypeName()

TypeName ( "ReactingHeterogeneousParcel< ParcelType >"  )

Runtime type information.

◆ AddToPropertyList()

AddToPropertyList ( ParcelType  ,
+" nReactions(F1..FN)"   
)

String representation of properties.

◆ clone() [1/2]

virtual autoPtr< particle > clone ( ) const
inlinevirtual

Construct and return a (basic particle) clone.

Definition at line 283 of file ReactingHeterogeneousParcel.H.

◆ clone() [2/2]

virtual autoPtr< particle > clone ( const polyMesh mesh) const
inlinevirtual

Construct and return a (basic particle) clone.

Definition at line 289 of file ReactingHeterogeneousParcel.H.

References mesh.

◆ F() [1/2]

const Foam::scalarField & F
inline

Return const access to F.

Definition at line 161 of file ReactingHeterogeneousParcelI.H.

Referenced by ReactingHeterogeneousParcel< ParcelType >::ReactingHeterogeneousParcel().

Here is the caller graph for this function:

◆ canCombust() [1/2]

Foam::label canCombust
inline

Return const access to the canCombust flag.

Definition at line 178 of file ReactingHeterogeneousParcelI.H.

◆ F() [2/2]

Foam::scalarField & F
inline

Return access to F.

Definition at line 169 of file ReactingHeterogeneousParcelI.H.

◆ canCombust() [2/2]

Foam::label & canCombust
inline

Return access to the canCombust flag.

Definition at line 185 of file ReactingHeterogeneousParcelI.H.

◆ calc()

void calc ( TrackCloudType &  cloud,
trackingData td,
const scalar  dt 
)

Update parcel properties over the time interval.

Definition at line 109 of file ReactingHeterogeneousParcel.C.

References Foam::cbrt(), composition, Cs, forAll, Foam::constant::mathematical::pi(), Foam::pow4(), Foam::Re(), Su, Foam::sum(), and T0.

Here is the call graph for this function:

◆ readFields() [1/2]

void readFields ( CloudType c,
const CompositionType &  compModel 
)
static

Read - composition supplied.

Definition at line 84 of file ReactingHeterogeneousParcelIO.C.

References F(), forAll, IOobject::MUST_READ, Foam::name(), p, List< T >::setSize(), UList< T >::size(), solidNames(), Y, and Foam::Zero.

Referenced by ReactingHeterogeneousParcel< ParcelType >::ReactingHeterogeneousParcel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readFields() [2/2]

void readFields ( CloudType c)
static

Read - no composition.

Definition at line 76 of file ReactingHeterogeneousParcelIO.C.

◆ writeFields() [1/2]

void writeFields ( const CloudType c,
const CompositionType &  compModel 
)
static

Write - composition supplied.

Definition at line 178 of file ReactingHeterogeneousParcelIO.C.

References F(), forAll, Foam::name(), IOobject::NO_READ, p, p0, UList< T >::size(), solidNames(), regIOobject::write(), Foam::writeFields(), and Y.

Here is the call graph for this function:

◆ writeFields() [2/2]

void writeFields ( const CloudType c)
static

Read - no composition.

Definition at line 167 of file ReactingHeterogeneousParcelIO.C.

References fieldAverage::writeFields().

Here is the call graph for this function:

◆ writeProperties()

void writeProperties ( Ostream os,
const wordRes filters,
const word delim,
const bool  namesOnly 
) const

Write individual parcel properties to stream.

Definition at line 255 of file ReactingHeterogeneousParcelIO.C.

References os(), writeProp, and injectedParticle::writeProperties().

Here is the call graph for this function:

◆ readObjects() [1/2]

void readObjects ( CloudType c,
const objectRegistry obr 
)
static

Read particle fields as objects from the obr registry.

  • no composition

Definition at line 278 of file ReactingHeterogeneousParcelIO.C.

References injectedParticle::readObjects().

Here is the call graph for this function:

◆ readObjects() [2/2]

void readObjects ( CloudType c,
const CompositionType &  compModel,
const objectRegistry obr 
)
static

Read particle fields as objects from the obr registry.

Definition at line 302 of file ReactingHeterogeneousParcelIO.C.

References Foam::nl, and WarningInFunction.

◆ writeObjects() [1/2]

void writeObjects ( const CloudType c,
objectRegistry obr 
)
static

Write particle fields as objects into the obr registry.

  • no composition

Definition at line 290 of file ReactingHeterogeneousParcelIO.C.

◆ writeObjects() [2/2]

void writeObjects ( const CloudType c,
const CompositionType &  compModel,
objectRegistry obr 
)
static

Write particle fields as objects into the obr registry.

Definition at line 323 of file ReactingHeterogeneousParcelIO.C.

References F(), forAll, Foam::name(), p0, UList< T >::size(), solidNames(), and Y.

Here is the call graph for this function:

◆ CpEff()

Foam::scalar CpEff ( TrackCloudType &  cloud,
trackingData td,
const scalar  p,
const scalar  T,
const label  idS 
) const

Definition at line 38 of file ReactingHeterogeneousParcel.C.

References p, and T.

◆ HsEff()

Foam::scalar HsEff ( TrackCloudType &  cloud,
trackingData td,
const scalar  p,
const scalar  T,
const label  idS 
) const

Definition at line 53 of file ReactingHeterogeneousParcel.C.

References p, and T.

◆ LEff()

Foam::scalar LEff ( TrackCloudType &  cloud,
trackingData td,
const scalar  p,
const scalar  T,
const label  idS 
) const

Definition at line 68 of file ReactingHeterogeneousParcel.C.

References p, and T.

◆ updatedDeltaVolume() [2/2]

Foam::scalar updatedDeltaVolume ( TrackCloudType &  cloud,
const scalarField dMass,
const scalar  p,
const scalar  T 
)

Definition at line 86 of file ReactingHeterogeneousParcel.C.

References composition, forAll, UList< T >::size(), and Foam::sum().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator

Ostream & operator ( Ostream ,
const ReactingHeterogeneousParcel< ParcelType > &   
)
friend

Member Data Documentation

◆ sizeofFields

const std::size_t sizeofFields
static

Size in bytes of the fields.

Definition at line 73 of file ReactingHeterogeneousParcel.H.

◆ F_

scalarField F_
protected

Progress variables for reactions.

Definition at line 157 of file ReactingHeterogeneousParcel.H.

Referenced by ReactingHeterogeneousParcel< ParcelType >::ReactingHeterogeneousParcel().

◆ canCombust_

label canCombust_
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.


The documentation for this class was generated from the following files: