39 #ifndef ThermoParcel_H 40 #define ThermoParcel_H 51 template<
class ParcelType>
54 template<
class ParcelType>
65 template<
class ParcelType>
73 static const std::size_t sizeofFields_;
81 public ParcelType::constantProperties
124 inline scalar
T0()
const;
127 inline scalar
TMin()
const;
130 inline scalar
TMax()
const;
133 inline void setTMax(
const scalar TMax);
137 inline scalar
Cp0()
const;
145 inline scalar
f0()
const;
151 public ParcelType::trackingData
192 typedef typename ParcelType::trackingData::trackPart
trackPart;
197 template <
class TrackCloudType>
200 const TrackCloudType&
cloud,
201 trackPart part = ParcelType::trackingData::tpLinearTrack
230 inline scalar Tc()
const;
236 inline scalar Cpc()
const;
239 inline scalar& Cpc();
259 template<
class TrackCloudType>
262 TrackCloudType&
cloud,
300 const label tetFacei,
319 const label tetFacei,
322 const scalar nParticle0,
324 const scalar dTarget0,
327 const vector& angularMomentum0,
386 inline scalar
T()
const;
389 inline scalar
Cp()
const;
392 inline scalar
hs()
const;
407 template<
class TrackCloudType>
411 template<
class TrackCloudType>
414 TrackCloudType& cloud,
420 template<
class TrackCloudType>
423 TrackCloudType& cloud,
434 template<
class TrackCloudType>
437 TrackCloudType& cloud,
446 template<
class CloudType>
450 template<
class CloudType>
456 friend Ostream& operator<< <ParcelType>
ParcelType::trackingData::trackPart trackPart
dimensionedScalar Pr("Pr", dimless, laminarTransport)
scalar T0() const
Return const access to the particle initial temperature [K].
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
scalar TMin() const
Return const access to minimum temperature [K].
A list of keyword definitions, which are a keyword followed by any number of values (e...
scalar Cp_
Specific heat capacity [J/(kg.K)].
scalar T() const
Return const access to temperature.
Class to hold thermo particle constant properties.
void calc(TrackCloudType &cloud, trackingData &td, const scalar dt)
Update parcel properties over the time interval.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
void setTMax(const scalar TMax)
Set the maximum temperature [K].
bool cp(const fileName &src, const fileName &dst, const bool followLink=true)
Copy, recursively if necessary, the source to the destination.
ThermoParcel(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti)
Construct from mesh, coordinates and topology.
constantProperties()
Null constructor.
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
Factory class to read-construct particles used for.
virtual autoPtr< particle > clone() const
Construct and return a (basic particle) clone.
scalar f0() const
Return const access to the particle scattering factor [].
TypeName("ThermoParcel")
Runtime type information.
scalar Cp() const
Return const access to specific heat capacity.
scalar T_
Temperature [K].
static void readFields(CloudType &c)
Read.
A cloud is a collection of lagrangian particles.
void calcSurfaceValues(TrackCloudType &cloud, trackingData &td, const scalar T, scalar &Ts, scalar &rhos, scalar &mus, scalar &Pr, scalar &kappas) const
Calculate surface thermo properties.
void cellValueSourceCorrection(TrackCloudType &cloud, trackingData &td, const scalar dt)
Correct cell values using latest transfer information.
scalar hs() const
Return the parcel sensible enthalpy.
scalar Cp0() const
Return const access to the particle specific heat capacity.
static void writeFields(const CloudType &c)
Write.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
PtrList< coordinateSystem > coordinates(solidRegions.size())
scalar calcHeatTransfer(TrackCloudType &cloud, trackingData &td, const scalar dt, const scalar Re, const scalar Pr, const scalar kappa, const scalar NCpW, const scalar Sh, scalar &dhsTrans, scalar &Sph)
Calculate new particle temperature.
AddToPropertyList(ParcelType, " T"+" Cp")
String representation of properties.
const dimensionedScalar c
Speed of light in a vacuum.
void setCellValues(TrackCloudType &cloud, trackingData &td)
Set cell values.
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.
Templated base class for dsmc cloud.
scalarField Re(const UList< complex > &cf)
scalar TMax() const
Return const access to maximum temperature [K].
Thermodynamic parcel class with one/two-way coupling with the continuous phase. Includes Kinematic pa...
scalar epsilon0() const
Return const access to the particle emissivity [].