|
[Sponsors] |
UDF library loading problem: parallel processing |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 25, 2019, 03:30 |
UDF library loading problem: parallel processing
|
#1 |
New Member
Rishitosh Ranjan
Join Date: Dec 2012
Location: Trichirapalli, Tamilnadu, India
Posts: 22
Rep Power: 13 |
Hii,
here is my udf used for calculating viscosity, which shows following error on loading libudf: UDF: #include "udf.h" #include "math.h" #include "para.h" DEFINE_PROPERTY(cell_viscosity,c,t) { #if !RP_HOST real mu, A, B; real mul=0.00113; real fl=C_LIQF(c,t); //liquid fraction real fs=1-fl; //solid fraction real fscr=0.3; if (fs> fscr) { A= 0.5-pow(M_PI,-1)*atan(100*(fs-fscr)); //14 B= (1-A*(fs/fscr)); mu= mul*pow(B,-2); } else mu= mul; #if RP_NODE mu=PRF_GRSUM1(mu); #endif /* RP_HOST */ #endif /* RP_HOST */ return mu; } Massage after Compiling: Copied E:\rranjan\Phd/E:\rranjan\Phd\prop.c to libudf\src user_nt.udf file is outdated. So, recreating the file for 2ddp_host ... (chdir "libudf\win64\2ddp_host")(system "copy "C:\PROGRA~1\ANSYSI~1\v192\fluent"\fluent19.2.0\sr c\udf\makefile_nt.udf "libudf\win64\2ddp_host\makefile" ") 1 file(s) copied. (chdir "libudf")(chdir "win64\2ddp_host")# Generating ud_io1.h user_nt.udf file is outdated. So, recreating the file for 2ddp_node ... (chdir "libudf\win64\2ddp_node")(system "copy "C:\PROGRA~1\ANSYSI~1\v192\fluent"\fluent19.2.0\sr c\udf\makefile_nt.udf "libudf\win64\2ddp_node\makefile" ") 1 file(s) copied. (chdir "libudf")(chdir "win64\2ddp_node")# Generating ud_io1.h Done. Massage after loading: Opening library "E:\rranjan\Phd\libudf"... Error at host: The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform (win64). The system cannot find the file specified. E:\rranjan\Phd\libudf\win64\2ddp_host\libudf.dll Error at Node 0: The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform (win64). The system cannot find the file specified. E:\rranjan\Phd\libudf\win64\2ddp_node\libudf.dll Error: The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform (win64).\n\nThe system cannot find the file specified. \n\nE:\rranjan\Phd\libudf\win64\2ddp_host\libudf.d ll Error Object: #f can anybody help me in this regard. with best regards, Rishi. |
|
May 26, 2019, 23:39 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
for this code you don't need parallel macros such as
Code:
#if RP_NODE mu=PRF_GRSUM1(mu); #endif /* RP_HOST */ your code simply was not compiled. Make any change in code (print space and delete), than compile. best regards |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problem with compiling boundary condition udf in parallel mode | chem engineer | Fluent UDF and Scheme Programming | 11 | June 29, 2015 07:23 |
Parallel UDF DEFINE_PROPERTY problem | lehoanganh07 | FLUENT | 0 | September 18, 2014 01:42 |
problem to make a UDF parallel | pilou | Fluent UDF and Scheme Programming | 0 | March 9, 2011 07:35 |
Parallel processing problem with Fluent | Harish | FLUENT | 3 | February 8, 2011 10:49 |
fluent UDF external library lapack problem | Rick | FLUENT | 0 | May 7, 2008 11:16 |