怎么通过设置udf是转阀往复回转?
各位大神,小弟这厢有礼了!
我这几天一直在设置转阀往复旋转,采用
#include"udf.h";
DEFINE_CG_MOTION(jiaosudu,dt,cg_vel,cg_omega,time,dtime)
{
cg_omega[2]=31.4;
}
的函数,使用udf编译:
Copied E:\zhaunfa3/E:\zhaunfa3\3.27xin.c to 4-libudf\src
Creating user_nt.udf file for 2d ...
(system "copy "C:\PROGRA~1\ANSYSI~1\v150\fluent"\fluent15.0.0\src\makefile_nt.udf "4-libudf\win64\2d\makefile" ")
已复制 1 个文件。
(chdir "4-libudf")(chdir "win64\2d")# Generating ud_io1.h
3.27xin.c
..\..\src\3.27xin.c(1) : warning C4067: 预处理器指令后有意外标记 - 应输入换行符
# Generating udf_names.c because of makefile 3.27xin.obj
udf_names.c
udf_names.c(8) : warning C4113: “void (*)()”和“void (*)(void)”的参数列表不同
# Linking libudf.dll because of makefile user_nt.udf udf_names.obj 3.27xin.obj
Microsoft (R) Incremental Linker Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
正在创建库 libudf.lib 和对象 libudf.exp
Done.
load:
Opening library "E:\zhaunfa3\4-libudf"...
Library "E:\zhaunfa3\4-libudf\win64\2d\libudf.dll" opened
jiaosudu
Done.
但是在cell zong condition里面设置区域运动时,Rotational Velocity-speed中根本没有加载的数据名,
不知道怎么回事?
急急急