找回密码
 注册
查看: 1423|回复: 3

mass transfer 的UDF应该如何定义?请教大侠

[复制链接]
发表于 2003-11-20 22:51:47 | 显示全部楼层 |阅读模式

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

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

x
我在UDF的过程中,fluent会出现如下错误提示:cpp -IC:\FLUENT.INC\fluent6.1/src -IC:\FLUENT.INC\fluent6.1/cortex/src -IC:\FLUENT.INC\fluent6.1/client/src -IC:\FLUENT.INC\fluent6.1/multiport/src -I. -DUDFCONFIG_H="<udfconfig.h>" C:\Documents and Settings\Administrator.ICCTXIU\桌面\reee\UDF22.c
error: udf compiler: cannot execute cpp -IC:\FLUENT.INC\fluent6.1/src -IC:\FLUENT.INC\fluent6.1/cortex/src -IC:\FLUENT.INC\fluent6.1/client/src -IC:\FLUENT.INC\fluent6.1/multiport/src -I. -DUDFCONFIG_H="<udfconfig.h>" C:\Documents and Settings\Administr
tor.ICCTXIU\桌面\reee\UDF22.c
这市什么原因啊,搞得我头都大了,请各位大侠帮帮忙
发表于 2003-11-21 04:48:02 | 显示全部楼层

mass transfer 的UDF应该如何定义?请教大侠

Solve the problem by restart the license server
 楼主| 发表于 2003-11-21 08:50:55 | 显示全部楼层

mass transfer 的UDF应该如何定义?请教大侠

如何restart the license server?
奇怪的是别的UDF比如定义速度的UDF可以运行,为什么mass transfer的不可以?是不是程序错误,能否帮我看一下,多谢
UDF程序:
DEFINE_EXCHANGE_PROPERTY(liq_gas_source,cell,thread,liq_i,gas_i)
{
  real m_lg;
  real T_SAT=522;
  Thread * gas = THREAD_SUB_THREAD(thread,gas_i);
  Thread * liq = THREAD_SUB_THREAD(thread,liq_i);
  m_lg=0.;
  if(C_T(cell,liq)>=T_SAT)
  {
   
m_lg=-0.1*C_VOF(cell,liq)*C_R(cell,liq)*fabs(C_T(cell,liq)-T_SAT)/T_SAT
;
}
  if((m_lg==0.)&&(C_T(cell,gas)<=T_SAT))
  {
m_lg=0.1*C_VOF(cell,gas)*C_R(cell,gas)*fabs(T_SAT-C_T(cell,gas))/T_SAT;
}
  return(m_lg);
}
发表于 2003-11-21 22:40:43 | 显示全部楼层

mass transfer 的UDF应该如何定义?请教大侠

If others can run, the problem may be that you can not use interpreted UDF. You must use compiled UDF by creating a libudf using "nmake". Please refer you mannual.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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