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

compile UDF and attach VISUAL STUDIO 2019 to ANSYS FLUENT 18.2

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 31, 2019, 10:35
Default compile UDF and attach VISUAL STUDIO 2019 to ANSYS FLUENT 18.2
  #1
New Member
 
Christian Colás Hazeu
Join Date: Jul 2019
Posts: 4
Rep Power: 6
ga63sol is on a distinguished road
Hello,

i need to compile a udf.

First of all, i have windows x64, visual studio community 2019 and ansys fluent 18.2.

Is there a step-by-step guideline on how to attach visual studio to ansys so that i can compile and run the udf in fluent? I have attached the .c file underneath.

Thanks in advance!
Attached Files
File Type: c PersonMovement.c (203 Bytes, 26 views)
ga63sol is offline   Reply With Quote

Old   August 1, 2019, 02:08
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 33
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
open VS console, run fluent, in fluent choose your UDF file and compile

best regards
AlexanderZ is offline   Reply With Quote

Old   February 19, 2021, 10:03
Default
  #3
Member
 
Join Date: Jan 2018
Posts: 31
Rep Power: 8
UchihaMadara is on a distinguished road
I guess, the request was to how to compile and debug the udf within VS studio and not from ansys fluent's console.
UchihaMadara is offline   Reply With Quote

Old   February 19, 2021, 14:27
Default
  #4
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
Why do you guess that OP's question was different than what they wrote here?

Are you psychic? If so, please teach me that!
pakk is offline   Reply With Quote

Old   February 19, 2021, 14:45
Default
  #5
Member
 
Join Date: Jan 2018
Posts: 31
Rep Power: 8
UchihaMadara is on a distinguished road
One does not need to be a psychic, the initial question says "attach visual studio to ansys so that i can compile and run the udf in fluent?"


Attach is just interpreted by me as an extension to compile and debug everything within VS so that errors are not on fluent's console but within some IDE , as that would be better, than unloading the UDF / and rebuilding it in fluent.


get my point?
UchihaMadara is offline   Reply With Quote

Old   February 19, 2021, 16:05
Default
  #6
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
No, I don't get your point.

As you quote, the question is how to make it so that they can "compile and run the udf in Fluent". Not about compiling in VS and running in Fluent.

But let me be more helpful. Is it you who has the question how to set up VS such that you can compile and debug in VS? If so, make that clear, maybe somebody can answer! I can't, but I remember another user here was promoting their website with something that could compile UDFs in a more user-friendly way. Maybe they see this question and can help you. If you really have that question...
pakk is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
WILLING TO PAY/ FREELANCER REQUIRED / small UDF coding force loads over body / 6DOF acasas CFD Freelancers 1 January 23, 2015 08:26


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