|
[Sponsors] |
problem with compiling boundary condition udf in parallel mode |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 23, 2015, 06: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) } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for degassing boundary condition | peaker007 | Fluent UDF and Scheme Programming | 5 | November 23, 2015 12:55 |
problem of implementing a new solver with a special boundary condition | huyidao | OpenFOAM Programming & Development | 0 | April 27, 2015 08:24 |
Waterwheel shaped turbine inside a pipe simulation problem | mshahed91 | CFX | 3 | January 10, 2015 11:19 |
[PyFoam] Problems with the new PyFoam release | zfaraday | OpenFOAM Community Contributions | 13 | December 9, 2014 18:58 |
i have some problem in useing UDF for boundary condition | eeman | Fluent UDF and Scheme Programming | 3 | September 19, 2012 02:14 |