[問題] fluent UDF輸入時出現line4 parse error

看板Nethood (電腦入門)作者 (凡人機器人)時間10年前 (2016/04/12 10:41), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
發問問題前,最好能先說明 出問題的電腦配備 或 發生問題的軟體及錯誤代碼 以利大家除錯 <<以下請看情況選填>> 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 */ } -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 125.231.52.86 ※ 文章網址: https://www.ptt.cc/bbs/Nethood/M.1460428896.A.E66.html
文章代碼(AID): #1N361Wvc (Nethood)
文章代碼(AID): #1N361Wvc (Nethood)