Syntax error when interpreting UDF file
Hello,
I'm using UDF in my simulation to achieve the actual velocity profile at the inlet (3D case). When I tried to interpret my UDF file in FLUENT, an error as below occurred. Error: /home/m_shinohara/UDF2.c: line 4: syntax error. I don't know how to fix the error since this is my very first time using UDF. Here is my UDF file: PHP Code:
Thank you in advance. |
sheck line 4
Area=(M_PI/4.0)*pow(Diameter,2); M_PI and pow(diameter,2) M_PI AND DIAMETER define them |
Thank you for your suggestion, mohamed. I'll be sure to try it.
|
The "//" is C++ comment syntax. You should use c comment syntax "/* */".
|
Hi, blackmask. Thank you for the information.
I'll fix my UDF file:) |
All times are GMT -4. The time now is 18:46. |