38 #ifndef ReactingParcel_H 39 #define ReactingParcel_H 50 template<
class ParcelType>
53 template<
class ParcelType>
65 template<
class ParcelType>
73 static const std::size_t sizeofFields_;
81 public ParcelType::constantProperties
109 inline scalar
pMin()
const;
116 template<
class CloudType>
142 trackPart part = ParcelType::template
177 template<
class TrackData>
234 const label tetFacei,
253 const label tetFacei,
256 const scalar nParticle0,
258 const scalar dTarget0,
261 const vector& angularMomentum0,
328 inline scalar
mass0()
const;
334 inline scalar
pc()
const;
343 inline scalar&
mass0();
352 template<
class TrackData>
361 template<
class TrackData>
370 template<
class TrackData>
384 template<
class TrackData>
396 template<
class CloudType,
class CompositionType>
400 const CompositionType& compModel
404 template<
class CloudType>
408 template<
class CloudType,
class CompositionType>
412 const CompositionType& compModel
416 template<
class CloudType>
422 friend Ostream& operator<< <ParcelType>
Class to hold reacting parcel constant properties.
scalar pc() const
Return the owner cell pressure [Pa].
ParcelType::template TrackingData< CloudType >::trackPart trackPart
dimensionedScalar Pr("Pr", dimless, laminarTransport)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Factory class to read-construct particles used for.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
scalar updateMassFraction(const scalar mass0, const scalarField &dMass, scalarField &Y) const
Update mass fraction.
scalarField Y_
Mass fractions of mixture [].
bool cp(const fileName &src, const fileName &dst, const bool followLink=true)
Copy, recursively if necessary, the source to the destination.
void cellValueSourceCorrection(TrackData &td, const scalar dt, const label celli)
Correct cell values using latest transfer information.
ReactingParcel(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti)
Construct from mesh, coordinates and topology.
bool constantVolume() const
Return const access to the constant volume flag.
static void writeFields(const CloudType &c, const CompositionType &compModel)
Write.
scalarList Y0(nSpecie, 0.0)
static void readFields(CloudType &c, const CompositionType &compModel)
Read.
void calc(TrackData &td, const scalar dt, const label celli)
Update parcel properties over the time interval.
scalar pMin() const
Return const access to the minimum pressure.
A cloud is a collection of lagrangian particles.
TypeName("ReactingParcel")
Runtime type information.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void setCellValues(TrackData &td, const scalar dt, const label celli)
Set cell values.
AddToPropertyList(ParcelType, " mass0"+" nPhases(Y1..YN)")
String representation of properties.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
virtual autoPtr< particle > clone() const
Construct and return a (basic particle) clone.
PtrList< coordinateSystem > coordinates(solidRegions.size())
scalar mass0() const
Return const access to initial mass [kg].
const dimensionedScalar c
Speed of light in a vacuum.
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.
constantProperties()
Null constructor.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Mesh consisting of general polyhedral cells.
Reacting parcel class with one/two-way coupling with the continuous phase.
scalar mass0_
Initial mass [kg].
Templated base class for dsmc cloud.
scalarField Re(const UList< complex > &cf)
const scalarField & Y() const
Return const access to mass fractions of mixture [].
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.