[問題] 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