|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
[br][br][以下内容由 frankmu331 在 2008年03月30日 09:41am 时添加] [br]
#include "udf.h"
DEFINE_PROPERTY(cell_density,cell,thread)
{
real T = C_T(cell,thread);
real P = C_P(cell,thread);
return 1.35 - 0.004*T + 5.0e-6*T*T+P/1000000;
}[br][br][以下内容由 frankmu331 在 2008年03月30日 09:43am 时添加] [br]
帮助文件中写道density (as a function of temperature)
那么采用density (as a function of temperature and pressure) 是否可以[br][br][以下内容由 frankmu331 在 2008年03月30日 09:49am 时添加] [br]
进一步的工作是根据fluent中的温度和压力C_T(cell,thread)、C_P(cell,thread),然后调用外部函数的头文件和库文件,是否可以得到相应的密度和定压比热Cp。我发现fluent中的Cp选项中没有udf。如何能够实现??
欢迎讨论! |
|