Reacting parcel class with one/two-way coupling with the continuous phase. More...
Classes | |
class | constantProperties |
Class to hold reacting parcel constant properties. More... | |
class | iNew |
Factory class to read-construct particles used for. More... | |
class | trackingData |
Public Member Functions | |
TypeName ("ReactingParcel") | |
Runtime type information. More... | |
AddToPropertyList (ParcelType, " mass0"+" nPhases(Y1..YN)") | |
String representation of properties. More... | |
ReactingParcel (const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti) | |
Construct from mesh, coordinates and topology. More... | |
ReactingParcel (const polyMesh &mesh, const vector &position, const label celli) | |
Construct from a position and a cell, searching for the rest of the. More... | |
ReactingParcel (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 &Y0, const constantProperties &constProps) | |
Construct from components. More... | |
ReactingParcel (const polyMesh &mesh, Istream &is, bool readFields=true) | |
Construct from Istream. More... | |
ReactingParcel (const ReactingParcel &p, const polyMesh &mesh) | |
Construct as a copy. More... | |
ReactingParcel (const ReactingParcel &p) | |
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... | |
scalar | mass0 () const |
Return const access to initial mass [kg]. More... | |
const scalarField & | Y () const |
Return const access to mass fractions of mixture []. More... | |
scalar & | mass0 () |
Return access to initial mass [kg]. 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 | |
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 | |
scalar | mass0_ |
Initial mass [kg]. More... | |
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 50 of file ReactingParcel.H.
|
inline |
Construct from mesh, coordinates and topology.
Other properties initialised as null
Definition at line 64 of file ReactingParcelI.H.
Referenced by ReactingParcel< ParcelType >::constantProperties::constantProperties(), ReactingParcel< ParcelType >::ReactingParcel(), and ReactingParcel< ParcelType >::updateMassFraction().
|
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 ReactingParcelI.H.
References ReactingParcel< ParcelType >::ReactingParcel().
|
inline |
Construct from components.
Definition at line 94 of file ReactingParcelI.H.
References ReactingParcel< ParcelType >::mass0_.
ReactingParcel | ( | const polyMesh & | mesh, |
Istream & | is, | ||
bool | readFields = true |
||
) |
Construct from Istream.
Definition at line 46 of file ReactingParcelIO.C.
References IOstream::check(), IOstream::format(), Istream::read(), and DynamicList< T, SizeInc, SizeMult, SizeDiv >::transfer().
ReactingParcel | ( | const ReactingParcel< ParcelType > & | p, |
const polyMesh & | mesh | ||
) |
Construct as a copy.
ReactingParcel | ( | const ReactingParcel< ParcelType > & | p | ) |
Construct as a copy.
|
protected |
Calculate Phase change.
Definition at line 39 of file ReactingParcel.C.
References subModelBase::active(), PhaseChangeModel< CloudType >::addToPhaseChangeMass(), PhaseChangeModel< CloudType >::calculate(), CompositionModel< CloudType >::carrier(), composition, Cp(), PhaseChangeModel< CloudType >::dh(), forAll, CompositionModel< CloudType >::liquids(), CompositionModel< CloudType >::localToCarrierId(), Foam::min(), ReactingParcel< ParcelType >::trackingData::pc(), Foam::constant::thermodynamic::RR, Foam::sum(), PhaseChangeModel< CloudType >::TMax(), PhaseChangeModel< CloudType >::Tvap(), ReactingParcel< ParcelType >::updateMassFraction(), and W().
|
protected |
Update mass fraction.
Definition at line 149 of file ReactingParcel.C.
References forAll, ReactingParcel< ParcelType >::mass0_, mesh, p, ReactingParcel< ParcelType >::ReactingParcel(), ReactingParcel< ParcelType >::setCellValues(), Foam::sum(), and ReactingParcel< ParcelType >::Y_.
Referenced by ReactingParcel< ParcelType >::calcPhaseChange().
TypeName | ( | "ReactingParcel< ParcelType >" | ) |
Runtime type information.
AddToPropertyList | ( | ParcelType | , |
" mass0"+" nPhases(Y1..YN)" | |||
) |
String representation of properties.
Construct and return a (basic particle) clone.
Definition at line 283 of file ReactingParcel.H.
Construct and return a (basic particle) clone.
Definition at line 289 of file ReactingParcel.H.
References mesh.
|
inline |
Return const access to initial mass [kg].
Definition at line 158 of file ReactingParcelI.H.
References ReactingParcel< ParcelType >::mass0_.
Referenced by ReactingParcel< ParcelType >::iNew::operator()().
|
inline |
Return const access to mass fractions of mixture [].
Definition at line 165 of file ReactingParcelI.H.
References ReactingParcel< ParcelType >::Y_.
Referenced by ReactingParcel< ParcelType >::iNew::operator()(), and ReactingParcel< ParcelType >::writeFields().
|
inline |
Return access to initial mass [kg].
Definition at line 172 of file ReactingParcelI.H.
References ReactingParcel< ParcelType >::mass0_.
|
inline |
Return access to mass fractions of mixture [].
Definition at line 179 of file ReactingParcelI.H.
References ReactingParcel< ParcelType >::Y_.
void setCellValues | ( | TrackCloudType & | cloud, |
trackingData & | td | ||
) |
Set cell values.
Definition at line 202 of file ReactingParcel.C.
References ReactingParcel< ParcelType >::cellValueSourceCorrection(), coordinates(), Foam::endl(), interpolation< Type >::interpolate(), Foam::nl, ReactingParcel< ParcelType >::trackingData::pc(), ReactingParcel< ParcelType >::trackingData::pInterp(), and WarningInFunction.
Referenced by ReactingParcel< ParcelType >::iNew::operator()(), and ReactingParcel< ParcelType >::updateMassFraction().
void cellValueSourceCorrection | ( | TrackCloudType & | cloud, |
trackingData & | td, | ||
const scalar | dt | ||
) |
Correct cell values using latest transfer information.
Definition at line 232 of file ReactingParcel.C.
References ReactingParcel< ParcelType >::correctSurfaceValues(), Foam::endl(), forAll, Foam::mag(), Foam::max(), Foam::nl, ReactingParcel< ParcelType >::trackingData::pc(), and WarningInFunction.
Referenced by ReactingParcel< ParcelType >::iNew::operator()(), and ReactingParcel< ParcelType >::setCellValues().
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 288 of file ReactingParcel.C.
References ReactingParcel< ParcelType >::calc(), SLGThermo::carrier(), Foam::cbrt(), basicSpecieMixture::Cp(), forAll, basicSpecieMixture::kappa(), Foam::max(), Foam::min(), basicSpecieMixture::mu(), ReactingParcel< ParcelType >::trackingData::pc(), Foam::constant::thermodynamic::RR, List< T >::size(), basicSpecieMixture::species(), Foam::sqrt(), Foam::sum(), Foam::T(), thermo, W(), basicSpecieMixture::Wi(), and basicSpecieMixture::Y().
Referenced by ReactingParcel< ParcelType >::cellValueSourceCorrection(), and ReactingParcel< ParcelType >::iNew::operator()().
void calc | ( | TrackCloudType & | cloud, |
trackingData & | td, | ||
const scalar | dt | ||
) |
Update parcel properties over the time interval.
Definition at line 380 of file ReactingParcel.C.
References CompositionModel< CloudType >::carrier(), Foam::cbrt(), composition, CompositionModel< CloudType >::Cp(), forAll, CompositionModel< CloudType >::localToCarrierId(), ReactingParcel< ParcelType >::trackingData::pc(), Foam::constant::mathematical::pi(), Foam::pow4(), Foam::Re(), Su, T0, and Foam::Zero.
Referenced by ReactingParcel< ParcelType >::correctSurfaceValues(), and ReactingParcel< ParcelType >::iNew::operator()().
|
static |
Read.
Definition at line 97 of file ReactingParcelIO.C.
References Cloud< ParticleType >::checkFieldIOobject(), Cloud< ParticleType >::fieldIOobject(), forAll, forAllIter, ReactingParcel< ParcelType >::mass0_, p, Foam::readFields(), List< T >::size(), Cloud< ParticleType >::size(), Y, and ReactingParcel< ParcelType >::Y_.
Referenced by ReactingParcel< ParcelType >::iNew::operator()(), and ReactingParcel< ParcelType >::readFields().
|
static |
Read - no composition.
Definition at line 88 of file ReactingParcelIO.C.
References Foam::readFields(), and ReactingParcel< ParcelType >::readFields().
|
static |
Write.
Definition at line 171 of file ReactingParcelIO.C.
References Cloud< ParticleType >::fieldIOobject(), forAll, forAllConstIter(), ReactingParcel< ParcelType >::mass0_, p, List< T >::size(), Cloud< ParticleType >::size(), Y, and ReactingParcel< ParcelType >::Y().
Referenced by ReactingParcel< ParcelType >::iNew::operator()(), and ReactingParcel< ParcelType >::writeFields().
|
static |
Write - composition supplied.
Definition at line 162 of file ReactingParcelIO.C.
References ReactingParcel< ParcelType >::writeFields().
|
friend |
|
protected |
Initial mass [kg].
Definition at line 165 of file ReactingParcel.H.
Referenced by ReactingParcel< ParcelType >::mass0(), ReactingParcel< ParcelType >::ReactingParcel(), ReactingParcel< ParcelType >::readFields(), ReactingParcel< ParcelType >::updateMassFraction(), and ReactingParcel< ParcelType >::writeFields().
|
protected |
Mass fractions of mixture [].
Definition at line 168 of file ReactingParcel.H.
Referenced by ReactingParcel< ParcelType >::readFields(), ReactingParcel< ParcelType >::updateMassFraction(), and ReactingParcel< ParcelType >::Y().