|
[Sponsors] |
January 16, 2018, 02:13 |
problem about udf in fluent
|
#1 |
Member
wan zhihua
Join Date: Dec 2017
Posts: 67
Rep Power: 9 |
I now meet a problem about udf,can you help me?when I interpret it to the fluent,it gives errors "error:E:fluent/volume.c;line 28arse error." The udf are as follows:
/************************************************** ********************* udfexample.c UDF for specifying volume profile boundary condition ************************************************** **********************/ #include "udf.h" DEFINE_PROFILE(inlet_volume, thread, position) { real x[ND_ND]; /* this will hold the position vector */ real y, h; face_t f; h = -0.0009; /* inlet height in m */ begin_f_loop(f,thread) { F_CENTROID(x, f, thread); y = x[1]; if (y<h) { F_PROFILE(f, thread, position) =1; } else { F_PROFILE(f, thread, position) =0; } end_f_loop(f, thread) } |
|
January 16, 2018, 03:19 |
|
#2 |
Member
annan
Join Date: Nov 2016
Posts: 72
Rep Power: 10 |
Hi, do you have another udf called volume.c ?
|
|
January 16, 2018, 03:47 |
[QUOTE=annan;678264]Hi, do you have another udf called volume.c ?[/QUOTE]
|
#3 |
Member
wan zhihua
Join Date: Dec 2017
Posts: 67
Rep Power: 9 |
||
January 16, 2018, 03:53 |
|
#4 |
Member
annan
Join Date: Nov 2016
Posts: 72
Rep Power: 10 |
So your problem does not come from the UDF you pasted in your post (inlet_volume), it actually comes from your other udf named volume.c, you have an error in line 28
|
|
January 16, 2018, 21:07 |
[QUOTE=annan;678272]So your problem does not come from the UDF you pasted in your pos
|
#5 | |
Member
wan zhihua
Join Date: Dec 2017
Posts: 67
Rep Power: 9 |
Quote:
versions in my computer,like Ansys 14.0, Ansys 14.5,and Ansys 18.0,do you think it will influence the udf interpretion,thank for your kindness. |
||
January 17, 2018, 02:47 |
|
#6 |
Member
annan
Join Date: Nov 2016
Posts: 72
Rep Power: 10 |
If you try to open read or write to a directory with spaces in the name for instance, you'll get this error. And from my experience, sometimes it can be due to the header files .h, so it depends really on your udf and the name of your directory. Don't hesitate to send your code so that I can take a look at it
|
|
January 17, 2018, 08:47 |
[QUOTE=annan;678264]Hi, do you have another udf called volume.c ?[/QUOTE]
|
#8 |
Member
wan zhihua
Join Date: Dec 2017
Posts: 67
Rep Power: 9 |
||
January 17, 2018, 08:51 |
[QUOTE=annan;678412]If you try to open read or write to a directory with spaces in th
|
#9 | |
Member
wan zhihua
Join Date: Dec 2017
Posts: 67
Rep Power: 9 |
Quote:
|
||
January 17, 2018, 08:55 |
[QUOTE=pakk;678426]You asked the same question [URL="https://www.cfd-online.com/Forum
|
#10 | |
Member
wan zhihua
Join Date: Dec 2017
Posts: 67
Rep Power: 9 |
Quote:
Yes ,you are right ,but in that place, nobody answer my question,so I have no choice but to ask it again ,if I distrub you,I feel very sorry.Thank you. |
||
January 17, 2018, 10:27 |
|
#11 | |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Quote:
I repeated the answer above: you missed a }. Last edited by pakk; January 17, 2018 at 11:41. |
||
January 17, 2018, 22:31 |
[QUOTE=pakk;678461]You are mistaken: your question was answered. I repeated the answe
|
#12 |
Member
wan zhihua
Join Date: Dec 2017
Posts: 67
Rep Power: 9 |
Thank you a lot,I missed it ,you help me a lot,but I when I compiled the udf ,it give me error,can you help me ?it said the udf library I am trying to load(libudf) is not compiled for parallel use on the current platform(win 64)
|
|
January 18, 2018, 04:55 |
|
#13 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
You don't need to ask the same question multiple times, it does not help. Please continue this discussion in the other thread.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problem of running parallel Fluent on linux cluster | ivanbuz | FLUENT | 15 | September 23, 2017 20:12 |
UDF for 3d boundary conditions problem in fluent | pawanh | Fluent UDF and Scheme Programming | 8 | July 19, 2013 15:27 |
problem in using parallel process in fluent 14 | aydinkabir88 | FLUENT | 1 | July 10, 2013 03:00 |
problem with udf programming in fluent | saranyasimi | Main CFD Forum | 0 | December 1, 2009 13:19 |
fluent udf problem for 3d case | srsahu | Fluent UDF and Scheme Programming | 0 | July 28, 2009 08:25 |