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

Urgent Help Needed!!! (regarding FLUENT UDF)

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 27, 2010, 23:21
Default Urgent Help Needed!!! (regarding FLUENT UDF)
  #1
New Member
 
Deb
Join Date: Apr 2010
Posts: 1
Rep Power: 0
dsen is on a distinguished road
Hi

I am a student in Virginia. I am really struggling with a simulation, and would request any help!!
Thanks in advance.

I am simulating a 2D problem. In my rectangular domain, I have a fluid. I need to move a heat flux along a straight line in the domain. Due to this heat flux, the temperature of the fluid will change, and I will get my desired temp profile. Please note, that the heat flux is constant with time, but NOT with position - i.e. heat flux = q = C*exp(-(x^2 + y^2)), where C is any numerical constant.

I tried using F_CENTROID to get the position, but the problem is which macro to use to define the heat flux. with DEFINE_PROFILE I can give such profiles at the boundaries(walls), but how do I give this heat flux in the medium???

PLEASE HELP!
looking for assistance in how to set up problem, and how to write the UDF!!!

Thanks
DSen
dsen is offline   Reply With Quote

Old   May 27, 2010, 05:41
Question Have you solved it??
  #2
New Member
 
C Palani Kumar
Join Date: Nov 2009
Posts: 4
Rep Power: 17
gurupalani is on a distinguished road
Hi Dsen,
Just saw your thread. So, what happened with your simulations? Have you solved it?

You need to use DEFINE_PROFILE macro itself. I don't think any other macro will do the trick. I didn't completely understand your domain. Can you elaborate a little bit?

Palani.
gurupalani is offline   Reply With Quote

Old   May 28, 2010, 14:36
Default
  #3
Member
 
Allan Walsh
Join Date: Mar 2009
Posts: 56
Rep Power: 17
Allan Walsh is on a distinguished road
Unless you really want to learn how to write UDF's, I would recommend that you take another approach. For a beginner, just to set-up your computer to run a simple UDF, and then implement it, without a lot of testing, you should probably budget at least a week.
A simpler method would be to designate a separate fluid zone in your domain to represent the straight line with the heat flux. (Yes, the zone would have some finite thickness, but modeling is all about discretizing things that are continuous). Actually, the fluid zone representing the straight line would have many separate sub-zones and you can go in in Fluent and set the heat flux (or heat generation) in each of the subzones according to your heat flux formula. Good Luck.
Allan Walsh is offline   Reply With Quote

Reply

Tags
fluent, heat flux, moving heat flux, udf

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
fluent UDF on linux machine Min-Hua Wang Fluent UDF and Scheme Programming 6 June 29, 2013 09:41
Please, Help with linking UDF precompiled outside fluent to fluent!!! gracerlima Fluent UDF and Scheme Programming 1 May 4, 2010 08:19
Parallel Fluent +UDF Jack Martinez FLUENT 0 June 28, 2007 12:19
UDF of Zimont model in fluent Z Main CFD Forum 0 February 17, 2005 04:07
URGENT ! UDF ERROR! Prateep Chatterjee FLUENT 6 October 16, 2001 20:20


All times are GMT -4. The time now is 14:44.