|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
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.
哪位高手帮忙看以下? 谢谢 |
|