FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

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

  • heat transfer.
More...

#include <lagrangianIntermediate/ThermoParcel.H>


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 70 of file ThermoParcel.H.

Inheritance diagram for ThermoParcel< ParcelType >:
Collaboration diagram for ThermoParcel< ParcelType >:

List of all members.

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

Constructor & Destructor Documentation

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  
)

Construct from Istream.

Definition at line 42 of file ThermoParcelIO.C.

References readScalar.

ThermoParcel ( const ThermoParcel< ParcelType > &   p  )

Construct as a copy.


Member Function Documentation

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.

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 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.

References Pr(), and Ts().


Friends And Related Function Documentation

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

Member Data Documentation

scalar T_ [protected]
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.


The documentation for this class was generated from the following files:
  • src/lagrangian/intermediate/parcels/Templates/ThermoParcel/ThermoParcel.H
  • src/lagrangian/intermediate/parcels/Templates/ThermoParcel/ThermoParcel.C
  • src/lagrangian/intermediate/parcels/Templates/ThermoParcel/ThermoParcelI.H
  • src/lagrangian/intermediate/parcels/Templates/ThermoParcel/ThermoParcelIO.C