CFD Online Logo CFD Online URL
Home > Forums > FLUENT

Setting up the pressure variation due to tornado in a duct(UDF)+animation

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

LinkBack Thread Tools Display Modes
Old   March 3, 2014, 12:59
Smile Setting up the pressure variation due to tornado in a duct(UDF)+animation
New Member
Join Date: Feb 2014
Posts: 28
Rep Power: 3
guillaume1990 is on a distinguished road
Hello everybody!

I need your help if possible. For a project, I have to set the pressure variation due to tornado at the entrance of a duct and observe how far the pressure variation disappears. The problem is I don't understand the results for Contour Static Pressure because I don't see the pressure variation. Moreover, the animation video for static pressure doesn't work. So, I would like to know if you have any suggestion according to what I have done.

I explain each step to be sure I haven’t done any mistakes.

By Workbench:
Rectangular duct-3D: 500 * 500 * 2000 mm Body: Fluid
Outline view->Detail view->Sizing: Use Advanced Size Function set to On: Curvature and Use automatic Tet Inflation set to Program Controlled ->Update Mesh
-Scale: mm
-Pressure-Based; Time Transient
-Energy Off
-Viscous- Standard k-e, Standard Wall Fn
*Boundary Condition:
-Operating condition-> Operating pressure: 0 Pa
-Pressure-inlet: Code UDF for Pressure total Intensity and Hydraulic Diameter: 10% and 500mm. For the pressure variation, I considered that the input pressure is 101325 Pa during 10 seconds then it decreases to 98325 Pa and rises again to 101 325 Pa. This variation lasts 10 seconds. I have put the following code UDF:
#include "udf.h"
DEFINE_PROFILE(pressure_magnitude, t, i)
real pressure_mag;
real the_current_time;
face_t f;

the_current_time = CURRENT_TIME;

if ((the_current_time>=0.0) && (the_current_time<10.))
if ((the_current_time>=10.0) && (the_current_time<20.0))
pressure_mag=125.17*the_current_time*the_current_t ime-3755.2*the_current_time+126628.0;
if ((the_current_time>=20.0))

F_PROFILE(f,t,i) = pressure_mag;
-pressure-outlet: 101325 Pa
*Solution Method:
Non-iterative Time Advancement enabled->Scheme: Fractional Step
*Solution initialization:
Compute from pressure-inlet
*Calculation activities:
-autosave every (time steps): 1 and when the data File is saved, save the case: each time. Append File Name with Time-step
-Create/Edit Solution Animation:
Animation Sequences: 3 because I am not sure what pressure I have to observe. Active Name: Static Pressure When: Time Step, Define->Contours (window 4) Clip to Range enabled. Same thing for Total pressure (window 5) and dynamic pressure (window 6)
*Run Calculation:
-Time Step Size 0.2 s
-Number of Time Steps: 150 because the cycle lasts about 20s. 10 s with 101325 Pa for pressure inlet and 10 s of pressure variation due to tornado.
*Graphic Animation:
-Option: Double Buffering enabled
-Set Active Window to 4-> Apply
-Solution animation Playback->set up. Window 4 active. Static Pressure selected. Nothing is happening when I click on the play button...

So, I would like to know if I have done some mistakes in the steps? I hope it’s not too long to read.
It would be awesome if you have any solution to observe the animation of static pressure for example or if you have any suggestion to observe the pressure variation of tornado and see how far it disappears in a duct.
Thank you very much.

Last edited by guillaume1990; March 3, 2014 at 14:44.
guillaume1990 is offline   Reply With Quote


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
Pressure Inlet VS velocity Inlet difference Mohsin FLUENT 6 January 15, 2015 18:15
Pressure Outlet Guage pressure Mohsin FLUENT 34 January 12, 2012 06:45
Setting outlet Pressure boundary condition using CAFFA code Mukund Pondkule Main CFD Forum 0 March 16, 2011 04:23
Neumann pressure BC and velocity field Antech Main CFD Forum 0 April 25, 2006 02:15
Simple question about pressure variation Rooz Main CFD Forum 3 February 6, 2004 17:24

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