CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   UDF library loading problem: parallel processing (https://www.cfd-online.com/Forums/fluent/217808-udf-library-loading-problem-parallel-processing.html)

rishitosh May 25, 2019 02:30

UDF library loading problem: parallel processing
 
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.

AlexanderZ May 26, 2019 22:39

for this code you don't need parallel macros such as
Code:

#if RP_NODE
mu=PRF_GRSUM1(mu);

#endif /* RP_HOST */

but your problem comes from other thing,
your code simply was not compiled. Make any change in code (print space and delete), than compile.

best regards


All times are GMT -4. The time now is 15:57.