CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent Multiphase

The compiling mistake for a user-defined mixing law for density

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 26, 2014, 12:34
Unhappy The compiling mistake for a user-defined mixing law for density
  #1
New Member
 
Michigan
Join Date: Jan 2013
Posts: 10
Rep Power: 12
lxlxlxt is an unknown quantity at this point
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
lxlxlxt is offline   Reply With Quote

Old   December 9, 2014, 23:44
Default
  #2
New Member
 
wenjue
Join Date: Jul 2014
Posts: 4
Rep Power: 11
wenjue is on a distinguished road
mixture_species_loop_c maybe change by mixture_species_loop??
wenjue is offline   Reply With Quote

Reply

Tags
compile, multiphase, udf, vof


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[General] Paraview User defined view prapanj ParaView 3 January 3, 2014 20:54
user defined sourcen term xck1986 CFX 1 July 8, 2010 08:35
user defined turbulence model manuutin STAR-CD 5 October 14, 2009 05:29
UDF - Derivatives for User Defined Memory Variable Sandilya Garimella FLUENT 0 January 14, 2008 10:39
Error when compiling user fortran Mads Bang CFX 1 October 8, 2002 11:47


All times are GMT -4. The time now is 17:06.