Thermodynamic parcel class with one/two-way coupling with the continuous phase. Includes Kinematic parcel sub-models, plus: More...
Data Structures | |
class | constantProperties |
Class to hold thermo particle constant properties. More... | |
class | iNew |
Factory class to read-construct particles used for. 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 vector &position, const label cellI, const label tetFaceI, const label tetPtI) | |
Construct from owner, position, and cloud owner. More... | |
ThermoParcel (const polyMesh &mesh, const vector &position, 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) | |
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 |
Construct and return a (basic particle) clone. More... | |
virtual autoPtr< particle > | clone (const polyMesh &mesh) const |
Construct and 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 | Tc () const |
Return const access to carrier temperature. More... | |
scalar | Cpc () const |
Return const access to carrier specific heat capacity. More... | |
scalar & | T () |
Return access to temperature. More... | |
scalar & | Cp () |
Return access to specific heat capacity. More... | |
template<class TrackData > | |
void | setCellValues (TrackData &td, const scalar dt, const label cellI) |
Set cell values. More... | |
template<class TrackData > | |
void | cellValueSourceCorrection (TrackData &td, const scalar dt, const label cellI) |
Correct cell values using latest transfer information. More... | |
template<class TrackData > | |
void | calcSurfaceValues (TrackData &td, const label cellI, const scalar T, scalar &Ts, scalar &rhos, scalar &mus, scalar &Pr, scalar &kappas) const |
Calculate surface thermo properties. More... | |
template<class TrackData > | |
void | calc (TrackData &td, const scalar dt, const label cellI) |
Update parcel properties over the time interval. More... | |
template<class TrackData > | |
Foam::scalar | calcHeatTransfer (TrackData &td, const scalar dt, const label cellI, 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... | |
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 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... | |
scalar | Tc_ |
Temperature [K]. More... | |
scalar | Cpc_ |
Specific heat capacity [J/(kg.K)]. More... | |
Static Private Attributes | |
static const std::size_t | sizeofFields_ |
Size in bytes of the fields. 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 51 of file ThermoParcel.H.
|
inline |
Construct from owner, position, and cloud owner.
Other properties initialised as null
Definition at line 75 of file ThermoParcelI.H.
Referenced by ThermoParcel::clone().
|
inline |
Construct from components.
Definition at line 93 of file ThermoParcelI.H.
ThermoParcel | ( | const polyMesh & | mesh, |
Istream & | is, | ||
bool | readFields = true |
||
) |
Construct from Istream.
ThermoParcel | ( | const ThermoParcel & | p | ) |
Construct as a copy.
ThermoParcel | ( | const ThermoParcel & | p, |
const polyMesh & | mesh | ||
) |
Construct as a copy.
|
protected |
Calculate new particle temperature.
TypeName | ( | "ThermoParcel" | ) |
Runtime type information.
AddToPropertyList | ( | ParcelType | , |
" T"+" Cp" | |||
) |
String representation of properties.
Construct and return a (basic particle) clone.
Definition at line 327 of file ThermoParcel.H.
References ThermoParcel::ThermoParcel().
Construct and return a (basic particle) clone.
Definition at line 333 of file ThermoParcel.H.
References mesh, and ThermoParcel::ThermoParcel().
|
inline |
Return const access to temperature.
Definition at line 195 of file ThermoParcelI.H.
References ThermoParcel::T_.
|
inline |
Return const access to specific heat capacity.
Definition at line 202 of file ThermoParcelI.H.
References ThermoParcel::Cp_.
|
inline |
Return the parcel sensible enthalpy.
Definition at line 209 of file ThermoParcelI.H.
References ThermoParcel::Cp_, and ThermoParcel::T_.
|
inline |
Return const access to carrier temperature.
Definition at line 216 of file ThermoParcelI.H.
References ThermoParcel::Tc_.
|
inline |
Return const access to carrier specific heat capacity.
Definition at line 223 of file ThermoParcelI.H.
References ThermoParcel::Cpc_.
|
inline |
Return access to temperature.
Definition at line 230 of file ThermoParcelI.H.
References ThermoParcel::T_.
|
inline |
Return access to specific heat capacity.
Definition at line 237 of file ThermoParcelI.H.
References ThermoParcel::Cp_.
void setCellValues | ( | TrackData & | td, |
const scalar | dt, | ||
const label | cellI | ||
) |
Set cell values.
Definition at line 36 of file ThermoParcel.C.
References Foam::endl(), Foam::nl, and WarningInFunction.
void cellValueSourceCorrection | ( | TrackData & | td, |
const scalar | dt, | ||
const label | cellI | ||
) |
Correct cell values using latest transfer information.
Definition at line 67 of file ThermoParcel.C.
References Foam::endl(), Foam::nl, and WarningInFunction.
void calcSurfaceValues | ( | TrackData & | td, |
const label | cellI, | ||
const scalar | T, | ||
scalar & | Ts, | ||
scalar & | rhos, | ||
scalar & | mus, | ||
scalar & | Pr, | ||
scalar & | kappas | ||
) | const |
Calculate surface thermo properties.
Definition at line 98 of file ThermoParcel.C.
References Foam::endl(), Foam::max(), Foam::nl, Pr(), Foam::T(), and WarningInFunction.
void calc | ( | TrackData & | td, |
const scalar | dt, | ||
const label | cellI | ||
) |
Update parcel properties over the time interval.
Definition at line 141 of file ThermoParcel.C.
References Foam::pow4(), Pr(), Foam::Re(), Sh, Foam::fvc::Su(), and Vector< scalar >::zero.
|
static |
Read.
Definition at line 82 of file ThermoParcelIO.C.
References Foam::constant::universal::c, forAllIter, IOobject::MUST_READ, p, readFields(), and Foam::T().
|
static |
Write.
Definition at line 112 of file ThermoParcelIO.C.
References Foam::constant::universal::c, forAllConstIter(), IOobject::NO_READ, p, Foam::T(), and regIOobject::write().
Foam::scalar calcHeatTransfer | ( | TrackData & | td, |
const scalar | dt, | ||
const label | cellI, | ||
const scalar | Re, | ||
const scalar | Pr, | ||
const scalar | kappa, | ||
const scalar | NCpW, | ||
const scalar | Sh, | ||
scalar & | dhsTrans, | ||
scalar & | Sph | ||
) |
Definition at line 250 of file ThermoParcel.C.
References epsilon, Foam::constant::electromagnetic::kappa, Foam::mag(), Foam::max(), Foam::min(), Foam::pow4(), Pr(), Foam::Re(), rho, s(), Sh, Foam::constant::physicoChemical::sigma, and dimensioned::value().
|
friend |
|
staticprivate |
Size in bytes of the fields.
Definition at line 72 of file ThermoParcel.H.
|
protected |
Temperature [K].
Definition at line 230 of file ThermoParcel.H.
Referenced by ThermoParcel::hs(), and ThermoParcel::T().
|
protected |
Specific heat capacity [J/(kg.K)].
Definition at line 233 of file ThermoParcel.H.
Referenced by ThermoParcel::Cp(), and ThermoParcel::hs().
|
protected |
|
protected |
Specific heat capacity [J/(kg.K)].
Definition at line 242 of file ThermoParcel.H.
Referenced by ThermoParcel::Cpc().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.