|
[Sponsors] |
October 9, 2015, 21:32 |
UDF Defining in ANSYS FLUENT 16.2 in Win 10
|
#1 |
New Member
Sadegh
Join Date: Oct 2015
Posts: 10
Rep Power: 11 |
I’m trying to use a udf to define viscosity as a function of temperature. First of all I think it’s necessary to say that I’m using ANSYS FLUENT 16.2 x64 on my laptop (win 10 x64) which Microsoft visual studio 14.0 enterprise already has been installed on it, so I tried to solve my problem by searching and reading about similar problems in the WEB but I didn’t find anything which could help me. i have installed Microsoft visual studio and ANSYS (a package of ANSYS products) on the following path:
C:\ANSYS Inc C:\Microsoft Visual Studio 14.0 Also I should mention I have used not only this version of ANSYS FLUENT but also I tried the 6.3.26 version without any trouble (on this OS) but the problem was defining UDF. During performing different tries, I always faced some error messages (for both versions of FLUENT). i tried both ways for defining my UDF file (compile and interpret) for interpret method i received this error: parse error and when i was trying the compile method the following errors were displayed in different cases: ): 'xcopy' is not recognized as an internal or external command, operable program or batch file. Opening library "libudf"... Error: open_udf_library: The system cannot find the file specified. ''nmake' is not recognized as an internal or external command, operable program or batch file. And so on. Every time I solve one of them the next time I face the new one! I'm really confused, i don't know did i mention all necessary things or not? sorry about this long trouble romance!!! i will appreciate if some body help me by giving an answer. Best regards. sadegh Last edited by Sadegh.A; October 14, 2015 at 12:56. Reason: adding new detail about my problem |
|
October 13, 2015, 13:02 |
|
#2 |
New Member
Anwar
Join Date: Nov 2014
Posts: 28
Rep Power: 12 |
Refer to that , it will be helpful
http://http://http//www.cfd-online.c...pile-udfs.html |
|
October 20, 2015, 11:41 |
|
#3 |
Senior Member
Bruno
Join Date: Mar 2009
Location: Brazil
Posts: 277
Rep Power: 21 |
As of Fluent 16.0, all you need is MS Visual Studio 2012 Express (yes, the free version!) or newer. It automatically comes with Windows SDK and Fluent finds it automatically, so no need to open Fluent from an SDK command line.
Much easier! |
|
October 26, 2015, 13:54 |
It's not working again!
|
#4 |
New Member
Sadegh
Join Date: Oct 2015
Posts: 10
Rep Power: 11 |
Thanks guys for your answers.
I have checked again the ways which you have suggested in your guidance. At the beginning of the normal procedure when I tried to build the udf files (Source and Header files) I have faced with a new error which said “fatal error C1014: too many include files: depth = 1024”, here is the complete version of the message which was appeared: ……………………………………………………………………………………………………………………… …… Copied F:\<my working folder>/F:\<my working folder>\udf.c to libudf\src Copied F:\<my working folder>/F:\<my working folder>\udf.h to libudf\src udf_names.c and user_nt.udf files in 3d are upto date. (system "copy "C:\ANSYSI~1\v161\fluent"\fluent16.1.0\src\udf\mak efile_nt.udf "libudf\win64\3d\makefile" ") 1 file(s) copied. (chdir "libudf")(chdir "win64\3d")# Generating ud_io1.h udf.c f:\<my working folder>\libudf\src\udf.h(4): fatal error C1014: too many include files: depth = 1024 Done. ……………………………………………………………………………………………………………………… …… As I had mentioned before I use VS 2015 Enterprise and ANSYS 16 which both of them are x64 version. I tried to find something in the web related to this error in fluent, but I couldn’t find anything. Any help will be appreciated. |
|
January 7, 2016, 12:02 |
|
#5 |
New Member
Giorgio
Join Date: Oct 2015
Posts: 5
Rep Power: 11 |
Hi Sadegh,
I am facing the same problem as yours.. Have you find any solution? I am working with fluent 16.2 on a windows 7 x64. which compiler do I have to use? pls let me know many thanks G |
|
January 27, 2016, 08:44 |
|
#6 |
New Member
Christian
Join Date: Nov 2015
Posts: 14
Rep Power: 11 |
Im having the same problem im using fluent 16.2 and windows 7 x64 i also get the error that nmake is not recognised....
i will try installing MS Visual Studio 2012 Express also the link that 4asino provided is not working anymore it seems. Would be awesome if anyone with the same configuration has a solution for this. |
|
January 27, 2016, 18:10 |
|
#7 |
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 |
Microsoft Visual Studio 2012 Express should work for ANSYS Fluent 16.2, simply run the installer and open ANSYS as normal. The link 4asino provided above is: http://www.cfd-online.com/Forums/blo...pile-udfs.html and is still available (it's a blog post on this website).
|
|
January 28, 2016, 06:47 |
|
#8 |
New Member
Christian
Join Date: Nov 2015
Posts: 14
Rep Power: 11 |
Hello `e`,
thank you for your reply i will try it out in the coming days and post here again if it worked or not ! regards, Christian |
|
January 28, 2016, 17:22 |
|
#9 |
New Member
Christian
Join Date: Nov 2015
Posts: 14
Rep Power: 11 |
well that was easy with Microsoft visual basic express 2012 and fluent 16.2 on windows 7 64bit edition it worked thank you very much !
|
|
September 7, 2016, 04:48 |
|
#10 |
Senior Member
Join Date: Jun 2014
Location: Taiwan
Posts: 100
Rep Power: 12 |
Hi~
I want to ask that if I installed Visual Studio Express, how do I setup the environment variables in the control panel? |
|
September 10, 2016, 12:15 |
|
#11 |
New Member
Sadegh
Join Date: Oct 2015
Posts: 10
Rep Power: 11 |
Hi guys
Sorry for my lateness in responding First of all, I should mention I tried to define a udf by any ways which I knew but unfortunately, I couldn’t. so I applied constant properties for my specified fluids. But some of you asked about defining variables, here there is an important point which should be noted: after any change about their values, if you couldn’t solve your problem, reset you changes. During my searches I find some useful information which I give you their links (I really appreciate those guys who helped me ) http://www.cfd-online.com/Forums/flu...fs-fluent.html http://www.cfd-online.com/Forums/flu...ugh-nmake.html http://www.cfd-online.com/Forums/flu...uent-12-a.html http://www.cfd-online.com/Forums/flu...e-problem.html wish the best come true to all of you!!! |
|
February 15, 2017, 15:45 |
im gone be crazy
|
#12 |
New Member
betoche
Join Date: Jun 2016
Posts: 5
Rep Power: 10 |
thanks guy. but unfortunately i couldn't sussed load any compiler.
i use fluent 16. windows 7 64bit and visual studio 2012 pro. can anyone show it with photo step by step from begin to end? im gone be crazy |
|
Tags |
ansys fluent 16.2, udf, win10 x64 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for ANSYS Fluent and Runge Kutta Method | cagri.metin.ege | Fluent UDF and Scheme Programming | 3 | January 24, 2020 04:46 |
drag coefficient in ansys fluent 12.0 | krishna | FLUENT | 19 | April 12, 2018 01:49 |
Ansys FLUENT UDF - Velocity profile (of known values) across edge / surface | emmkell | Fluent UDF and Scheme Programming | 2 | October 21, 2011 14:12 |
Ansys FLUENT UDF - Velocity profile (of known values) across edge / surface | emmkell | FLUENT | 0 | October 20, 2011 08:37 |
Defining two reactions in ANSYS FLUENT | arashmostaedy | FLUENT | 0 | May 24, 2010 07:32 |