Reacting parcel class with one/two-way coupling with the continuous phase. More...
#include <lagrangianIntermediate/ReactingParcel_.H>
Reacting parcel class with one/two-way coupling with the continuous phase.
Definition at line 70 of file ReactingParcel_.H.
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 > &) |
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
|
||
) |
Construct from Istream.
Definition at line 42 of file ReactingParcelIO.C.
References ReactingCloud< ParcelType >::composition(), CompositionModel< CloudType >::phaseTypes(), and List< T >::size().
ReactingParcel | ( | const ReactingParcel< ParcelType > & | p ) |
Construct as a copy.
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.
autoPtr<ReactingParcel> clone | ( | ) | const [inline]
|
Construct and return a clone.
Reimplemented from ThermoParcel< ParcelType >.
Reimplemented in CoalParcel< ThermoType >, BasicReactingMultiphaseParcel< ThermoType >, BasicReactingParcel< ThermoType >, ReactingMultiphaseParcel< ParcelType >, ReactingMultiphaseParcel< BasicReactingMultiphaseParcel< ThermoType > >, and ReactingMultiphaseParcel< CoalParcel< ThermoType > >.
Definition at line 276 of file ReactingParcel_.H.
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]
|
Return const access to mass fractions of mixture.
Definition at line 192 of file ReactingParcelI_.H.
References ReactingParcel< ParcelType >::Y_.
Referenced by ReactingMultiphaseParcel< ParcelType >::readFields(), ReactingParcel< ParcelType >::writeFields(), and ReactingMultiphaseParcel< ParcelType >::writeFields().
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 | ||
) |
Set cell values.
Reimplemented from ThermoParcel< ParcelType >.
Reimplemented in ReactingMultiphaseParcel< ParcelType >, ReactingMultiphaseParcel< BasicReactingMultiphaseParcel< ThermoType > >, and ReactingMultiphaseParcel< CoalParcel< ThermoType > >.
Definition at line 35 of file ReactingParcel_.C.
References Foam::endl(), Foam::nl, and WarningIn.
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.
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 | ||
) |
Update parcel properties over the time interval.
Reimplemented from ThermoParcel< ParcelType >.
Reimplemented in ReactingMultiphaseParcel< ParcelType >, ReactingMultiphaseParcel< BasicReactingMultiphaseParcel< ThermoType > >, and ReactingMultiphaseParcel< CoalParcel< ThermoType > >.
Definition at line 213 of file ReactingParcel_.C.
References Foam::cbrt(), forAll, kappa(), Foam::mathematicalConstant::pi(), Pr(), Foam::Re(), rhos(), Foam::fvc::Su(), and Ts().
void readFields | ( | Cloud< ParcelType > & | c ) | [static]
|
Read.
Reimplemented from ThermoParcel< ParcelType >.
Reimplemented in ReactingMultiphaseParcel< ParcelType >, ReactingMultiphaseParcel< BasicReactingMultiphaseParcel< ThermoType > >, and ReactingMultiphaseParcel< CoalParcel< ThermoType > >.
Definition at line 90 of file ReactingParcelIO.C.
References Cloud< ParcelType >::checkFieldIOobject(), ReactingCloud< ParcelType >::composition(), Cloud< ParcelType >::fieldIOobject(), forAll, forAllIter, ReactingParcel< ParcelType >::mass0_, CompositionModel< CloudType >::nPhase(), p, CompositionModel< CloudType >::phaseTypes(), Foam::readFields(), List< T >::setSize(), List< T >::size(), Cloud< ParticleType >::size(), CompositionModel< CloudType >::stateLabels(), Y, and ReactingParcel< ParcelType >::Y_.
void writeFields | ( | const Cloud< ParcelType > & | c ) | [static]
|
Write.
Reimplemented from ThermoParcel< ParcelType >.
Reimplemented in ReactingMultiphaseParcel< ParcelType >, ReactingMultiphaseParcel< BasicReactingMultiphaseParcel< ThermoType > >, and ReactingMultiphaseParcel< CoalParcel< ThermoType > >.
Definition at line 153 of file ReactingParcelIO.C.
References ReactingCloud< ParcelType >::composition(), Cloud< ParcelType >::fieldIOobject(), forAll, forAllConstIter, ReactingParcel< ParcelType >::mass0_, CompositionModel< CloudType >::nPhase(), p, CompositionModel< CloudType >::phaseTypes(), List< T >::size(), Cloud< ParcelType >::size(), CompositionModel< CloudType >::stateLabels(), ReactingParcel< ParcelType >::Y(), and Y.
friend class Cloud< ParcelType > [friend]
|
Reimplemented from ThermoParcel< ParcelType >.
Reimplemented in ReactingMultiphaseParcel< ParcelType >, ReactingMultiphaseParcel< BasicReactingMultiphaseParcel< ThermoType > >, and ReactingMultiphaseParcel< CoalParcel< ThermoType > >.
Definition at line 236 of file ReactingParcel_.H.
Ostream& operator | ( | Ostream & | , |
const ReactingParcel< ParcelType > & | |||
) | [friend]
|
scalar mass0_ [protected]
|
Initial particle mass [kg].
Definition at line 179 of file ReactingParcel_.H.
Referenced by ReactingParcel< ParcelType >::mass0(), ReactingParcel< ParcelType >::readFields(), and ReactingParcel< ParcelType >::writeFields().
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().
Foam::string propHeader = " nPhases(Y1..YN)" [static]
|
String representation of properties.
Reimplemented from ThermoParcel< ParcelType >.
Reimplemented in ReactingMultiphaseParcel< ParcelType >, ReactingMultiphaseParcel< BasicReactingMultiphaseParcel< ThermoType > >, and ReactingMultiphaseParcel< CoalParcel< ThermoType > >.
Definition at line 230 of file ReactingParcel_.H.