FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

Reacting parcel class with one/two-way coupling with the continuous phase. More...

#include <lagrangianIntermediate/ReactingParcel_.H>


Detailed Description

template<class ParcelType>
class Foam::ReactingParcel< ParcelType >

Reacting parcel class with one/two-way coupling with the continuous phase.

Source files

Definition at line 70 of file ReactingParcel_.H.

Inheritance diagram for ReactingParcel< ParcelType >:
Collaboration diagram for ReactingParcel< ParcelType >:

List of all members.

Classes

class  constantProperties
 Class to hold reacting particle constant properties. More...
class  trackData
 Class used to pass reacting tracking data to the trackToFace function. More...

Public Member Functions

 TypeName ("ReactingParcel")
 Runtime type information.
 ReactingParcel (ReactingCloud< ParcelType > &owner, const vector &position, const label cellI)
 Construct from owner, position, and cloud owner.
 ReactingParcel (ReactingCloud< ParcelType > &owner, const vector &position, const label cellI, const label typeId, const scalar nParticle0, const scalar d0, const vector &U0, const scalarField &Y0, const constantProperties &constProps)
 Construct from components.
 ReactingParcel (const Cloud< ParcelType > &c, Istream &is, bool readFields=true)
 Construct from Istream.
 ReactingParcel (const ReactingParcel &p)
 Construct as a copy.
autoPtr< ReactingParcel >  clone () const
 Construct and return a clone.
scalar  mass0 () const
 Return const access to initial mass.
const scalarField &  Y () const
 Return const access to mass fractions of mixture.
scalar  pc () const
 Return the owner cell pressure.
scalar &  mass0 ()
 Return access to initial mass.
scalarField &  Y ()
 Return access to mass fractions of mixture.
template<class TrackData >
void  setCellValues (TrackData &td, const scalar dt, const label cellI)
 Set cell values.
template<class TrackData >
void  cellValueSourceCorrection (TrackData &td, const scalar dt, const label cellI)
 Correct cell values using latest transfer information.
template<class TrackData >
void  correctSurfaceValues (TrackData &td, const label cellI, const scalar T, const scalarField &Cs, scalar &rhos, scalar &mus, scalar &Pr, scalar &kappa)
 Correct surface values due to emitted species.
template<class TrackData >
void  calc (TrackData &td, const scalar dt, const label cellI)
 Update parcel properties over the time interval.

Static Public Member Functions

static void  readFields (Cloud< ParcelType > &c)
 Read.
static void  writeFields (const Cloud< ParcelType > &c)
 Write.

Static Public Attributes

static string  propHeader = " nPhases(Y1..YN)"
 String representation of properties.

Protected Member Functions

template<class TrackData >
void  calcPhaseChange (TrackData &td, const scalar dt, const label cellI, const scalar Re, const scalar Ts, const scalar nus, const scalar d, const scalar T, const scalar mass, const label idPhase, const scalar YPhase, const scalarField &YComponents, scalarField &dMassPC, scalar &Sh, scalar &N, scalar &NCpW, scalarField &Cs)
 Calculate Phase change.
scalar  updateMassFraction (const scalar mass0, const scalarField &dMass, scalarField &Y) const
 Update mass fraction.

Protected Attributes

scalar  mass0_
 Initial particle mass [kg].
scalarField  Y_
 Mass fractions of mixture [].
scalar  pc_
 Pressure [Pa].

Friends

class  Cloud< ParcelType >
Ostream &  operator (Ostream &, const ReactingParcel< ParcelType > &)

Constructor & Destructor Documentation

ReactingParcel ( ReactingCloud< ParcelType > &   owner,
const vector &   position,
const label   cellI  
) [inline]

Construct from owner, position, and cloud owner.

Other properties initialised as null

Definition at line 75 of file ReactingParcelI_.H.

Referenced by ReactingParcel< BasicReactingParcel< ThermoType > >::clone().

