fluent空化udf,结果对不上

浏览:1218

我编写了fluent内置Schnerr and Sauer空化模型的udf文件,但是导入udf的结果和使用fluent内置Schnerr and Sauer空化模型的结果不一样,希望各位大佬帮我看看到底有什么问题。

模型公式:

1.png

2.png

fluent空化udf,结果对不上的图3

#include "udf.h"

#include "sg_mphase.h" 

#define P_v 30000


DEFINE_MASS_TRANSFER(water_to_vapor,cell,thread,from_index,from_species_index,to_index,to_species_index)

{

   real  m_dot;

  Thread *gas, *liq;

  liq = THREAD_SUB_THREAD(thread, from_index);

  gas = THREAD_SUB_THREAD(thread, to_index);

  m_dot=0.0;

  if(C_P(cell, thread)<=P_v)

     m_dot=3108.725549*C_R(cell,liq)*C_R(cell,gas)/C_R(cell,thread)*sqrt(2.0/3.0*(P_v-C_P(cell,thread))/C_R(cell,liq));

  else

     m_dot=-621.74511*C_R(cell,liq)*C_R(cell,gas)/C_R(cell,thread)*sqrt(2.0/3.0*(C_P(cell,thread)-P_v)/C_R(cell,liq));

  return( m_dot);

}

还有

3.png

可以用c_v += 1.0*(1.0+0.1/20*fabs(0.5*(C_DUDX(cell,thread)+C_DUDY(cell,thread)+C_DVDX(cell,thread)+C_DVDY(cell,thread))))表示吗

fluent空化udf,结果对不上的图5

邀请回答 我来回答

当前暂无回答

回答可获赠 200金币

没解决?试试专家一对一服务

换一批