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

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

Classes

class  constantProperties
 
class  iNew
 
class  trackingData
 

Public Member Functions

 TypeName ("ThermoParcel")
 
 AddToPropertyList (ParcelType, " T"+" Cp")
 
 ThermoParcel (const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti)
 
 ThermoParcel (const polyMesh &mesh, const vector &position, const label celli)
 
 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)
 
 ThermoParcel (const polyMesh &mesh, Istream &is, bool readFields=true, bool newFormat=true)
 
 ThermoParcel (const ThermoParcel &p)
 
 ThermoParcel (const ThermoParcel &p, const polyMesh &mesh)
 
virtual autoPtr< particleclone () const
 
virtual autoPtr< particleclone (const polyMesh &mesh) const
 
scalar T () const
 
scalar Cp () const
 
scalar hs () const
 
scalar & T ()
 
scalar & Cp ()
 
template<class TrackCloudType >
void setCellValues (TrackCloudType &cloud, trackingData &td)
 
template<class TrackCloudType >
void cellValueSourceCorrection (TrackCloudType &cloud, trackingData &td, const scalar dt)
 
template<class TrackCloudType >
void calcSurfaceValues (TrackCloudType &cloud, trackingData &td, const scalar T, scalar &Ts, scalar &rhos, scalar &mus, scalar &Pr, scalar &kappas) const
 
template<class TrackCloudType >
void calc (TrackCloudType &cloud, trackingData &td, const scalar dt)
 
void writeProperties (Ostream &os, const wordRes &filters, const word &delim, const bool namesOnly=false) const
 
template<class TrackCloudType >
Foam::scalar calcHeatTransfer (TrackCloudType &cloud, trackingData &td, const scalar dt, 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)
 
template<class CloudType >
static void writeFields (const CloudType &c)
 
template<class CloudType >
static void readObjects (CloudType &c, const objectRegistry &obr)
 
template<class CloudType >
static void writeObjects (const CloudType &c, objectRegistry &obr)
 

Static Public Attributes

static const std::size_t sizeofFields
 

Protected Member Functions

template<class TrackCloudType >
scalar calcHeatTransfer (TrackCloudType &cloud, trackingData &td, const scalar dt, const scalar Re, const scalar Pr, const scalar kappa, const scalar NCpW, const scalar Sh, scalar &dhsTrans, scalar &Sph)
 

Protected Attributes

scalar T_
 
scalar Cp_
 

Friends

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

Detailed Description

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

Source files

Definition at line 53 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

Definition at line 70 of file ThermoParcelI.H.

Referenced by ThermoParcel::clone().

Here is the caller graph for this function:

◆ ThermoParcel() [2/6]

ThermoParcel ( const polyMesh mesh,
const vector position,
const label  celli 
)
inline

Definition at line 86 of file ThermoParcelI.H.

◆ 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

Definition at line 100 of file ThermoParcelI.H.

◆ ThermoParcel() [4/6]

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

◆ ThermoParcel() [5/6]

ThermoParcel ( const ThermoParcel p)

◆ ThermoParcel() [6/6]

ThermoParcel ( const ThermoParcel p,
const polyMesh mesh 
)

Member Function Documentation

◆ calcHeatTransfer() [1/2]

scalar calcHeatTransfer ( TrackCloudType &  cloud,
trackingData td,
const scalar  dt,
const scalar  Re,
const scalar  Pr,
const scalar  kappa,
const scalar  NCpW,
const scalar  Sh,
scalar &  dhsTrans,
scalar &  Sph 
)
protected

◆ TypeName()

TypeName ( "ThermoParcel"  )

◆ AddToPropertyList()

AddToPropertyList ( ParcelType  ,
" T"+" Cp  
)

◆ clone() [1/2]

virtual autoPtr<particle> clone ( ) const
inlinevirtual

Definition at line 347 of file ThermoParcel.H.

