Go to the documentation of this file.
38 #ifndef ReactingParcel_H
39 #define ReactingParcel_H
50 template<
class ParcelType>
53 template<
class ParcelType>
65 template<
class ParcelType>
81 public ParcelType::constantProperties
109 inline scalar
pMin()
const;
116 template<
class CloudType>
177 template<
class TrackData>
234 const label tetFaceI,
244 const label tetFaceI,
247 const scalar nParticle0,
249 const scalar dTarget0,
252 const vector& angularMomentum0,
319 inline scalar
mass0()
const;
325 inline scalar
pc()
const;
334 inline scalar&
mass0();
343 template<
class TrackData>
352 template<
class TrackData>
361 template<
class TrackData>
375 template<
class TrackData>
387 template<
class CloudType,
class CompositionType>
391 const CompositionType& compModel
395 template<
class CloudType>
399 template<
class CloudType,
class CompositionType>
403 const CompositionType& compModel
407 template<
class CloudType>
413 friend Ostream& operator<< <ParcelType>
scalar mass0() const
Return const access to initial mass [kg].
AddToPropertyList(ParcelType, " mass0"+" nPhases(Y1..YN)")
String representation of properties.
virtual autoPtr< particle > clone() const
Construct and return a (basic particle) clone.
demandDrivenEntry< bool > constantVolume_
Constant volume flag - e.g. during mass transfer.
static void readFields(CloudType &c, const CompositionType &compModel)
Read.
scalarField Re(const UList< complex > &cf)
static const std::size_t sizeofFields_
Size in bytes of the fields.
scalar pc() const
Return the owner cell pressure [Pa].
TypeName("ReactingParcel")
Runtime type information.
ParcelType::template TrackingData< CloudType >::trackPart trackPart
const scalarField & Y() const
Return const access to mass fractions of mixture [].
bool cp(const fileName &src, const fileName &dst)
Copy, recursively if necessary, the source to the destination.
This function object reads fields from the time directories and adds them to the mesh database for fu...
Mesh consisting of general polyhedral cells.
demandDrivenEntry< scalar > pMin_
Minimum pressure [Pa].
TrackingData(CloudType &cloud, trackPart part=ParcelType::template TrackingData< CloudType >::tpLinearTrack)
Construct from components.
autoPtr< interpolation< scalar > > pInterp_
Interpolator for continuous phase pressure field.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
scalarList Y0(nSpecie, 0.0)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
ReactingParcel(const polyMesh &mesh, const vector &position, const label cellI, const label tetFaceI, const label tetPtI)
Construct from owner, position, and cloud owner.
dimensionedScalar Pr("Pr", dimless, laminarTransport)
Templated base class for dsmc cloud.
iNew(const polyMesh &mesh)
A list of keyword definitions, which are a keyword followed by any number of values (e....
scalar mass0_
Initial mass [kg].
static void writeFields(const CloudType &c, const CompositionType &compModel)
Write.
void setCellValues(TrackData &td, const scalar dt, const label cellI)
Set cell values.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A cloud is a collection of lagrangian particles.
bool constantVolume() const
Return const access to the constant volume flag.
Class to hold reacting parcel constant properties.
Factory class to read-construct particles used for.
constantProperties()
Null constructor.
void cellValueSourceCorrection(TrackData &td, const scalar dt, const label cellI)
Correct cell values using latest transfer information.
scalar pMin() const
Return const access to the minimum pressure.
const dimensionedScalar c
Speed of light in a vacuum.
scalarField Y_
Mass fractions of mixture [].
autoPtr< ReactingParcel< ParcelType > > operator()(Istream &is) const
void calc(TrackData &td, const scalar dt, const label cellI)
Update parcel properties over the time interval.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual autoPtr< particle > clone(const polyMesh &mesh) const
Construct and return a (basic particle) clone.
const interpolation< scalar > & pInterp() const
Return const access to the interpolator for continuous phase.
void correctSurfaceValues(TrackData &td, const label cellI, const scalar T, const scalarField &Cs, scalar &rhos, scalar &mus, scalar &Prs, scalar &kappas)
Correct surface values due to emitted species.
Reacting parcel class with one/two-way coupling with the continuous phase.
void calcPhaseChange(TrackData &td, const scalar dt, const label cellI, 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.
scalar updateMassFraction(const scalar mass0, const scalarField &dMass, scalarField &Y) const
Update mass fraction.