ReactingParcel ( ReactingCloud< ParcelType > &   owner,
const vector &   position,
const label   cellI,
const label   typeId,
const scalar   nParticle0,
const scalar   d0,
const vector &   U0,
const scalarField &   Y0,
const constantProperties &   constProps  
) [inline]

Construct from components.

Definition at line 90 of file ReactingParcelI_.H.

ReactingParcel ( const Cloud< ParcelType > &   c,
Istream &   is,
bool   readFields = true  
)
ReactingParcel ( const ReactingParcel< ParcelType > &   p  )

Construct as a copy.


Member Function Documentation

void calcPhaseChange ( TrackData &   td,
const scalar   dt,
const label   cellI,
const scalar   Re,
const scalar   Ts,
const scalar   nus,
const scalar   d,
const scalar   T,
const scalar   mass,
const label   idPhase,
const scalar   YPhase,
const scalarField &   YComponents,
scalarField &   dMassPC,
scalar &   Sh,
scalar &   N,
scalar &   NCpW,
scalarField &   Cs  
) [protected]

Calculate Phase change.

Definition at line 410 of file ReactingParcel_.C.

References cloud::cloud(), forAll, Foam::min(), and Foam::sum().

Foam::scalar updateMassFraction ( const scalar   mass0,
const scalarField &   dMass,
scalarField &   Y  
) const [protected]

Update mass fraction.

Definition at line 189 of file ReactingParcel_.C.

References forAll, and Foam::sum().

TypeName ( "ReactingParcel< ParcelType >"    )

Runtime type information.

Foam::scalar mass0 (  ) const [inline]

Return const access to initial mass.

Definition at line 185 of file ReactingParcelI_.H.

References ReactingParcel< ParcelType >::mass0_.

const Foam::scalarField & Y (  ) const [inline]
Foam::scalar pc (  ) const [inline]

Return the owner cell pressure.

Definition at line 199 of file ReactingParcelI_.H.

References ReactingParcel< ParcelType >::pc_.

Foam::scalar & mass0 (  ) [inline]

Return access to initial mass.

Definition at line 206 of file ReactingParcelI_.H.

References ReactingParcel< ParcelType >::mass0_.

Foam::scalarField & Y (  ) [inline]

Return access to mass fractions of mixture.

Definition at line 213 of file ReactingParcelI_.H.

References ReactingParcel< ParcelType >::Y_.

void setCellValues ( TrackData &   td,
const scalar   dt,
const label   cellI  
)
void cellValueSourceCorrection ( TrackData &   td,
const scalar   dt,
const label   cellI  
)

Correct cell values using latest transfer information.

Reimplemented from ThermoParcel< ParcelType >.

Reimplemented in ReactingMultiphaseParcel< ParcelType >, ReactingMultiphaseParcel< BasicReactingMultiphaseParcel< ThermoType > >, and ReactingMultiphaseParcel< CoalParcel< ThermoType > >.

Definition at line 65 of file ReactingParcel_.C.

References forAll, and Y.

void correctSurfaceValues ( TrackData &   td,
const label   cellI,
const scalar   T,
const scalarField &   Cs,
scalar &   rhos,
scalar &   mus,
scalar &   Pr,
scalar &   kappa  
)

Correct surface values due to emitted species.

Definition at line 104 of file ReactingParcel_.C.

References Foam::cbrt(), cps(), forAll, kappa(), Foam::min(), Foam::sqrt(), Foam::sum(), and T.

void calc ( TrackData &   td,
const scalar   dt,
const label   cellI  
)

Friends And Related Function Documentation

Ostream& operator ( Ostream &   ,
const ReactingParcel< ParcelType > &    
) [friend]

Member Data Documentation

scalar mass0_ [protected]
scalarField Y_ [protected]

Mass fractions of mixture [].

Definition at line 182 of file ReactingParcel_.H.

Referenced by ReactingParcel< ParcelType >::readFields(), and ReactingParcel< ParcelType >::Y().

scalar pc_ [protected]

Pressure [Pa].

Definition at line 188 of file ReactingParcel_.H.

Referenced by ReactingParcel< ParcelType >::pc().


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