|
楼主 |
发表于 2007-4-9 14:19:10
|
显示全部楼层
udf编译问题,附源程序
问题跟踪: 请高手指点啊。bow!
简化程序如下:
/*******************************************************************/
/* udfboundary.cpp */
/* udf程序,线性温度边界条件 */
/*******************************************************************/
#include "udf.h"
DEFINE_PROFILE(side_temp,thread,index)
{
real x[ND_ND]; /* 对应于位置矢量,real相当于double */
real y;
face_t f;
begin_f_loop(f,thread) /* 对由thread传入的所有单元面循环 */
{
F_CENTROID(x,f,thread);
y = x[1];
F_PROFILE(f,thread,index)=70*(2.7-x)/(2.7+2.1)+1323.15
}
end_f_loop(f,thread)
}
装入fluent解释时还是出现如下问题:
cpp -IF:\paper\MYPROG~1\exam\exam3\fluent6.2\Fluent.Inc\fluent6.2.16/src -IF:\paper\MYPROG~1\exam\exam3\fluent6.2\Fluent.Inc\fluent6.2.16/cortex/src -IF:\paper\MYPROG~1\exam\exam3\fluent6.2\Fluent.Inc\fluent6.2.16/client/src -IF:\paper\MYPROG~1\exam\exa
3\fluent6.2\Fluent.Inc\fluent6.2.16/multiport/src -I. -DUDFCONFIG_H="<udfconfig.h>" udfboundary.c
Error: udfboundary.c: line 14: parse error.
___________________________________________________________________________
line 14指 y = x[1];
|
|