CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent Multiphase (http://www.cfd-online.com/Forums/fluent-multiphase/)
-   -   The compiling mistake for a user-defined mixing law for density (http://www.cfd-online.com/Forums/fluent-multiphase/129016-compiling-mistake-user-defined-mixing-law-density.html)

lxlxlxt January 26, 2014 13:34

The compiling mistake for a user-defined mixing law for density
 
Hi everyone,

I'm getting the following mistake:

Copied C:\Users\linxinti\Desktop\XL\heattransfer-baser/C:\Users\linxinti\Desktop\XL\heattransfer-baser\co_ideal1.c to libc3\src
Copied C:\Users\linxinti\Desktop\XL\heattransfer-baser/C:\Users\linxinti\Desktop\XL\heattransfer-baser\rhochange1.c to libc3\src
Creating user_nt.udf file for 2ddp_host ...
(system "copy "C:\PROGRA~1\ANSYSI~1\v145\fluent"\fluent14.5.0\sr c\makefile_nt.udf "libc3\win64\2ddp_host\makefile" ")
1 file(s) copied.
(chdir "libc3")()
(chdir "win64\2ddp_host")()
# Generating ud_io1.h
co_ideal1.c
rhochange1.c
..\..\src\rhochange1.c(13) : error C2143: syntax error : missing ';' before '{'
Generating Code...
Creating user_nt.udf file for 2ddp_node ...
(system "copy "C:\PROGRA~1\ANSYSI~1\v145\fluent"\fluent14.5.0\sr c\makefile_nt.udf "libc3\win64\2ddp_node\makefile" ")
1 file(s) copied.
(chdir "libc3")()
(chdir "win64\2ddp_node")()
# Generating ud_io1.h
co_ideal1.c
rhochange1.c
..\..\src\rhochange1.c(13) : error C2143: syntax error : missing ';' before '{'
Generating Code...

Done.

Opening library "C:\Users\linxinti\Desktop\XL\heattransfer-baser\libc3"...
Primitive Error at Node 0: The UDF library you are trying to load (libc3) is not compiled for parallel use on the current platform (win64).

The operation completed successfully.

C:\Users\linxinti\Desktop\XL\heattransfer-baser\libc3\win64\2ddp_node\libudf.dll

Error: The UDF library you are trying to load (libc3) is not compiled for parallel use on the current platform (win64).

The operation completed successfully.

However I don't find the mistake in my code, which is as follows:

#include "udf.h"

DEFINE_PROPERTY(rhochange1,c,t)
{
Material *sp;
Property *prop;
real sum = 0.;
real rho;
int i;
mixture_species_loop_c(THREAD_MATERIAL(t),sp,i)
{
prop = (MATERIAL_PROPERTY(sp));
rho = generic_property(c,t,prop,PROP_rho,C_T(c,t));
sum += C_YI(c,t,i)/rho;
}

return 1./sum;
}

Can anyone help me about this? Thanks a lot!

Problem solved. mixture_species_loop_c is not correct. Should be mixture_species_loop

wenjue December 10, 2014 00:44

mixture_species_loop_c maybe change by mixture_species_loop??


All times are GMT -4. The time now is 19:00.