CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   how to couple my own code with fluent (https://www.cfd-online.com/Forums/fluent/40276-how-couple-my-own-code-fluent.html)

chandu March 23, 2006 03:22

how to couple my own code with fluent
 
hi i wanted to couple my own code with fluent in such a way that the fluent should be able to supply velocity data for every iteration to my code which will be running in parallel with fluent.please do reply to this message as early as possible if anybody knows the answer.

thank you


Lucy March 23, 2006 03:35

Re: how to couple my own code with fluent
 
Have you tried UDF? You can access the fluent solver variables in UDFs


chandu March 23, 2006 07:11

Re: how to couple my own code with fluent
 
thanx for replying lucy, actually i have code(that deals with combustion)in c and iam solving a flow problem(co flow)through a duct in fluent.i wanted to input my ycomponent velocity data that i get from fluent for evey iteration to my code (combustion) .

RoM March 23, 2006 07:48

Re: how to couple my own code with fluent
 
A very simple approach which requires only minor changes to your existing code is to add in interface funtion to your c code. This funtion will take arguments from fluent (y velocity in your case) and pass it to your code. You can then compile your combustion code as dll and call it from fluent.

A small but maybe helpful example for WinXP can be found here

http://www.cfd-online.com/Forum/flue...cgi?read=36290

RoM


All times are GMT -4. The time now is 08:56.