References ThermoParcel::ThermoParcel().

Here is the call graph for this function:

◆ clone() [2/2]

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

Definition at line 353 of file ThermoParcel.H.

References mesh, and ThermoParcel::ThermoParcel().

Here is the call graph for this function:

◆ T() [1/2]

Foam::scalar T ( ) const
inline

Definition at line 200 of file ThermoParcelI.H.

References ThermoParcel::T_.

◆ Cp() [1/2]

Foam::scalar Cp ( ) const
inline

Definition at line 207 of file ThermoParcelI.H.

References ThermoParcel::Cp_.

◆ hs()

Foam::scalar hs ( ) const
inline

Definition at line 214 of file ThermoParcelI.H.

References ThermoParcel::Cp_, and ThermoParcel::T_.

◆ T() [2/2]

Foam::scalar & T ( )
inline

Definition at line 221 of file ThermoParcelI.H.

References ThermoParcel::T_.

◆ Cp() [2/2]

Foam::scalar & Cp ( )
inline

Definition at line 228 of file ThermoParcelI.H.

References ThermoParcel::Cp_.

◆ setCellValues()

void setCellValues ( TrackCloudType &  cloud,
trackingData td 
)

◆ cellValueSourceCorrection()

void cellValueSourceCorrection ( TrackCloudType &  cloud,
trackingData td,
const scalar  dt 
)

◆ calcSurfaceValues()

void calcSurfaceValues ( TrackCloudType &  cloud,
trackingData td,
const scalar  T,
scalar &  Ts,
scalar &  rhos,
scalar &  mus,
scalar &  Pr,
scalar &  kappas 
) const

◆ calc()

void calc ( TrackCloudType &  cloud,
trackingData td,
const scalar  dt 
)

Definition at line 138 of file ThermoParcel.C.

References Foam::pow4(), Pr(), Foam::Re(), Su, T0, and Foam::Zero.

Here is the call graph for this function:

◆ readFields()

void readFields ( CloudType c)
static

Definition at line 84 of file ThermoParcelIO.C.

References Foam::constant::universal::c, Cp, IOobject::MUST_READ, p, Foam::readFields(), and Foam::T().

Here is the call graph for this function:

◆ writeFields()

void writeFields ( const CloudType c)
static

Definition at line 110 of file ThermoParcelIO.C.

References Foam::constant::universal::c, Cp, IOobject::NO_READ, p, Foam::T(), and Foam::writeFields().

Here is the call graph for this function:

◆ writeProperties()

void writeProperties ( Ostream os,
const wordRes filters,
const word delim,
const bool  namesOnly = false 
) const

Definition at line 136 of file ThermoParcelIO.C.

References os(), and writeProp.

Here is the call graph for this function:

◆ readObjects()

void readObjects ( CloudType c,
const objectRegistry obr 
)
static

Definition at line 159 of file ThermoParcelIO.C.

References Foam::constant::universal::c, Cp, p, Foam::readFields(), and Foam::T().

Here is the call graph for this function:

◆ writeObjects()

void writeObjects ( const CloudType c,
objectRegistry obr 
)
static

Definition at line 185 of file ThermoParcelIO.C.

References Foam::constant::universal::c, Cp, p, and Foam::T().

Here is the call graph for this function:

◆ calcHeatTransfer() [2/2]

Foam::scalar calcHeatTransfer ( TrackCloudType &  cloud,
trackingData td,
const scalar  dt,
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

◆ sizeofFields

const std::size_t sizeofFields
static

Definition at line 74 of file ThermoParcel.H.

◆ T_

scalar T_
protected

Definition at line 249 of file ThermoParcel.H.

Referenced by ThermoParcel::hs(), and ThermoParcel::T().

◆ Cp_

scalar Cp_
protected

Definition at line 252 of file ThermoParcel.H.

Referenced by ThermoParcel::Cp(), and ThermoParcel::hs().


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