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

UDF Defining in ANSYS FLUENT 16.2 in Win 10

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By 4asino
  • 1 Post By brunoc

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 9, 2015, 21:32
Default UDF Defining in ANSYS FLUENT 16.2 in Win 10
  #1
New Member
 
Sadegh
Join Date: Oct 2015
Posts: 10
Rep Power: 11
Sadegh.A is on a distinguished road
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
Sadegh.A is offline   Reply With Quote

Old   October 13, 2015, 13:02
Default
  #2
New Member
 
Anwar
Join Date: Nov 2014
Posts: 28
Rep Power: 12
4asino is on a distinguished road
Refer to that , it will be helpful
http://http://http//www.cfd-online.c...pile-udfs.html
Sadegh.A likes this.
4asino is offline   Reply With Quote

Old   October 20, 2015, 11:41
Default
  #3
Senior Member
 
Bruno
Join Date: Mar 2009
Location: Brazil
Posts: 277
Rep Power: 21
brunoc is on a distinguished road
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!
Sadegh.A likes this.
brunoc is offline   Reply With Quote

Old   October 26, 2015, 13:54
Unhappy It's not working again!
  #4
New Member
 
Sadegh
Join Date: Oct 2015
Posts: 10
Rep Power: 11
Sadegh.A is on a distinguished road
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.
Sadegh.A is offline   Reply With Quote

Old   January 7, 2016, 12:02
Default
  #5
New Member
 
Giorgio
Join Date: Oct 2015
Posts: 5
Rep Power: 11
gigivmasche is on a distinguished road
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
gigivmasche is offline   Reply With Quote

Old   January 27, 2016, 08:44
Default
  #6
New Member
 
Christian
Join Date: Nov 2015
Posts: 14
Rep Power: 11
Iggy_LR is on a distinguished road
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.
Iggy_LR is offline   Reply With Quote

Old   January 27, 2016, 18:10
Default
  #7
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
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).
`e` is offline   Reply With Quote

Old   January 28, 2016, 06:47
Default
  #8
New Member
 
Christian
Join Date: Nov 2015
Posts: 14
Rep Power: 11
Iggy_LR is on a distinguished road
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
Iggy_LR is offline   Reply With Quote

Old   January 28, 2016, 17:22
Default
  #9
New Member
 
Christian
Join Date: Nov 2015
Posts: 14
Rep Power: 11
Iggy_LR is on a distinguished road
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 !
Iggy_LR is offline   Reply With Quote

Old   September 7, 2016, 04:48
Default
  #10
Senior Member
 
Join Date: Jun 2014
Location: Taiwan
Posts: 100
Rep Power: 12
SJSW is on a distinguished road
Hi~
I want to ask that if I installed Visual Studio Express, how do I setup the environment variables in the control panel?
SJSW is offline   Reply With Quote

Old   September 10, 2016, 12:15
Default
  #11
New Member
 
Sadegh
Join Date: Oct 2015
Posts: 10
Rep Power: 11
Sadegh.A is on a distinguished road
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!!!
Sadegh.A is offline   Reply With Quote

Old   February 15, 2017, 15:45
Default im gone be crazy
  #12
New Member
 
betoche
Join Date: Jun 2016
Posts: 5
Rep Power: 10
hesam267 is on a distinguished road
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
hesam267 is offline   Reply With Quote

Reply

Tags
ansys fluent 16.2, udf, win10 x64


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
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


All times are GMT -4. The time now is 11:42.