CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

fopen creates parse error in fluent.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 16, 2018, 05:28
Default fopen creates parse error in fluent.
  #1
New Member
 
Languedoc-Roussillon
Join Date: Oct 2018
Posts: 1
Rep Power: 0
hcapdevi is on a distinguished road
I am using an udf in fluent, but when using the fopen function I have a parse error in fluent, I don't know where the problem is coming from, the code seems to be right.
Thank you for your help.

#include "udf.h"
#include "mem.h"

DEFINE_EXECUTE_AT_END (execute_at_end)
{

FILE *fp;
fp = fopen("D:\\EPF\\Stage(S07)\\data.txt", "a");

int zone_ID = 8;
Thread *thread_name = Lookup_Thread(Get_Domain(1), zone_ID);

cell_t c;
begin_c_loop(c, thread_name)
{

}
end_c_loop(c, c_thread)
fclose (fp);

Last edited by hcapdevi; October 16, 2018 at 10:34.
hcapdevi is offline   Reply With Quote

Reply

Tags
fluent, fopen, parse error, udf


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fluent exit frequently with error ‘Unable to parse’ running on remote clusters Gang Shen Fluent Multiphase 5 February 7, 2022 04:02
line 1 parse error UDF Fluent violethill Fluent UDF and Scheme Programming 1 February 25, 2018 22:01
Building problems with cell zones when reopening Fluent MJ2017 FLUENT 0 October 14, 2017 09:11
heat transfer with RANS wall function, over a flat plate (validation with fluent) bruce OpenFOAM Running, Solving & CFD 6 January 20, 2017 07:22
interpreted fluent parse error unihit4392 FLUENT 0 July 7, 2015 23:22


All times are GMT -4. The time now is 17:26.