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

Change in velocity w.r.t specefic cell/zone temperature UDF

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 13, 2019, 11:06
Post Change in velocity w.r.t specefic cell/zone temperature UDF
  #1
New Member
 
Hamza Latif Mehr
Join Date: Jul 2019
Posts: 9
Rep Power: 7
hlmehr is on a distinguished road
Hi, i'm currently new at UDF, so apologies. I'll tell you the details:I have the objective:
Change the inlet velocity which depends on the temperature of the specific Area on which flow is directed, as shown in the figure. I have a code which changes velocity with time. i.e

%%%%%%%%%%%%%%%%%%
DEFINE_PROFILE(velocity_magnitude, t, i)
{
real velocity;
real the_current_time;
face_t f;

the_current_time = CURRENT_TIME;

if ((the_current_time>=0) && (the_current_time<10))
{
velocity=3;
}
if ((the_current_time>=10)
{
velocity=1.5;
}
}
%%%%%%%%%%%%
But i want to make a code which changes the velocity as the temperature of the area only on which flow is directed (shown in figure) changes eg if T>20 v=3, T<20 v=1.5.
If anyone can help with this i'll be grateful. Thanks!
Regards
Attached Images
File Type: jpg area.jpg (125.6 KB, 0 views)
hlmehr is offline   Reply With Quote

Reply

Tags
fluent, temperature, udf, velocity

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
Ansys Fluent UDF, Wall Average Temperature Depend On Inlet Velocity ozgeozge Fluent UDF and Scheme Programming 1 April 15, 2019 02:31
UDF for Blasius profile of velocity and temperature heisenmech Fluent UDF and Scheme Programming 0 March 24, 2019 20:04
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 02:27
UDF error - parabolic velocity profile - 3D turbine Zaqie Fluent UDF and Scheme Programming 9 June 25, 2016 20:08
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 10:11


All times are GMT -4. The time now is 00:34.