Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
ThermoParcel< ParcelType > Class Template Reference

Thermodynamic parcel class with one/two-way coupling with the continuous phase. Includes Kinematic parcel sub-models, plus: More...

Inheritance diagram for ThermoParcel< ParcelType >:
Inheritance graph
[legend]
Collaboration diagram for ThermoParcel< ParcelType >:
Collaboration graph
[legend]

Classes

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 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)
 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< particleclone () const
 Construct and return a (basic particle) clone. More...
 
virtual autoPtr< particleclone (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...
 

Friends

Ostreamoperator (Ostream &, const ThermoParcel< ParcelType > &)
 

Detailed Description

template<class ParcelType>
class Foam::ThermoParcel< ParcelType >

Thermodynamic parcel class with one/two-way coupling with the continuous phase. Includes Kinematic parcel sub-models, plus:

- heat transfer

Source files

Definition at line 51 of file ThermoParcel.H.

Constructor & Destructor Documentation

◆ ThermoParcel() [1/6]

ThermoParcel ( const polyMesh mesh,
const barycentric coordinates,
const label  celli,
const label  tetFacei,
const label  tetPti 
)
inline

Construct from mesh, coordinates and topology.

Other properties initialised as null

Definition at line 75 of file ThermoParcelI.H.

Referenced by ThermoParcel< ParcelType >::calcHeatTransfer(), ThermoParcel< ParcelType >::clone(), ThermoParcel< ParcelType >::constantProperties::constantProperties(), and ThermoParcel< ParcelType >::ThermoParcel().

Here is the caller graph for this function:

◆ ThermoParcel() [2/6]

ThermoParcel ( const polyMesh mesh,
const vector position,
const label  celli 
)
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 93 of file ThermoParcelI.H.

References ThermoParcel< ParcelType >::ThermoParcel().

Here is the call graph for this function:

◆ ThermoParcel() [3/6]

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 
)
inline

Construct from components.

Definition at line 109 of file ThermoParcelI.H.

◆ ThermoParcel() [4/6]

ThermoParcel ( const polyMesh mesh,
Istream is,
bool  readFields = true 
)

Construct from Istream.

Definition at line 47 of file ThermoParcelIO.C.

References IOstream::check(), IOstream::format(), Istream::read(), and readScalar.

Here is the call graph for this function:

◆ ThermoParcel() [5/6]

ThermoParcel ( const ThermoParcel< ParcelType > &  p)

Construct as a copy.

◆ ThermoParcel() [6/6]

ThermoParcel ( const ThermoParcel< ParcelType > &  p,
const polyMesh mesh 
)

Construct as a copy.

Member Function Documentation

◆ calcHeatTransfer() [1/2]

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 
)
protected

Calculate new particle temperature.

Referenced by ThermoParcel< ParcelType >::calc().

Here is the caller graph for this function:

◆ TypeName()

TypeName ( "ThermoParcel< ParcelType >"  )

Runtime type information.

◆ AddToPropertyList()

AddToPropertyList ( ParcelType  ,
" T"+" Cp  
)

String representation of properties.

◆ clone() [1/2]

virtual autoPtr<particle> clone ( ) const
inlinevirtual

Construct and return a (basic particle) clone.

Definition at line 336 of file ThermoParcel.H.

References ThermoParcel< ParcelType >::ThermoParcel().

Here is the call graph for this function:

◆ clone() [2/2]

virtual autoPtr<particle> clone ( const polyMesh mesh) const
inlinevirtual

Construct and return a (basic particle) clone.

Definition at line 342 of file ThermoParcel.H.

References ThermoParcel< ParcelType >::ThermoParcel().

Here is the call graph for this function:

◆ T() [1/2]

Foam::scalar T ( ) const
inline

Return const access to temperature.

Definition at line 211 of file ThermoParcelI.H.

References ThermoParcel< ParcelType >::T_.

Referenced by ThermoParcel< ParcelType >::iNew::operator()().

Here is the caller graph for this function:

◆ Cp() [1/2]

Foam::scalar Cp ( ) const
inline

Return const access to specific heat capacity.

Definition at line 218 of file ThermoParcelI.H.

References ThermoParcel< ParcelType >::Cp_.

Referenced by ThermoParcel< ParcelType >::iNew::operator()().

Here is the caller graph for this function:

◆ hs()

