|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
定义密度为随温度和压力变化的函数:
/*********************************************************************/
/* UDF for specifying a temperature and pressure-dependent density property */
/*********************************************************************/
#include "udf.h"
#include "math.h"
DEFINE_PROPERTY(cell_density, c, t)
{
real C_R,temp3;
real temp1 = C_T(c,t);
real temp2 = C_P(c,t);
temp3 = 461.35871*temp1/temp2+5.785069*temp1*pow(temp2/1000000,1.6892075)/10000000000-301851.63/pow(temp1,2.7872703)-233773520000000*temp2/pow(temp1,8.6630087);
C_R = 1.0/temp3;
return C_R;
}
公式确定正确,但fluent计算时密度值老是算不对,应该是75左右,算出来总是67左右,请大家帮忙看看怎么回事,谢谢了! |
|