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

Profile temperature

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 13, 2011, 05:39
Default Profile temperature
  #1
New Member
 
Chahinez
Join Date: Apr 2011
Posts: 4
Rep Power: 15
chany is on a distinguished road
Hi everybody,

I have a square geometry with imposed heat flux (1000 w/m²) at north and south faces and velocity inlet (25m/s, 300K) and outflow at est and west. I want to use UDFs to define periodic phenomenon. Actually, for every iteration, I want to take velocity and temperature profiles at outflow and imposed them to velocity inlet. But i don't know how to read velocity and temperature profiles for being able to manipulated them.

Thanks

Last edited by chany; April 13, 2011 at 07:32.
chany is offline   Reply With Quote

Old   April 13, 2011, 06:06
Thumbs up
  #2
New Member
 
Ján
Join Date: Mar 2010
Location: Slovakia
Posts: 24
Rep Power: 16
argeus is on a distinguished road
I usually use this: /cell variables accessing for instance/

UDF for data access:

DEFINE_PROFILE(my_profile, thread, index)
{
real x[ND_ND];
real y;
cell_t c;
int ID = ?; //outflow ID
Thread *tf;

Domain *domain;
domain = Get_Domain(1);
tf = Lookup_Thread(domain,ID);

if (! Data_Valid_P())
return;

begin_c_loop(c, thread)
{
F_CENTROID(x, c, thread);
y = x[1];

C_U = C_T(c,tf); // example for "u" direction, check UDF manual

F_PROFILE(c, thread, index) = ?; //setting outflow
}
end_c_loop(c,thread)
}

DEFINE_PROFILE(my_velocity, thread, index) //profile for velocity inlet
{
.
.
.
argeus is offline   Reply With Quote

Old   April 13, 2011, 07:35
Default
  #3
New Member
 
Chahinez
Join Date: Apr 2011
Posts: 4
Rep Power: 15
chany is on a distinguished road
Thanks a lot argeus, I'll try this method, hope that it will solve my problem!
chany is offline   Reply With Quote

Old   April 13, 2011, 09:39
Default
  #4
New Member
 
Chahinez
Join Date: Apr 2011
Posts: 4
Rep Power: 15
chany is on a distinguished road
Please, I want to let fluent do calculations without UDF, and after some iterations (100 iterations for example), fluent begins to use my UDF.
The program of "argeux" has wored very good for field velocity, but for temperature, I have some problems.
chany is offline   Reply With Quote

Old   April 14, 2011, 04:14
Default
  #5
New Member
 
Ján
Join Date: Mar 2010
Location: Slovakia
Posts: 24
Rep Power: 16
argeus is on a distinguished road
You can run the simulation without UDF, and the after a few iterations interpret UDF anyway, I guess. What kind of problems do you have with temperature? Using heat transfer you need to have a fine mesh on the walls. Use boundary layers.
argeus is offline   Reply With Quote

Reply

Tags
udf read profile


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
Please Help! Temperature profile UDF for 3D geometry subhankar_bhandari FLUENT 0 August 16, 2010 08:40
Help please! UDF for Temperature profile in 3D subhankar_bhandari Fluent UDF and Scheme Programming 2 August 16, 2010 08:37
how to set temperature profile in atmospheric boundary layer vickrenz FLUENT 0 September 16, 2009 13:26
Temperature profile on an interface Thomas Vanneste FLUENT 0 February 9, 2009 09:06
temperature profile on boundary sivakumar FLUENT 5 November 24, 2002 00:58


All times are GMT -4. The time now is 18:47.