Foam::scalar hs ( ) const
inline

Return the parcel sensible enthalpy.

Definition at line 225 of file ThermoParcelI.H.

References ThermoParcel< ParcelType >::Cp_, and ThermoParcel< ParcelType >::T_.

Referenced by ThermoParcel< ParcelType >::iNew::operator()().

Here is the caller graph for this function:

◆ Tc()

Foam::scalar Tc ( ) const
inline

Return const access to carrier temperature.

Definition at line 232 of file ThermoParcelI.H.

References ThermoParcel< ParcelType >::Tc_.

Referenced by ThermoParcel< ParcelType >::iNew::operator()().

Here is the caller graph for this function:

◆ Cpc()

Foam::scalar Cpc ( ) const
inline

Return const access to carrier specific heat capacity.

Definition at line 239 of file ThermoParcelI.H.

References ThermoParcel< ParcelType >::Cpc_.

Referenced by ThermoParcel< ParcelType >::iNew::operator()().

Here is the caller graph for this function:

◆ T() [2/2]

Foam::scalar & T ( )
inline

Return access to temperature.

Definition at line 246 of file ThermoParcelI.H.

References ThermoParcel< ParcelType >::T_.

◆ Cp() [2/2]

Foam::scalar & Cp ( )
inline

Return access to specific heat capacity.

Definition at line 253 of file ThermoParcelI.H.

References ThermoParcel< ParcelType >::Cp_.

◆ setCellValues()

void setCellValues ( TrackData &  td,
const scalar  dt,
const label  celli 
)

Set cell values.

Definition at line 36 of file ThermoParcel.C.

References ThermoParcel< ParcelType >::cellValueSourceCorrection(), coordinates(), Foam::endl(), Foam::nl, and WarningInFunction.

Referenced by ThermoParcel< ParcelType >::iNew::operator()().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cellValueSourceCorrection()

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 ThermoParcel< ParcelType >::calcSurfaceValues(), Foam::endl(), Foam::nl, and WarningInFunction.

Referenced by ThermoParcel< ParcelType >::iNew::operator()(), and ThermoParcel< ParcelType >::setCellValues().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ calcSurfaceValues()

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 95 of file ThermoParcel.C.

References ThermoParcel< ParcelType >::calc(), coordinates(), Foam::endl(), Foam::max(), Foam::nl, and WarningInFunction.

Referenced by ThermoParcel< ParcelType >::cellValueSourceCorrection(), and ThermoParcel< ParcelType >::iNew::operator()().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ calc()

void calc ( TrackData &  td,
const scalar  dt,
const label  celli 
)

Update parcel properties over the time interval.

Definition at line 138 of file ThermoParcel.C.

References ThermoParcel< ParcelType >::calcHeatTransfer(), Foam::pow4(), Pr(), Foam::Re(), Su, and Foam::Zero.

Referenced by ThermoParcel< ParcelType >::calcSurfaceValues(), and ThermoParcel< ParcelType >::iNew::operator()().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readFields()

void readFields ( CloudType c)
static

◆ writeFields()

void writeFields ( const CloudType c)
static

Write.

Definition at line 109 of file ThermoParcelIO.C.

References ThermoParcel< ParcelType >::Cp_, Cloud< ParticleType >::fieldIOobject(), forAllConstIter(), p, Cloud< ParticleType >::size(), T, and ThermoParcel< ParcelType >::T_.

Referenced by ThermoParcel< ParcelType >::iNew::operator()().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ calcHeatTransfer() [2/2]

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 
)

Friends And Related Function Documentation

◆ operator

Ostream& operator ( Ostream ,
const ThermoParcel< ParcelType > &   
)
friend

Member Data Documentation

◆ T_

scalar T_
protected

◆ Cp_

scalar Cp_
protected

◆ Tc_

scalar Tc_
protected

Temperature [K].

Definition at line 239 of file ThermoParcel.H.

Referenced by ThermoParcel< ParcelType >::calcHeatTransfer(), and ThermoParcel< ParcelType >::Tc().

◆ Cpc_

scalar Cpc_
protected

Specific heat capacity [J/(kg.K)].

Definition at line 242 of file ThermoParcel.H.

Referenced by ThermoParcel< ParcelType >::calcHeatTransfer(), and ThermoParcel< ParcelType >::Cpc().


The documentation for this class was generated from the following files: