|
[Sponsors] |
January 6, 2017, 06:04 |
my udf problem!!!
|
#1 |
Senior Member
mohammad
Join Date: Sep 2015
Posts: 281
Rep Power: 12 |
Hello everybody
I want to compile my udf in fluent. the udf is is a simple parabolic velocity profile in pipe and inlet. as shown below: Code:
/*********************************************************************** udfexample.c UDF for specifying steady-state velocity profile boundary condition ************************************************************************/ #include "udf.h" DEFINE_PROFILE(inlet_x_velocity, thread, position) { real x[ND_ND]; /* this will hold the position vector */ real y, h; face_t f; h = 0.186; /* inlet height in m */ begin_f_loop(f,thread) { F_CENTROID(x, f, thread); y = 2.*(x[1]-0.5*h)/h; /* non-dimensional y coordinate */ F_PROFILE(f, thread, position) = 1*(1.0-y*y); } end_f_loop(f, thread) } build: Code:
Copied E:\project urbulence\p-2\PROJ_files\dp0\FLU\Fluent/E:\project urbulence\p-2\PROJ_files\dp0\FLU\Fluent\inlet_x_velocity.c to libudf\src user_nt.udf file is outdated. So, recreating the file for 2d ... (chdir "libudf\win64\2d")(system "copy "C:\PROGRA~1\ANSYSI~1\v162\fluent"\fluent16.2.0\src\udf\makefile_nt.udf "libudf\win64\2d\makefile" ") 1 file(s) copied. (chdir "libudf")(chdir "win64\2d")# Generating ud_io1.h inlet_x_velocity.c # Generating udf_names.c because of makefile inlet_x_velocity.obj udf_names.c # Linking libudf.dll because of makefile user_nt.udf udf_names.obj inlet_x_velocity.obj Microsoft (R) Incremental Linker Version 12.00.21005.1 Copyright (C) Microsoft Corporation. All rights reserved. Creating library libudf.lib and object libudf.exp Done. Code:
Opening library "E:\project\turbulence\p-2\PROJ_files\dp0\FLU\Fluent\libudf"... Error: Error code: 193 Error: Error code: 193 Error Object: #f in build: Code:
Copied E:\project urbulence\p-2\PROJ_files\dp0\FLU\Fluent/E:\project urbulence\p-2\PROJ_files\dp0\FLU\Fluent\inlet_x_velocity.c to libudf\src Creating user_nt.udf file for 2d ... (system "copy "C:\PROGRA~1\ANSYSI~1\v162\fluent"\fluent16.2.0\src\udf\makefile_nt.udf "libudf\win64\2d\makefile" ") 1 file(s) copied. (chdir "libudf")(chdir "win64\2d")# Generating ud_io1.h inlet_x_velocity.c C:\PROGRA~1\ANSYSI~1\v162\fluent\fluent16.2.0\src\main\global.h(9) : fatal error C1083: Cannot open include file: 'stdio.h': Invalid argument Done. Code:
Opening library "E:\project\turbulence\p-2\PROJ_files\dp0\FLU\Fluent\libudf"... Error: The UDF library you are trying to load (libudf) is not compiled for 2d on the current platform (win64). The system cannot find the file specified. E:\project\turbulence\p-2\PROJ_files\dp0\FLU\Fluent\libudf\win64\2d\libudf.dll Error: The UDF library you are trying to load (libudf) is not compiled for 2d on the current platform (win64). The system cannot find the file specified. E:\project urbulence\p-2\PROJ_files\dp0\FLU\Fluent\libudf\win64\2d\libudf.dll Error Object: #f thanks guys |
|
January 6, 2017, 14:44 |
|
#2 |
Senior Member
mohammad
Join Date: Sep 2015
Posts: 281
Rep Power: 12 |
and no answer yet???!!!
|
|
January 10, 2017, 13:20 |
|
#3 |
Member
Join Date: Sep 2016
Posts: 33
Rep Power: 10 |
maybe your microsoft visual studio version is too old...try to download the 2013...(have you add the enviromental variables?)
|
|
January 10, 2017, 13:23 |
Solved
|
#4 |
Senior Member
mohammad
Join Date: Sep 2015
Posts: 281
Rep Power: 12 |
Thanks a lot
Finally o have solved my problem. I am using microsoft windows sdk 7 so i link it to my visual studio 2008 in its configuration tools. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM | Rizwan | Fluent UDF and Scheme Programming | 40 | March 18, 2018 07:05 |
Problem with DPM simulation with particles injection and EXECUTE_AT_THE_END UDF. | Ari | Fluent UDF and Scheme Programming | 4 | May 31, 2016 09:51 |
udf loading problem | santu | Fluent UDF and Scheme Programming | 1 | May 22, 2015 16:47 |
Vaporization pressure UDF property problem? | lehoanganh07 | Fluent UDF and Scheme Programming | 1 | September 13, 2014 11:59 |
Problem with my udf | july | Fluent UDF and Scheme Programming | 3 | June 20, 2010 07:56 |