|
[Sponsors] |
problem with compiling boundary condition udf in parallel mode |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 23, 2015, 07:36 |
problem with compiling boundary condition udf in parallel mode
|
#1 |
Member
Lida
Join Date: Apr 2015
Posts: 39
Rep Power: 11 |
hi everyone
I wrote a UDF for the time dependent velocity inlet in a 3D pipe. I can compile it in series mode and there is no problem but when I compile it in parallel mode I face the following error: Deleted old libudf\ntx86\3ddp_host\libudf.dll libudf\ntx86\3ddp_node\libudf.dll The system cannot find the file specified. (system "copy c:\Fluent.Inc\fluent6.3.26\src\makefile_nt.udf libudf\ntx86\3ddp_host\makefile") 1 file(s) copied. (chdir "libudf")() (chdir "ntx86\3ddp_host")() (system "copy c:\Fluent.Inc\fluent6.3.26\src\makefile_nt.udf libudf\ntx86\3ddp_node\makefile") 1 file(s) copied. (chdir "libudf")() (chdir "ntx86\3ddp_node")() Done. "c:\Fluent.Inc\ntbin\ntx86" cells.... Warning: The current working directory d:\lida\t e z\cfd\run\par-udf is not shared! This may cause file open issues accross network! Error: open_udf_library: The system cannot find the path specified. Error Object: #f asI perceived from other threads I should modify my UDF for parallel mode but I don't know how to do it. I will be thankful if anyone could help me with this problem. my velocity inlet is a step function of time.that is a flow entering a 3D pipe as a fully developed flow before time 10 second and the flow will stop(velocity is zero) after time 10 second. my UDF is as follows: #include "udf.h" #include "math.h" DEFINE_PROFILE(unsteady_velocity_profile, t, i) { real current_time; real x[ND_ND]; real y; real z; real a; real n; real Umax; real Umean; real R; face_t f; current_time = CURRENT_TIME; begin_f_loop(f, t) { F_CENTROID(x,f,t); y=x[1]; z=x[2]; n=7; R=0.254; /* m */ Umean=10; /* m/s */ Umax=Umean*(((n+1)*(2*n+1))/(2*pow(n,2))); a=pow((pow(y,2)+pow(z,2)),0.5); if (current_time < 10) { F_PROFILE(f,t,i)=Umax*pow((1-sqrt(pow(z,2)+pow(y,2))/R),(1/n)); } else { F_PROFILE(f,t,i)=0; } } end_f_loop(f, t) } |
|
June 23, 2015, 08:39 |
|
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Is your working folder really "d:\lida\t e z\cfd\run\par-udf", including the spaces in the folder name?
Spaces in folder names/file names give problems, so you should rename it to (for example) "d:\lida\t_e_z\cfd\run\par-udf". |
|
June 23, 2015, 09:16 |
|
#3 |
Member
Lida
Join Date: Apr 2015
Posts: 39
Rep Power: 11 |
yes.it was the name of my working folder, but I renamed it and deleted the space but the error didn't changed. I think the this error and problem is not because of the working folder name.
|
|
June 23, 2015, 09:19 |
|
#4 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Which warning do you currently see then?
|
|
June 23, 2015, 09:22 |
|
#5 |
Member
Lida
Join Date: Apr 2015
Posts: 39
Rep Power: 11 |
This is the new warning:
eleted old libudf\ntx86\3ddp_host\libudf.dll libudf\ntx86\3ddp_node\libudf.dll The system cannot find the file specified. (system "copy c:\Fluent.Inc\fluent6.3.26\src\makefile_nt.udf libudf\ntx86\3ddp_host\makefile") 1 file(s) copied. (chdir "libudf")() (chdir "ntx86\3ddp_host")() (system "copy c:\Fluent.Inc\fluent6.3.26\src\makefile_nt.udf libudf\ntx86\3ddp_node\makefile") 1 file(s) copied. (chdir "libudf")() (chdir "ntx86\3ddp_node")() Done. "c:\Fluent.Inc\ntbin\ntx86" cells....., Warning: The current working directory d:\lida\tez\cfd\run\par-udf is not shared! This may cause file open issues accross network! Opening library "libudf"... Primitive Error at Node 3: open_udf_library: The system cannot find the path specified. Primitive Error at Node 2: open_udf_library: The system cannot find the path specified. Primitive Error at Node 4: open_udf_library: The system cannot find the path specified. Primitive Error at Node 1: open_udf_library: The system cannot find the path specified. Primitive Error at Node 0: open_udf_library: The system cannot find the path specified. Error: open_udf_library: The system cannot find the path specified. Error Object: #f |
|
June 23, 2015, 09:28 |
|
#6 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Hmm, I don't know this... Were you able to compile other UDFs in parallel mode on this computer?
|
|
June 23, 2015, 09:32 |
|
#7 |
Member
Lida
Join Date: Apr 2015
Posts: 39
Rep Power: 11 |
no I can compile neither this UDF and nor others in parallel mode on my computer even another computer while I can easily compile it in series mode.
|
|
June 23, 2015, 09:43 |
|
#8 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Then the problem is in the installation, I know very little about that so I can't help, sorry.
|
|
June 23, 2015, 09:51 |
|
#9 |
Member
Lida
Join Date: Apr 2015
Posts: 39
Rep Power: 11 |
thank you for your attention; but my friends also have this problem in parallel mode and i observed other member of this site faced this problem; but the only thing i learned was that i should modify my udf to compile in parallel mode.but i don't know how.
I am waiting for other users who can help me with this problem. thanks in advance |
|
June 23, 2015, 09:58 |
|
#10 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
It is true that you have to modify your code for parallel mode. But that is related to a completely different type of error message then you are getting.
You are getting the warning that the folder is not shared, that has nothing to do with the UDF itself, but with the settings of the system/installation. |
|
June 28, 2015, 05:17 |
|
#11 |
Member
Lida
Join Date: Apr 2015
Posts: 39
Rep Power: 11 |
sorry for my delay in replying. I think the problem is in modifying the UDF and because I tried compiling it in several computers and the result is the same.as I studied I should modify my UDF for parallel processind. but I can't do these modifications. so I really need some one to help me modify my UDF.
I will appreciate if anyone can help me do it. |
|
June 29, 2015, 07:23 |
|
#12 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Practically all functions that compile in serial mode will also compile in parallel mode. And the ones that don't, give a very different error message than the one you got.
But they may give wrong results if you don't modify them for parallel use. If you want to solve this problem, solve your installation, because that is the cause of the problem. The UDF code is not the problem. "Warning: The current working directory d:\lida\tez\cfd\run\par-udf is not shared!" See, this is the problem! Not the code, but the settings of the system. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for degassing boundary condition | peaker007 | Fluent UDF and Scheme Programming | 5 | November 23, 2015 13:55 |
problem of implementing a new solver with a special boundary condition | huyidao | OpenFOAM Programming & Development | 0 | April 27, 2015 09:24 |
Waterwheel shaped turbine inside a pipe simulation problem | mshahed91 | CFX | 3 | January 10, 2015 12:19 |
[PyFoam] Problems with the new PyFoam release | zfaraday | OpenFOAM Community Contributions | 13 | December 9, 2014 19:58 |
i have some problem in useing UDF for boundary condition | eeman | Fluent UDF and Scheme Programming | 3 | September 19, 2012 03:14 |