Thermodynamic parcel class with one/two-way coupling with the continuous phase. Includes Kinematic parcel sub-models, plus:
#include <lagrangianIntermediate/ThermoParcel.H>
Thermodynamic parcel class with one/two-way coupling with the continuous phase. Includes Kinematic parcel sub-models, plus:
Definition at line 70 of file ThermoParcel.H.
Classes | |
class | constantProperties |
Class to hold thermo particle constant properties. More...
| |
class | trackData |
Class used to pass thermo tracking data to the trackToFace function. More...
| |
Public Member Functions | |
TypeName ("ThermoParcel") | |
Runtime type information.
| |
ThermoParcel (ThermoCloud< ParcelType > &owner, const vector &position, const label cellI) | |
Construct from owner, position, and cloud owner.
| |
ThermoParcel (ThermoCloud< ParcelType > &owner, const vector &position, const label cellI, const label typeId, const scalar nParticle0, const scalar d0, const vector &U0, const constantProperties &constProps) | |
Construct from components.
| |
ThermoParcel (const Cloud< ParcelType > &c, Istream &is, bool readFields=true) | |
Construct from Istream.
| |
ThermoParcel (const ThermoParcel &p) | |
Construct as a copy.
| |
autoPtr< ThermoParcel > | clone () const |
Construct and return a clone.
| |
scalar | T () const |
Return const access to temperature.
| |
scalar | cp () const |
Return const access to specific heat capacity.
| |
scalar & | T () |
Return access to temperature.
| |
scalar & | cp () |
Return access to specific heat capacity.
| |
template<class TrackData > | |
void | setCellValues (TrackData &td, const scalar dt, const label cellI) |
Set cell values.
| |
template<class TrackData > | |
void | cellValueSourceCorrection (TrackData &td, const scalar dt, const label cellI) |
Correct cell values using latest transfer information.
| |
template<class TrackData > | |
void | calcSurfaceValues (TrackData &td, const label cellI, const scalar T, scalar &Ts, scalar &rhos, scalar &mus, scalar &Pr, scalar &kappa) const |
Calculate surface thermo properties.
| |
template<class TrackData > | |
void | calc (TrackData &td, const scalar dt, const label cellI) |
Update parcel properties over the time interval.
| |
Static Public Member Functions | |
static void | readFields (Cloud< ParcelType > &c) |
Read.
| |
static void | writeFields (const Cloud< ParcelType > &c) |
Write.
| |
Static Public Attributes | |
static string | propHeader = " cp" |
String representation of properties.
| |
Protected Member Functions | |
template<class TrackData > | |
scalar | calcHeatTransfer (TrackData &td, const scalar dt, const label cellI, const scalar Re, const scalar Pr, const scalar kappa, const scalar d, const scalar rho, const scalar T, const scalar cp, const scalar NCpW, const scalar Sh, scalar &dhsTrans) |
Calculate new particle temperature.
| |
Protected Attributes | |
scalar | T_ |
Temperature [K].
| |
scalar | cp_ |
Specific heat capacity [J/(kg.K)].
| |
scalar | Tc_ |
Temperature [K].
| |
scalar | cpc_ |
Specific heat capacity [J/(kg.K)].
| |
Friends | |
class | Cloud< ParcelType > |
Ostream & | operator (Ostream &, const ThermoParcel< ParcelType > &) |
ThermoParcel | ( | ThermoCloud< ParcelType > & | owner, |
const vector & | position, | ||
const label | cellI | ||
) | [inline]
|
Construct from owner, position, and cloud owner.
Other properties initialised as null
Definition at line 75 of file ThermoParcelI.H.
Referenced by ThermoParcel< BasicReactingParcel< ThermoType > >::clone().
ThermoParcel | ( | ThermoCloud< ParcelType > & | owner, |
const vector & | position, | ||
const label | cellI, | ||
const label | typeId, | ||
const scalar | nParticle0, | ||
const scalar | d0, | ||
const vector & | U0, | ||
const constantProperties & | constProps | ||
) | [inline]
|
Construct from components.
Definition at line 91 of file ThermoParcelI.H.
ThermoParcel | ( | const Cloud< ParcelType > & | c, |
Istream & | is, | ||
bool | readFields = true
|
||
) |
ThermoParcel | ( | const ThermoParcel< ParcelType > & | p ) |
Construct as a copy.
Foam::scalar calcHeatTransfer | ( | TrackData & | td, |
const scalar | dt, | ||
const label | cellI, | ||
const scalar | Re, | ||
const scalar | Pr, | ||
const scalar | kappa, | ||
const scalar | d, | ||
const scalar | rho, | ||
const scalar | T, | ||
const scalar | cp, | ||
const scalar | NCpW, | ||
const scalar | Sh, | ||
scalar & | dhsTrans | ||
) | [protected]
|
Calculate new particle temperature.
Definition at line 220 of file ThermoParcel.C.
References Foam::mag(), Foam::max(), pow3(), pow4(), Foam::radiation::sigmaSB, T, and dimensioned< Type >::value().
TypeName | ( | "ThermoParcel< ParcelType >" | ) |
Runtime type information.
autoPtr<ThermoParcel> clone | ( | ) | const [inline]
|
Construct and return a clone.
Reimplemented from KinematicParcel< ParcelType >.
Reimplemented in CoalParcel< ThermoType >, BasicReactingMultiphaseParcel< ThermoType >, BasicReactingParcel< ThermoType >, basicThermoParcel, ReactingMultiphaseParcel< ParcelType >, ReactingParcel< ParcelType >, ReactingMultiphaseParcel< BasicReactingMultiphaseParcel< ThermoType > >, ReactingMultiphaseParcel< CoalParcel< ThermoType > >, ReactingParcel< BasicReactingMultiphaseParcel< ThermoType > >, ReactingParcel< CoalParcel< ThermoType > >, and ReactingParcel< BasicReactingParcel< ThermoType > >.
Definition at line 288 of file ThermoParcel.H.
Foam::scalar T | ( | ) | const [inline]
|
Return const access to temperature.
Definition at line 207 of file ThermoParcelI.H.
References ThermoParcel< ParcelType >::T_.
Foam::scalar cp | ( | ) | const [inline]
|
Return const access to specific heat capacity.
Definition at line 214 of file ThermoParcelI.H.
References ThermoParcel< ParcelType >::cp_.
Foam::scalar & T | ( | ) | [inline]
|
Return access to temperature.
Definition at line 221 of file ThermoParcelI.H.
References ThermoParcel< ParcelType >::T_.
Foam::scalar & cp | ( | ) | [inline]
|
Return access to specific heat capacity.
Definition at line 228 of file ThermoParcelI.H.
References ThermoParcel< ParcelType >::cp_.
void setCellValues | ( | TrackData & | td, |
const scalar | dt, | ||
const label | cellI | ||
) |
Set cell values.
Reimplemented from KinematicParcel< ParcelType >.
Reimplemented in ReactingMultiphaseParcel< ParcelType >, ReactingParcel< ParcelType >, ReactingMultiphaseParcel< BasicReactingMultiphaseParcel< ThermoType > >, ReactingMultiphaseParcel< CoalParcel< ThermoType > >, ReactingParcel< BasicReactingMultiphaseParcel< ThermoType > >, ReactingParcel< CoalParcel< ThermoType > >, and ReactingParcel< BasicReactingParcel< ThermoType > >.
Definition at line 34 of file ThermoParcel.C.
References Foam::endl(), Foam::nl, and WarningIn.
void cellValueSourceCorrection | ( | TrackData & | td, |
const scalar | dt, | ||
const label | cellI | ||
) |
Correct cell values using latest transfer information.
Reimplemented from KinematicParcel< ParcelType >.
Reimplemented in ReactingMultiphaseParcel< ParcelType >, ReactingParcel< ParcelType >, ReactingMultiphaseParcel< BasicReactingMultiphaseParcel< ThermoType > >, ReactingMultiphaseParcel< CoalParcel< ThermoType > >, ReactingParcel< BasicReactingMultiphaseParcel< ThermoType > >, ReactingParcel< CoalParcel< ThermoType > >, and ReactingParcel< BasicReactingParcel< ThermoType > >.
Definition at line 67 of file ThermoParcel.C.
void calcSurfaceValues | ( | TrackData & | td, |
const label | cellI, | ||
const scalar | T, | ||
scalar & | Ts, | ||
scalar & | rhos, | ||
scalar & | mus, | ||
scalar & | Pr, | ||
scalar & | kappa | ||
) | const |
Calculate surface thermo properties.
Definition at line 83 of file ThermoParcel.C.
void calc | ( | TrackData & | td, |
const scalar | dt, | ||
const label | cellI | ||
) |
Update parcel properties over the time interval.
Reimplemented from KinematicParcel< ParcelType >.
Reimplemented in ReactingMultiphaseParcel< ParcelType >, ReactingParcel< ParcelType >, ReactingMultiphaseParcel< BasicReactingMultiphaseParcel< ThermoType > >, ReactingMultiphaseParcel< CoalParcel< ThermoType > >, ReactingParcel< BasicReactingMultiphaseParcel< ThermoType > >, ReactingParcel< CoalParcel< ThermoType > >, and ReactingParcel< BasicReactingParcel< ThermoType > >.
Definition at line 110 of file ThermoParcel.C.
References kappa(), Pr(), Foam::Re(), rhos(), Foam::fvc::Su(), and Ts().
void readFields | ( | Cloud< ParcelType > & | c ) | [static]
|
Read.
Reimplemented from KinematicParcel< ParcelType >.
Reimplemented in ReactingMultiphaseParcel< ParcelType >, ReactingParcel< ParcelType >, ReactingMultiphaseParcel< BasicReactingMultiphaseParcel< ThermoType > >, ReactingMultiphaseParcel< CoalParcel< ThermoType > >, ReactingParcel< BasicReactingMultiphaseParcel< ThermoType > >, ReactingParcel< CoalParcel< ThermoType > >, and ReactingParcel< BasicReactingParcel< ThermoType > >.
Definition at line 81 of file ThermoParcelIO.C.
References Cloud< ParticleType >::checkFieldIOobject(), cp, ThermoParcel< ParcelType >::cp_, Cloud< ParticleType >::fieldIOobject(), forAllIter, p, Foam::readFields(), Cloud< ParticleType >::size(), T, and ThermoParcel< ParcelType >::T_.
void writeFields | ( | const Cloud< ParcelType > & | c ) | [static]
|
Write.
Reimplemented from KinematicParcel< ParcelType >.
Reimplemented in ReactingMultiphaseParcel< ParcelType >, ReactingParcel< ParcelType >, ReactingMultiphaseParcel< BasicReactingMultiphaseParcel< ThermoType > >, ReactingMultiphaseParcel< CoalParcel< ThermoType > >, ReactingParcel< BasicReactingMultiphaseParcel< ThermoType > >, ReactingParcel< CoalParcel< ThermoType > >, and ReactingParcel< BasicReactingParcel< ThermoType > >.
Definition at line 110 of file ThermoParcelIO.C.
References cp, ThermoParcel< ParcelType >::cp_, Cloud< ParticleType >::fieldIOobject(), forAllConstIter, p, Cloud< ParticleType >::size(), T, ThermoParcel< ParcelType >::T_, and regIOobject::write().
friend class Cloud< ParcelType > [friend]
|
Reimplemented from KinematicParcel< ParcelType >.
Reimplemented in ReactingMultiphaseParcel< ParcelType >, ReactingParcel< ParcelType >, ReactingMultiphaseParcel< BasicReactingMultiphaseParcel< ThermoType > >, ReactingMultiphaseParcel< CoalParcel< ThermoType > >, ReactingParcel< BasicReactingMultiphaseParcel< ThermoType > >, ReactingParcel< CoalParcel< ThermoType > >, and ReactingParcel< BasicReactingParcel< ThermoType > >.
Definition at line 249 of file ThermoParcel.H.
Ostream& operator | ( | Ostream & | , |
const ThermoParcel< ParcelType > & | |||
) | [friend]
|
scalar T_ [protected]
|
Temperature [K].
Definition at line 201 of file ThermoParcel.H.
Referenced by ThermoParcel< ParcelType >::readFields(), ThermoParcel< ParcelType >::T(), and ThermoParcel< ParcelType >::writeFields().
scalar cp_ [protected]
|
Specific heat capacity [J/(kg.K)].
Definition at line 204 of file ThermoParcel.H.
Referenced by ThermoParcel< ParcelType >::cp(), ThermoParcel< ParcelType >::readFields(), and ThermoParcel< ParcelType >::writeFields().
scalar Tc_ [protected]
|
Temperature [K].
Definition at line 210 of file ThermoParcel.H.
scalar cpc_ [protected]
|
Specific heat capacity [J/(kg.K)].
Definition at line 213 of file ThermoParcel.H.
Foam::string propHeader = " cp" [static]
|
String representation of properties.
Reimplemented from KinematicParcel< ParcelType >.
Reimplemented in ReactingMultiphaseParcel< ParcelType >, ReactingParcel< ParcelType >, ReactingMultiphaseParcel< BasicReactingMultiphaseParcel< ThermoType > >, ReactingMultiphaseParcel< CoalParcel< ThermoType > >, ReactingParcel< BasicReactingMultiphaseParcel< ThermoType > >, ReactingParcel< CoalParcel< ThermoType > >, and ReactingParcel< BasicReactingParcel< ThermoType > >.
Definition at line 243 of file ThermoParcel.H.