Professional Documents
Culture Documents
Chapter 2
An Example Problem !!
Flow of Air in a 2D duct.
Training Manual
Objective: Peform laminar analysis of a relatively slow moving flow and then increase the flow rate dramatically.
Streamlines
The Geometry
Training Manual
This is Duct which has a smooth transition to a larger area. Units of Length - Inches
Inlet length
Inlet height Transition length Outlet height Outlet length
3.0
0.5 1.0 1.0 4.0
Properties - Conditions
Use PSI system of units
Property type is AIR-IN
Training Manual
Conditions
Reference Pressure 14.7 psi Outlet Pressure 0 psi (relative pressure) Default Temperature used : 293K
Flow
Velocity of 10 inch/sec -> RE ~ 424 (laminar) Note in 2D the hydraulic diameter (used in the Reynolds Number) is twice the inlet height
Set Preferences
Training Manual
Training Manual
2 - Choose
1- Add 4 - Close
3 - OK
001312 30 Nov 1999 2-6
Training Manual
Second
X1=4,X2=8 Y1=0,Y2=1 Click OK
Training Manual
Training Manual
Training Manual
Training Manual
2
001312 30 Nov 1999 2-11
Geometry is Finished!!
Area Plot
Training Manual
Line Plot
Boundary Conditions
Use Solid Model Boundary Conditions
Do not require require re-application upon re-meshing
Training Manual
Preprocessor>Loads>Apply>Velocity> Lines
Training Manual
Walls
Outlet PRES = 0
Training Manual
1-Lines
3-OK
Remaining Boundaries.
Training Manual
Note that leaving a blank DOES NOT result in a zero condition being applied..
Inlet
Outlet
Training Manual
To prevent display of these symbols: Utility Menu: PlotCtrls>Symbols Choose NONE and OK
Training Manual
Transverse direction
Inlet Region - flow direction Transition - flow direction Outlet - flow direction
12
16 10 18
-3
-2 1 2
Mesh Tool
2 - Choose Lines
1
Training Manual
3 - OK
Training Manual
Training Manual
(Flipped!)
Meshing Step
Use the Mesh Tool
1: Choose Areas
Training Manual
2: Mapped
3: Quad 4: Mesh
PICKER comes up
Pick All
1 3
2
4
5
001312 30 Nov 1999 2-22
Training Manual
Training Manual
FLOTRAN Setup
Training Manual
Execution Control
Choose 50 Global Iterations to Start with
We are not relying on the automatic termination criterion based on problem convergence
Training Manual
OK!
001312 30 Nov 1999 2-26
Fluid Properties
Choose AIR-IN for the property type for Density and Viscosity using scroll down menu.
Training Manual
OK
Training Manual
Flow Environment
Reference Conditions are found as a subset:
Training Manual
FLOTRAN Execution
Done in SOLUTION: Run FLOTRAN
Training Manual
Convergence Monitors
Training Manual
Post-Processing
FLOTRAN Post-Processing is fairly typical of ANSYS
Explicity read in a set of results (not automatically loaded)
Training Manual
Velocity Vectors
Nodal Solution Plots
Solid Color Line Contours
Velocity Vectors
Plot Results>Predefined Vector Plot..OK (Use this for Nodal Solution Plots.)
Training Manual
Vectors - Typical
50 Global Iterations
Training Manual
Training Manual
Choose DOF OK
Training Manual
Results
Training Manual
We cant tell the difference between the velocity vector plots, but it looks like the pressures have changed slightly. We also notice that the Convergence Monitors (Normalized rate of change of each DOF) have leveled off.
This implies solution is slightly oscillatory
We will modify the input slightly, choosing the SUPG (Streamline Upwind Petrov-Galerkin) formulation for the momentum equations
The SUPG algorithm is less diffusive and more accurate (but sometimes less robust) than the default algorithm (MSU Monotone Streamline Upwind Method)
Changing Advection
FLOTRAN Setup > Advection
Training Manual
OK!
Training Manual
Results
We could continue, but you get the idea... Use of SUPG has given enhanced convergence.
Training Manual
We should expect a less diffusive solution, and so the recirculation region may be better defined.
Training Manual
Path Plots
Look at the profile of VX along the outlet
Training Manual
Training Manual
Path plot
Pick the corner nodes OK
Training Manual
Training Manual
Training Manual
And Then...
Training Manual
Some Discussion
Modify the line colors as needed with the Utility Menu
PlotCtrls>Style>Colors>Graphs
Training Manual
Result
Fully developed flow would show the outlet velocity profile as a perfect parabola Therefore, the problem domain could be lengthened to provide room for more flow development
Training Manual
Use the Utility Menu to Look at the bottom of the jobname.pfl file List > Files> Other> (choose jobname.pfl file) Scan to the bottom Mass balance looks good!!! (If you had forgotten to put a No-Slip Boundary condition somewhere, there would be another outlet listed.)
Training Manual
Particle traces are based on the velocity field, not the stream function. For a steady state, perfectly converged problem on a perfect mesh, the streamlines and particle trace plots would be identical. Procedure: Plot Results>Flow Traces
Define trace points with PICKER
Plot Flow Traces Optionally color code trace with the value of a DOF
Trace Points
The points defined on the Working Plane
Ensure, for 3D models, that the WP is correctly located!
Training Manual
The resolution of the trace point location is controlled by the currently set Snap Increment (Working plane controls)
Particle Trace
Color Code According to PRES (or something else!) Note Maximum number of loops allowd
Training Manual
OK
Particle Trace
The maximum number of loops is exceeded in the recirculation region. Close the box
Training Manual
New Analysis
Increase the velocity from 10 to 200 (no other changes)
This makes the Reynolds Number ~8500
Training Manual
This is because the flow is now in the turbulence regime and a laminar solution will be unstable.
Training Manual
Convergence Monitors
Training Manual
Training Manual
Discussion
Training Manual
Note that the maximum value of pressure is no longer at the inlet. It has moved to the outlet !!! Consider Bernoullis equation and note that in our new, higher velocity problem the relative importance of the viscosity has decreased.
The recoverable pressure due to the velocity change now dramatically outweighs the viscous losses.
Training Manual
A Fully developed flow would have the maximum value in the center. This implies we should make the problem domain longer.
Training Manual
New Geometry
Training Manual
Training Manual
Training Manual
Training Manual
Training Manual
Training Manual
The Mesh
Training Manual
Note that the symbols shown are the previously transferred Nodal Boundary Conditions. The solid model boundary conditions dont show up on an element plot.
Execute
Training Manual
Note that if you have not changed the jobname, FLOTRAN will provide a notice to the effect that it has renamed the old results file to jobname.rfo
This occurs because the number of nodes and elements in the case has changed. Other files such as the jobname.pfl are appended to, even though this is a new analysis
Convergence Monitors
Training Manual
Results
Training Manual
Two representations of pressure, the second in the vector mode with 128 contours. Note that the pressure drop, once the flow has recovered, is very small. We expect a good outlet velocity profile.
Recirculation Region
The recirculation region is captured despite the relatively coarse mesh.
Training Manual
Benefits of Extension
Training Manual
The lines are superimposed onto the new velocity vector plot. It is clear that the flow is continuing to develop past the original boundary of the problem.
Old Outlet
Training Manual
Training Manual
The flow is very close to fully developed. The following plot of the transverse velocities at the outlet provides a measure of how close it is. Note the scale. The maximum transverse velocity is 0.11.
End of Problem!