|
[Sponsors] |
The compiling mistake for a user-defined mixing law for density |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 26, 2014, 13:34 |
The compiling mistake for a user-defined mixing law for density
|
#1 |
New Member
Michigan
Join Date: Jan 2013
Posts: 10
Rep Power: 12 |
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 |
|
December 10, 2014, 00:44 |
|
#2 |
New Member
wenjue
Join Date: Jul 2014
Posts: 4
Rep Power: 12 |
mixture_species_loop_c maybe change by mixture_species_loop??
|
|
Tags |
compile, multiphase, udf, vof |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[General] Paraview User defined view | prapanj | ParaView | 3 | January 3, 2014 21:54 |
user defined sourcen term | xck1986 | CFX | 1 | July 8, 2010 09:35 |
user defined turbulence model | manuutin | STAR-CD | 5 | October 14, 2009 06:29 |
UDF - Derivatives for User Defined Memory Variable | Sandilya Garimella | FLUENT | 0 | January 14, 2008 11:39 |
Error when compiling user fortran | Mads Bang | CFX | 1 | October 8, 2002 12:47 |