Thermodynamic parcel class with one/two-way coupling with the continuous phase. Includes Kinematic parcel sub-models, plus: More...
Classes | |
class | constantProperties |
Class to hold thermo particle constant properties. More... | |
class | iNew |
Factory class to read-construct particles (for parallel transfer) More... | |
class | trackingData |
Public Member Functions | |
TypeName ("ThermoParcel") | |
Runtime type information. More... | |
AddToPropertyList (ParcelType, " T"+" Cp") | |
String representation of properties. More... | |
ThermoParcel (const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti) | |
Construct from mesh, coordinates and topology. More... | |
ThermoParcel (const polyMesh &mesh, const vector &position, const label celli) | |
Construct from a position and a cell, searching for the rest of the. More... | |
ThermoParcel (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 constantProperties &constProps) | |
Construct from components. More... | |
ThermoParcel (const polyMesh &mesh, Istream &is, bool readFields=true, bool newFormat=true) | |
Construct from Istream. More... | |
ThermoParcel (const ThermoParcel &p) | |
Construct as a copy. More... | |
ThermoParcel (const ThermoParcel &p, const polyMesh &mesh) | |
Construct as a copy. More... | |
virtual autoPtr< particle > | clone () const |
Return a (basic particle) clone. More... | |
virtual autoPtr< particle > | clone (const polyMesh &mesh) const |
Return a (basic particle) clone. More... | |
scalar | T () const |
Return const access to temperature. More... | |
scalar | Cp () const |
Return const access to specific heat capacity. More... | |
scalar | hs () const |
Return the parcel sensible enthalpy. More... | |
scalar & | T () |
Return access to temperature. More... | |
scalar & | Cp () |
Return access to specific heat capacity. 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 | calcSurfaceValues (TrackCloudType &cloud, trackingData &td, const scalar T, scalar &Ts, scalar &rhos, scalar &mus, scalar &Pr, scalar &kappas) const |
Calculate surface thermo properties. More... | |
template<class TrackCloudType > | |
void | calc (TrackCloudType &cloud, trackingData &td, const scalar dt) |
Update parcel properties over the time interval. More... | |
void | writeProperties (Ostream &os, const wordRes &filters, const word &delim, const bool namesOnly=false) const |
Write individual parcel properties to stream. More... | |
template<class TrackCloudType > | |
Foam::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) |
Static Public Member Functions | |
template<class CloudType > | |
static void | readFields (CloudType &c) |
Read. More... | |
template<class CloudType > | |
static void | writeFields (const CloudType &c) |
Write. More... | |
template<class CloudType > | |
static void | readObjects (CloudType &c, const objectRegistry &obr) |
Read particle fields as objects from the obr registry. More... | |
template<class CloudType > | |
static void | writeObjects (const CloudType &c, objectRegistry &obr) |
Write particle fields as objects into the obr registry. More... | |
Static Public Attributes | |
static const std::size_t | sizeofFields |
Size in bytes of the fields. More... | |
Protected Member Functions | |
template<class TrackCloudType > | |
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. More... | |
Protected Attributes | |
scalar | T_ |
Temperature [K]. More... | |
scalar | Cp_ |
Specific heat capacity [J/(kg.K)]. More... | |
Friends | |
Ostream & | operator (Ostream &, const ThermoParcel< ParcelType > &) |
Thermodynamic parcel class with one/two-way coupling with the continuous phase. Includes Kinematic parcel sub-models, plus:
Definition at line 53 of file ThermoParcel.H.
|
inline |
Construct from mesh, coordinates and topology.
Other properties initialised as null
Definition at line 70 of file ThermoParcelI.H.
|
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 86 of file ThermoParcelI.H.
|
inline |
Construct from components.
Definition at line 100 of file ThermoParcelI.H.
ThermoParcel | ( | const polyMesh & | mesh, |
Istream & | is, | ||
bool | readFields = true , |
||
bool | newFormat = true |
||
) |
Construct from Istream.
Definition at line 44 of file ThermoParcelIO.C.
References Istream::beginRawRead(), IOstream::check(), IOstream::checkLabelSize(), IOstream::checkScalarSize(), Istream::endRawRead(), IOstreamOption::format(), FUNCTION_NAME, Istream::read(), and Foam::readFields().
ThermoParcel | ( | const ThermoParcel< ParcelType > & | p | ) |
Construct as a copy.
ThermoParcel | ( | const ThermoParcel< ParcelType > & | p, |
const polyMesh & | mesh | ||
) |
Construct as a copy.
|
protected |
Calculate new particle temperature.
TypeName | ( | "ThermoParcel< ParcelType >" | ) |
Runtime type information.
AddToPropertyList | ( | ParcelType | , |
" T"+" Cp" | |||
) |
String representation of properties.
Return a (basic particle) clone.
Definition at line 456 of file ThermoParcel.H.
References particle< Type >::Clone().
Return a (basic particle) clone.
Definition at line 464 of file ThermoParcel.H.
References particle< Type >::Clone(), and mesh.
|
inline |
Return const access to temperature.
Definition at line 200 of file ThermoParcelI.H.
References ThermoParcel< ParcelType >::T_.
|
inline |
Return const access to specific heat capacity.
Definition at line 207 of file ThermoParcelI.H.
References ThermoParcel< ParcelType >::Cp_.
|
inline |
Return the parcel sensible enthalpy.
Definition at line 214 of file ThermoParcelI.H.
References ThermoParcel< ParcelType >::Cp_, and ThermoParcel< ParcelType >::T_.
|
inline |
Return access to temperature.
Definition at line 221 of file ThermoParcelI.H.
References ThermoParcel< ParcelType >::T_.
|
inline |
Return access to specific heat capacity.
Definition at line 228 of file ThermoParcelI.H.
References ThermoParcel< ParcelType >::Cp_.
void setCellValues | ( | TrackCloudType & | cloud, |
trackingData & | td | ||
) |
Set cell values.
Definition at line 31 of file ThermoParcel.C.
References coordinates(), Foam::ensightOutput::debug, Foam::endl(), Foam::nl, td(), and WarningInFunction.
void cellValueSourceCorrection | ( | TrackCloudType & | cloud, |
trackingData & | td, | ||
const scalar | dt | ||
) |
Correct cell values using latest transfer information.
Definition at line 61 of file ThermoParcel.C.
References Foam::ensightOutput::debug, Foam::endl(), Foam::nl, td(), and WarningInFunction.
void calcSurfaceValues | ( | TrackCloudType & | cloud, |
trackingData & | td, | ||
const scalar | T, | ||
scalar & | Ts, | ||
scalar & | rhos, | ||
scalar & | mus, | ||
scalar & | Pr, | ||
scalar & | kappas | ||
) | const |
Calculate surface thermo properties.
Definition at line 95 of file ThermoParcel.C.
References coordinates(), Foam::ensightOutput::debug, Foam::endl(), Foam::max(), Foam::nl, Pr(), Foam::T(), td(), and WarningInFunction.
void calc | ( | TrackCloudType & | cloud, |
trackingData & | td, | ||
const scalar | dt | ||
) |
Update parcel properties over the time interval.
Definition at line 138 of file ThermoParcel.C.
References Foam::pow4(), Pr(), Foam::Re(), Su, T0, td(), and Foam::Zero.
|
static |
Read.
Definition at line 84 of file ThermoParcelIO.C.
References Foam::constant::universal::c, Cp, p, Foam::readFields(), and T.
|
static |
Write.
Definition at line 110 of file ThermoParcelIO.C.
References Foam::constant::universal::c, Cp, p, T, and Foam::writeFields().
void writeProperties | ( | Ostream & | os, |
const wordRes & | filters, | ||
const word & | delim, | ||
const bool | namesOnly = false |
||
) | const |
Write individual parcel properties to stream.
Definition at line 136 of file ThermoParcelIO.C.
References os(), and writeProp.
|
static |
Read particle fields as objects from the obr registry.
Definition at line 159 of file ThermoParcelIO.C.
References Foam::constant::universal::c, Cp, p, Foam::readFields(), and T.
|
static |
Write particle fields as objects into the obr registry.
Definition at line 185 of file ThermoParcelIO.C.
References Foam::constant::universal::c, Cp, p, and T.
Foam::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 | ||
) |
Definition at line 247 of file ThermoParcel.C.
References Foam::clamp(), coordinates(), epsilon, Foam::constant::electromagnetic::kappa, Foam::pow4(), Pr(), Foam::Re(), rho, sigma(), Foam::constant::physicoChemical::sigma, td(), dimensioned< Type >::value(), and Foam::fieldTypes::volume.
|
friend |
|
static |
Size in bytes of the fields.
Definition at line 76 of file ThermoParcel.H.
|
protected |
Temperature [K].
Definition at line 334 of file ThermoParcel.H.
Referenced by ThermoParcel< ParcelType >::hs(), and ThermoParcel< ParcelType >::T().
|
protected |
Specific heat capacity [J/(kg.K)].
Definition at line 339 of file ThermoParcel.H.
Referenced by ThermoParcel< ParcelType >::Cp(), and ThermoParcel< ParcelType >::hs().