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

Cannot use more than 1 UDF at the same time ?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 20, 2011, 09:57
Default Cannot use more than 1 UDF at the same time ?
  #1
New Member
 
Join Date: Oct 2011
Posts: 9
Rep Power: 14
Amarant is on a distinguished road
I write UDF, interpret it, hook it, everything works fine.

Than i interpret another UDF in the same case and 1st one disappear.

They can be same type or different type, it always does that. When I interpret an UDF, the one i had interpreted disappear.

Which is pretty problematic since i need UDF to set my boundary conditions and to initialize my flow field.

Is that a problem with FLUENT or am I doing something wrong?
Amarant is offline   Reply With Quote

Old   November 20, 2011, 10:03
Default
  #2
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 22
Amir is on a distinguished road
Hi,

Store all of them in one file then interpret it.

Bests,
__________________
Amir
Amir is offline   Reply With Quote

Old   November 20, 2011, 10:09
Default
  #3
New Member
 
Join Date: Oct 2011
Posts: 9
Rep Power: 14
Amarant is on a distinguished road
Quote:
Originally Posted by Amir View Post
Hi,

Store all of them in one file then interpret it.

Bests,
It is a must to do so or a solution to my problem?

I find it easier to create individual UDF, especially for boundary, interior, initialization and so on.

Thank you for your fast response.
Amarant is offline   Reply With Quote

Old   November 20, 2011, 10:14
Default
  #4
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 22
Amir is on a distinguished road
Quote:
Originally Posted by Amarant View Post
It is a must to do so or a solution to my problem?

I find it easier to create individual UDF, especially for boundary, interior, initialization and so on.

Thank you for your fast response.
If you want to interpret your UDFs, you have to use this procedure but if you compile these UDFs, you could use different files. (I recommend compile mode, its faster and doesn't have any restriction, but you need extra compiler)

Bests,
__________________
Amir
Amir is offline   Reply With Quote

Old   November 20, 2011, 10:20
Default
  #5
New Member
 
Join Date: Oct 2011
Posts: 9
Rep Power: 14
Amarant is on a distinguished road
Quote:
Originally Posted by Amir View Post
If you want to interpret your UDFs, you have to use this procedure but if you compile these UDFs, you could use different files. (I recommend compile mode, its faster and doesn't have any restriction, but you need extra compiler)

Bests,
Didn't know that.

By compiler you mean that i cannot write them in .txt but I need complier such as QT?
Amarant is offline   Reply With Quote

Old   November 20, 2011, 10:31
Default
  #6
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 22
Amir is on a distinguished road
Quote:
Originally Posted by Amarant View Post
Didn't know that.

By compiler you mean that i cannot write them in .txt but I need complier such as QT?
There isn't any different in developing UDFs in both methods in which you need ".c" extension; in interpret mode, you can use internal compiler of FLUENT which has some restrictions in definitions of few classes; indeed, it reduces speed of implementation; on the other hand, there aren't these restrictions with compile method which require visual c++ compiler linked with FLUENT. For this purpose, it's better refer here.

Bests,
__________________
Amir
Amir is offline   Reply With Quote

Old   November 20, 2011, 10:37
Default
  #7
New Member
 
Join Date: Oct 2011
Posts: 9
Rep Power: 14
Amarant is on a distinguished road
Thank you very much, you helped me a lot !
Amarant 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
Orifice Plate with a fully developed flow - Problems with convergence jonmec OpenFOAM Running, Solving & CFD 3 July 28, 2011 06:24
PostChannel maka OpenFOAM Post-Processing 5 July 22, 2009 10:15
DPM UDF particle position using the macro P_POS(p)[i] dm2747 FLUENT 0 April 17, 2009 02:29
Computational time sunnysun OpenFOAM Running, Solving & CFD 5 March 16, 2009 04:32
Availability of previous time level values in UDF ranga sudarsan FLUENT 0 September 1, 2008 10:17


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