[问题] fluent UDF输入时出现line4 parse error

楼主: skaaa123 (凡人机器人)   2016-04-12 10:41:33
发问问题前,最好能先说明 出问题的电脑配备 或
发生问题的软件及错误代码
以利大家除错
<<以下请看情况选填>>
OS_作业系统  :
CPU_中央处理器:
MB_主机板   :
RAM_内存  :
VGA_显示卡 :
HDD_硬盘 :
CD-DVD_烧录机 :
PSU_电源供应器:
各组件已使用时间、使用情况:
==================
问题详述:
=================填写完毕请Ctrl+Y删除不必要的资料======================
以下是我写的UDF请问该怎么修改
#include "udf.h"
DEFINE_PROFILE(heat,thread,equation)
{
float x[3],y;/* face centroid coodinates */
face_t f; /* face indentifier */
float q=175.0;/* power */
float a=0.4; /* absorption coefficient */
float r=0.00005﹔/* radius */
float v=0.3; /* speed */
float I; /* heat flux */
/*Loop on all faces belonging to the current thread */
begin_f_loop(f,thread)
{
F_CENTROID(x,f,thread);/* get the face centroid coodinates */
x=c[0]; /* get the x coodinates */
y=c[1]; /* get the y coodinates */
real t=RP_Get_Real; /* flow time */
I=q*a*exp(-2.*((x-v*t)*(x-v*t)+(y*y)/(r*r))/(3.14*r*r); /*exact solution to channel flow */
F_PROFILE(f,thread,equation)=I; /* out put the heat flux */
}
end_f_loop(f,thread)
/* finished */
}

Links booklink

Contact Us: admin [ a t ] ucptt.com