美文网首页
coalChemistryFoam part 2: coalP

coalChemistryFoam part 2: coalP

作者: charryzzz | 来源:发表于2019-04-18 11:04 被阅读0次

分析过coalChemistryFoam主函数之后,下面看颗粒的子模型
coalCloud.H是描述碳颗粒的coalCloud类,是由以下6个类派生出来

coalCloud.H
 namespace Foam
 {
     typedef ReactingMultiphaseCloud
     <
         ReactingCloud
         <
             ThermoCloud
             <
                 KinematicCloud
                 <
                     Cloud
                     <
                         coalParcel
                     >
                 >
             >
         >
     > coalCloud;
 }

本文分析单个颗粒的子模型

碳颗粒类,coalParcel

coalParcel.H
namespace 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.

其中包括计算碳颗粒挥发分挥发、表面化学反应等成员函数

相关文章

网友评论

      本文标题:coalChemistryFoam part 2: coalP

      本文链接:https://www.haomeiwen.com/subject/zepnwqtx.html