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

Plot a graph of velocity & boundary condition problem

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 11, 2009, 11:40
Question Plot a graph of velocity & boundary condition problem
  #1
New Member
 
wanie
Join Date: Nov 2009
Posts: 5
Rep Power: 7
wanie is on a distinguished road
Hi!
I'm new to CFD. I am doing Human Tracheobronchial Airways Flow Model to identify the hotspots for particle deposition in the lungs.
I have a problem on how to plot a graph of velocity against time from our iteration in excel. I ask someone about this and he said that I must identify the main locations to extract velocity data (e.g: create point or surface) using FLUENT coordinate system. But I still do not understand this part and how to do it.
One more, there seems to be some problems with my iteration as it reads "turbulent viscosity limited to viscosity ratio of 1.000000e+005 in 62 cells". There might be some problems in my boundary conditions or conflict with my UDF code.

This is my parameter I set for boundary condition:-
1) Inlet- inlet velocity
-velocity magnitude = 1 m/s
-turbulent intensity = 1 %
-Hydraulic diameter = 0.2 m

2) Outlet- pressure outlet
-gauge pressure = 0
-backflow turbulent intensity = 1 %
-backflow hydraulic diameter = 0.2 m

3) Wall
-no slip condition
-roughness height = 0
-roughness constant = 0.5

and this is my C code for unsteady flow:-

#include "udf.h"

DEFINE_PROFILE(sin_inlet_velocity, thread, position)
{
real x[ND_ND]; /* Position vector */
real y;
face_t f;
real t = CURRENT_TIME; /* Current time of simulation */
begin_f_loop(f, thread) /* Loops over faces in thread */
{
F_CENTROID(x,f,thread); /* Gets centroid of face f */
y = x[1];

t=3;
F_PROFILE(f, thread, position) = 1.84*sin(1.0472*t); /* Profile 1 */

//else (t>=3)
//F_PROFILE(f, thread, position) = 1.84*sin(1.0472*t); /* Profile 2 */

}
end_f_loop(f, thread)

}


I really need someone to help me ASAP. Thanks...

Wanie
wanie is offline   Reply With Quote

Reply

Tags
plot surface, turbulent viscosity, velocity graph

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wind turbine simulation Saturn CFX 34 October 16, 2014 05:27
(Heattransfer) Temperature boundary condition problem suitup OpenFOAM Bugs 15 October 14, 2010 22:18
Transient outlet boundary condition problem jwillie2000 CFX 1 December 7, 2009 18:07
Variables Definition in CFX Solver 5.6 R P CFX 2 October 26, 2004 02:13
a problem with Boundary condition M Rad Main CFD Forum 12 November 27, 1998 13:49


All times are GMT -4. The time now is 20:40.