找回密码
 注册
查看: 2153|回复: 1

help: UDF compile/link error

[复制链接]
发表于 2008-6-28 00:56:40 | 显示全部楼层 |阅读模式

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

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

x
UDF 就是 fluent帮助中的例子
/**********************************************************************
  unsteady.c
  UDF for specifying a transient velocity profile boundary condition
***********************************************************************/
#include "udf.h"
DEFINE_PROFILE(unsteady_velocity, thread, position)
{
  face_t f;
  real t = CURRENT_TIME;
  begin_f_loop(f, thread)
   
   {
     F_PROFILE(f, thread, position) = 20. + 5.0*sin(10.*t);
   }
  end_f_loop(f, thread)
}
下面是编译时的输出:
Deleted old libudf\ntx86\2ddp\libudf.dll
        1 file(s) copied.
(system "copy C:\Fluent.Inc\fluent6.2.16\src\makefile_nt.udf libudf\ntx86\2ddp\makefile")        1 file(s) copied.
0
(chdir "libudf")()
(chdir "ntx86\2ddp")()
exam.c
# Generating udf_names.c because of makefile exam.obj
udf_names.c
# Linking libudf.dll because of makefile user_nt.udf udf_names.obj exam.obj
Microsoft (R) Incremental Linker Version 6.00.8447
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
   Creating library libudf.lib and object libudf.exp
LINK : fatal error LNK1000: unknown error; consult documentation for technical support options
Done.
哪位高手帮忙看以下? 谢谢
发表于 2009-2-11 10:26:10 | 显示全部楼层
将“ real t = CURRENT_TIME;”改为“real t =RP_Get_Real("flow-time");"试试看。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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