怎么通過(guò)設(shè)置udf是轉(zhuǎn)閥往復(fù)回轉(zhuǎn)?
各位大神,小弟這廂有禮了!
我這幾天一直在設(shè)置轉(zhuǎn)閥往復(fù)旋轉(zhuǎn),采用
#include"udf.h";
DEFINE_CG_MOTION(jiaosudu,dt,cg_vel,cg_omega,time,dtime)
{
cg_omega[2]=31.4;
}
的函數(shù),使用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" ")
已復(fù)制 1 個(gè)文件。
(chdir "4-libudf")(chdir "win64\2d")# Generating ud_io1.h
3.27xin.c
..\..\src\3.27xin.c(1) : warning C4067: 預(yù)處理器指令后有意外標(biāo)記 - 應(yīng)輸入換行符
# Generating udf_names.c because of makefile 3.27xin.obj
udf_names.c
udf_names.c(8) : warning C4113: “void (*)()”和“void (*)(void)”的參數(shù)列表不同
# 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.
正在創(chuàng)建庫(kù) libudf.lib 和對(duì)象 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里面設(shè)置區(qū)域運(yùn)動(dòng)時(shí),Rotational Velocity-speed中根本沒(méi)有加載的數(shù)據(jù)名,
不知道怎么回事?
急急急






















