OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

ThermoParcel< ParcelType > Class Template Reference

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

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 calc (TrackData &td, const scalar dt, const label cellI)
 Update parcel properties over the time interval.

Static Public Member Functions

static void readFields (ThermoCloud< ParcelType > &c)
 Read.
static void writeFields (const ThermoCloud< ParcelType > &c)
 Write.

Static Public Attributes

static string propHeader
 String representation of properties.

Protected Member Functions

template<class TrackData >
scalar calcHeatTransfer (TrackData &td, const scalar dt, const label cellI, const scalar d, const vector &U, const scalar rho, const scalar T, const scalar cp, 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 > &)

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


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 66 of file ThermoParcelI.H.

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 82 of file ThermoParcelI.H.

ThermoParcel ( const Cloud< ParcelType > &  c,
Istream &  is,
bool  readFields = true 
) [inline]

Construct from Istream.

Definition at line 34 of file ThermoParcelIO.C.

References IOstream::ASCII, ThermoParcel< ParcelType >::cp_, IOstream::format(), Istream::read(), Foam::readScalar(), and ThermoParcel< ParcelType >::T_.

Here is the call graph for this function:

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  d,
const vector &  U,
const scalar  rho,
const scalar  T,
const scalar  cp,
const scalar  Sh,
scalar &  dhsTrans 
) [inline, protected]

Calculate new particle temperature.

Definition at line 138 of file ThermoParcel.C.

TypeName ( "ThermoParcel< ParcelType >"   ) 

Runtime type information.

Foam::scalar T (  )  const [inline]

Return const access to temperature.

Definition at line 190 of file ThermoParcelI.H.

Foam::scalar cp (  )  const [inline]

Return const access to specific heat capacity.

Definition at line 197 of file ThermoParcelI.H.

References ThermoParcel< ParcelType >::T_.

Foam::scalar & T (  )  [inline]

Return access to temperature.

Definition at line 204 of file ThermoParcelI.H.

References ThermoParcel< ParcelType >::cp_.

Foam::scalar & cp (  )  [inline]

Return access to specific heat capacity.

Definition at line 211 of file ThermoParcelI.H.

References ThermoParcel< ParcelType >::T_.

void readFields ( ThermoCloud< ParcelType > &  c  )  [inline, static]

Read.

Definition at line 74 of file ThermoParcelIO.C.

void writeFields ( const ThermoCloud< ParcelType > &  c  )  [inline, static]

Write.

Definition at line 106 of file ThermoParcelIO.C.


Friends And Related Function Documentation

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


Member Data Documentation

scalar T_ [protected]

Temperature [K].

Definition at line 200 of file ThermoParcel.H.

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

scalar cp_ [protected]

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

Definition at line 203 of file ThermoParcel.H.

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

scalar Tc_ [protected]

Temperature [K].

Definition at line 209 of file ThermoParcel.H.

scalar cpc_ [protected]

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

Definition at line 212 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
Copyright © 2000-2009 OpenCFD Ltd