分析过coalChemistryFoam主函数之后,下面看颗粒的子模型
coalCloud.H是描述碳颗粒的coalCloud类,是由以下6个类派生出来
namespace Foam
{
typedef ReactingMultiphaseCloud
<
ReactingCloud
<
ThermoCloud
<
KinematicCloud
<
Cloud
<
coalParcel
>
>
>
>
> coalCloud;
}
本文分析单个颗粒的子模型
碳颗粒类,coalParcel
coalParcel.Hnamespace Foam
{
typedef ReactingMultiphaseParcel
<
ReactingParcel
<
ThermoParcel
<
KinematicParcel
<
particle
>
>
>
> coalParcel;
template<>
inline bool contiguous<coalParcel>()//判断数据是否连续(?)
{
return false;
}
}
其中,particle.H为基本的颗粒类,包括获得颗粒的位置信息等
KinematicParcel
template<class ParcelType>
class Foam::KinematicParcel< ParcelType >
Kinematic parcel class with rotational motion (as spherical
particles only) and one/two-way coupling with the continuous
phase.
Sub-models include:
- drag
- turbulent dispersion
- wall interactions
其中包括颗粒直径、密度、时间(age)等成员函数
ThermoParcel
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
其中包括获得颗粒比热(cp)、温度、焓、辐射率等成员函数,以及计算与连续相之间换热(即能量方程的源项)的成员函数
ReactingParcel
template<class ParcelType>
class Foam::ReactingParcel< ParcelType >
Reacting parcel class with one/two-way coupling with the continuous phase.
其中包括计算相变、获得某种组分的质量分数等成员函数
ReactingMultiphaseParcel
template<class ParcelType>
class Foam::ReactingMultiphaseParcel< ParcelType >
Multiphase variant of the reacting parcel class with one/two-way coupling with the continuous phase.
其中包括计算碳颗粒挥发分挥发、表面化学反应等成员函数
网友评论