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

Visual C++ and Fluent

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 22, 2016, 09:43
Default Visual C++ and Fluent
  #1
New Member
 
Rafau
Join Date: Aug 2013
Posts: 20
Rep Power: 12
rkadlof is on a distinguished road
Hello everyone!
I have gone through many threads, but I have not found clear solution -.-

Could you describe me step by step what should i do to compile udf's in fluent (not just adding udfs, but setting compiler Visual C++). Should I change sth in udf.bat file etc.?

Ansys 14.5
Windows 7, 64bit

Best Regards
Rafal
rkadlof is offline   Reply With Quote

Old   March 23, 2016, 03:10
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
UDFs for Fluent are written in c. Not in c++. Although historically related, these are different languages, so they use different compilers.
pakk is offline   Reply With Quote

Old   March 23, 2016, 03:17
Default
  #3
New Member
 
Rafau
Join Date: Aug 2013
Posts: 20
Rep Power: 12
rkadlof is on a distinguished road
I know it is in C ;-) I just mentioned for i.e. the compiler Visual C++.
I do not know how to attach a complier to fluent.
rkadlof is offline   Reply With Quote

Old   March 23, 2016, 03:23
Default
  #4
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
Ah excuse me, I assumed that "visual c++" could compile c++, I see I am wrong.

If I google for "how to setup compiler for fluent", I get many explanations. Which one did you try?
pakk is offline   Reply With Quote

Old   March 25, 2016, 10:59
Default
  #5
New Member
 
ami
Join Date: Dec 2015
Posts: 8
Rep Power: 10
Ami24 is on a distinguished road
Hello,

To comiple your UDF, you should go to Define=>User defined=> Fonctions=> Compiled =>Add (select your UDF from Sources files)=> Click on "Build"=> Click on "Load".

I hope it can help you
Ami24 is offline   Reply With Quote

Reply

Tags
visual c++. compiler.


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
Two questions on Fluent UDF Steven Fluent UDF and Scheme Programming 7 March 23, 2018 03:22
problem of running parallel Fluent on linux cluster ivanbuz FLUENT 15 September 23, 2017 19:12
The fluent stopped and errors with "Emergency: received SIGHUP signal" yuyuxuan FLUENT 0 December 3, 2013 22:56
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 09:28
What the differences flow equation of Fluent 6.3 and Fluent 12.1 opehterinar81 FLUENT 0 August 19, 2011 11:55


All times are GMT -4. The time now is 03:05.