找回密码
 注册
查看: 6038|回复: 4

fluent udf 声速的定义问题

[复制链接]
发表于 2009-5-7 21:38:53 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
在fluent6.3的udf帮助文件中,对define_property定义声速时使用公示dp/d(rho),如何表达为BMODULES的?

/********************************************************************
Density and speed of sound UDFs for compressible liquid flows.
For use with pressure-based solver, for single phase, multiphase mixture
or cavitation models only.
Note that for density function, dp is the difference between a cell
absolute pressure and reference pressure.
*********************************************************************/
#include "udf.h"

#define BMODULUS 2.2e9
#define rho_ref 1000.0
#define p_ref 101325

DEFINE_PROPERTY(superfluid_density, c, t)
{
    real rho;
    real p, dp;
    real p_operating;
   
    p_operating = RP_Get_Real ("operating-pressure");
   
    p = C_P(c,t) + p_operating;
    dp = p-p_ref;
    rho = rho_ref/(1.0-dp/BMODULUS);
    return rho;
}


DEFINE_PROPERTY(sound_speed, c,t)

{
    real a;
    real p, dp,p_operating;

    p_operating = RP_Get_Real ("operating-pressure");

    p = C_P(c,t) + p_operating;
    dp = p-p_ref;
    a = (1.-dp/BMODULUS)*sqrt(BMODULUS/rho_ref);   
    return a;
}

[ 本帖最后由 lzzmn 于 2009-5-7 13:48 编辑 ]
发表于 2010-7-18 00:09:33 | 显示全部楼层
有高手来指点一下吗?
发表于 2011-11-15 13:01:19 | 显示全部楼层
求高手啊~
发表于 2017-12-26 16:52:00 | 显示全部楼层
同求,这是为什么呢?
发表于 2020-7-26 09:11:49 | 显示全部楼层
请问楼主现在解决了吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表