Reacting parcel class with one/two-way coupling with the continuous phase. More...
Classes | |
class | constantProperties |
Class to hold reacting parcel constant properties. More... | |
Public Types | |
typedef ParcelType::trackingData | trackingData |
Use base tracking data. More... | |
Public Member Functions | |
AddToPropertyList (ParcelType, " nPhases(Y1..YN)") | |
String representation of properties. More... | |
ReactingParcel (const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti, const label facei) | |
Construct from mesh, coordinates and topology. More... | |
ReactingParcel (const polyMesh &mesh, const vector &position, const label celli, label &nLocateBoundaryHits) | |
Construct from a position and a cell, searching for the rest of the. More... | |
ReactingParcel (Istream &is, bool readFields=true) | |
Construct from Istream. More... | |
ReactingParcel (const ReactingParcel &p) | |
Construct as a copy. More... | |
virtual autoPtr< particle > | clone () const |
Construct and return a clone. More... | |
const scalarField & | Y () const |
Return const access to mass fractions of mixture []. More... | |
scalarField & | Y () |
Return access to mass fractions of mixture []. More... | |
template<class TrackCloudType > | |
void | setCellValues (TrackCloudType &cloud, trackingData &td) |
Set cell values. More... | |
template<class TrackCloudType > | |
void | cellValueSourceCorrection (TrackCloudType &cloud, trackingData &td, const scalar dt) |
Correct cell values using latest transfer information. More... | |
template<class TrackCloudType > | |
void | correctSurfaceValues (TrackCloudType &cloud, trackingData &td, const scalar T, const scalarField &Cs, scalar &rhos, scalar &mus, scalar &Prs, scalar &kappas) |
Correct surface values due to emitted species. More... | |
template<class TrackCloudType > | |
void | calc (TrackCloudType &cloud, trackingData &td, const scalar dt) |
Update parcel properties over the time interval. More... | |
Static Public Member Functions | |
static autoPtr< ReactingParcel > | New (Istream &is) |
Construct from Istream and return. More... | |
template<class CloudType , class CompositionType > | |
static void | readFields (CloudType &c, const CompositionType &compModel) |
Read. 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. More... | |
template<class CloudType > | |
static void | writeFields (const CloudType &c) |
Write - composition supplied. More... | |
Protected Member Functions | |
template<class TrackCloudType > | |
void | calcPhaseChange (TrackCloudType &cloud, trackingData &td, const scalar dt, const scalar Re, const scalar Pr, 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. More... | |
scalar | updateMassFraction (const scalar mass0, const scalarField &dMass, scalarField &Y) const |
Update mass fraction. More... | |
Protected Attributes | |
scalarField | Y_ |
Mass fractions of mixture []. More... | |
Friends | |
Ostream & | operator (Ostream &, const ReactingParcel< ParcelType > &) |
Reacting parcel class with one/two-way coupling with the continuous phase.
Definition at line 73 of file ReactingParcel.H.
typedef ParcelType::trackingData trackingData |
Use base tracking data.
Definition at line 125 of file ReactingParcel.H.
|
inline |
Construct from mesh, coordinates and topology.
Other properties initialised as null
Definition at line 65 of file ReactingParcelI.H.
Referenced by ReactingParcel< ParcelType >::New().
|
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 ReactingParcelI.H.
ReactingParcel | ( | Istream & | is, |
bool | readFields = true |
||
) |
Construct from Istream.
Definition at line 45 of file ReactingParcelIO.C.
References IOstream::check(), ReactingParcel< ParcelType >::readFields(), List< T >::transfer(), and ReactingParcel< ParcelType >::Y_.
ReactingParcel | ( | const ReactingParcel< ParcelType > & | p | ) |
Construct as a copy.
|
protected |
Calculate Phase change.
Definition at line 38 of file ReactingParcel.C.
References PhaseChangeModel< CloudType >::addToPhaseChangeMass(), PhaseChangeModel< CloudType >::calculate(), CompositionModel< CloudType >::carrier(), Cp(), multicomponentThermo::Cpi(), PhaseChangeModel< CloudType >::dh(), forAll, CompositionModel< CloudType >::liquids(), CompositionModel< CloudType >::localToCarrierId(), Foam::min(), p, liquidMixtureProperties::properties(), Foam::Re(), Foam::constant::physicoChemical::RR, Foam::sum(), Foam::T(), PhaseChangeModel< CloudType >::TMax(), PhaseChangeModel< CloudType >::Tvap(), Foam::W(), multicomponentThermo::WiValue(), liquidMixtureProperties::X(), and Y.
|
protected |
Update mass fraction.
Definition at line 156 of file ReactingParcel.C.
References forAll, Foam::sum(), and Y.
AddToPropertyList | ( | ParcelType | , |
" nPhases(Y1..YN)" | |||
) |
String representation of properties.
Construct and return a clone.
Definition at line 216 of file ReactingParcel.H.
|
inlinestatic |
Construct from Istream and return.
Definition at line 222 of file ReactingParcel.H.
References ReactingParcel< ParcelType >::ReactingParcel().
|
inline |
Return const access to mass fractions of mixture [].
Definition at line 115 of file ReactingParcelI.H.
|
inline |
Return access to mass fractions of mixture [].
Definition at line 122 of file ReactingParcelI.H.
void setCellValues | ( | TrackCloudType & | cloud, |
trackingData & | td | ||
) |
Set cell values.
Definition at line 195 of file ReactingParcel.C.
References Foam::endl(), Foam::nl, and WarningInFunction.
void cellValueSourceCorrection | ( | TrackCloudType & | cloud, |
trackingData & | td, | ||
const scalar | dt | ||
) |
Correct cell values using latest transfer information.
Definition at line 225 of file ReactingParcel.C.
References Foam::endl(), forAll, Foam::mag(), Foam::max(), Foam::nl, WarningInFunction, and Y.
void correctSurfaceValues | ( | TrackCloudType & | cloud, |
trackingData & | td, | ||
const scalar | T, | ||
const scalarField & | Cs, | ||
scalar & | rhos, | ||
scalar & | mus, | ||
scalar & | Prs, | ||
scalar & | kappas | ||
) |
Correct surface values due to emitted species.
Definition at line 281 of file ReactingParcel.C.
References Foam::cbrt(), multicomponentThermo::Cpi(), forAll, multicomponentThermo::kappai(), Foam::max(), Foam::min(), fluidMulticomponentThermo::mui(), Foam::constant::physicoChemical::RR, List< T >::size(), multicomponentThermo::species(), Foam::sqrt(), Foam::sum(), Foam::T(), Foam::W(), multicomponentThermo::WiValue(), and multicomponentThermo::Y().
void calc | ( | TrackCloudType & | cloud, |
trackingData & | td, | ||
const scalar | dt | ||
) |
Update parcel properties over the time interval.
Definition at line 374 of file ReactingParcel.C.
References CompositionModel< CloudType >::carrier(), Foam::cbrt(), CompositionModel< CloudType >::Cp(), forAll, hs(), multicomponentThermo::hsi(), CompositionModel< CloudType >::localToCarrierId(), Foam::constant::mathematical::pi(), Foam::pow4(), Foam::Re(), List< T >::size(), multicomponentThermo::species(), Foam::fvc::Su(), T0, and Foam::Zero.
|
static |
Read.
Definition at line 82 of file ReactingParcelIO.C.
References Foam::constant::universal::c, forAll, forAllIter, IOobject::MUST_READ, p, Foam::readFields(), List< T >::setSize(), List< T >::size(), Foam::blendedInterfacialModel::valid(), and Y.
Referenced by ReactingParcel< ParcelType >::ReactingParcel().
|
static |
Read - no composition.
Definition at line 74 of file ReactingParcelIO.C.
References Foam::constant::universal::c, and Foam::readFields().
|
static |
Write.
Definition at line 141 of file ReactingParcelIO.C.
References Foam::constant::universal::c, forAll, forAllConstIter, IOobject::NO_READ, p, List< T >::size(), and Y.
|
static |
Write - composition supplied.
Definition at line 133 of file ReactingParcelIO.C.
References Foam::constant::universal::c.
|
friend |
|
protected |
Mass fractions of mixture [].
Definition at line 135 of file ReactingParcel.H.
Referenced by ReactingParcel< ParcelType >::ReactingParcel().