不知火舞的被虐|伊人天伊人天天综合网|博洛尼亚天气|任你懆这里只有精品4|久久美日韩精品久久|掌中之物漫画免费阅读观看|0丨d老妇

如何在DEFINE_SOURCE(de_sox,c,t,dS,eqn)中查找離散相的質(zhì)量什么的

瀏覽:2313 回答:1

DEFINE_SOURCE(de_sox,c,t,dS,eqn)

{

real S_g_so2=0.;

real total_mass=0.,mean_mass=0.;

real total_diam=0.,mean_diam=0.;

real total_urel=0.,mean_urel=0.;

real total_p_temp=0.,mean_p_temp=0.;

real Aint=0.;

int i=0;

mu_g=C_MU_T(c,t)+1.e-8;

rho_g=C_R(c,t)+1.e-8;

pg=C_P(c,t)+1.e-8;

real Re,Sc,Sh,k_g_so2,Hso2,D_l_so2,f,k_l_so2,K_G,P_g_so2,mu_g,rho_g,pg,Tp;

/* particle index for looping over all particles */

Particle *pi;

/* loop over all particles in the cell to find their mass and weighted mean velocity and diameter */


real Tp=P_T(pi);/* particle temperature*/

begin_particle_cell_loop(pi,c,t)

{

total_mass+=pi->state.mass;

total_diam+=pi->state.diam;

total_urel+=urel(pi,c,t);

total_p_temp+=pi->state.temp;

i=i+1;

}

end_particle_cell_loop(pi,c,t)

我用的begin_particle_cell_loop(pi,c,t)來查找離散相中的質(zhì)量,加載和load都可以,沒有錯誤,但是一計算初始化就出現(xiàn)四個錯誤那個提醒,只能重啟anysys重新導(dǎo)入,還是出現(xiàn)錯誤Error: 
FLUENT received fatal signal (ACCESS_VIOLATION)
1. Note exact events leading to error.
2. Save case/data under new name.
3. Exit program and restart to continue.
4. Report error to your distributor.
Error Object: #f

求大神提示怎么修改

邀請回答 我來回答

全部回答

(1)
默認(rèn) 最新
結(jié)構(gòu)力學(xué)
@ANSYS專家 @victor007
2016年12月19日
評論 點贊

沒解決?試試專家一對一服務(wù)

換一批
    App下載
    技術(shù)鄰APP
    工程師必備
    • 項目客服
    • 培訓(xùn)客服
    • 平臺客服

    TOP