Fluent GetStart2 19.0 L10.1 Transient
Fluent GetStart2 19.0 L10.1 Transient
0 Release
1 © ANSYS, Inc.
Introduction
Lecture Theme:
Performing a transient calculation is in some was similar to performing a steady state
calculation, but there are additional considerations. More data is generated and extra inputs
are required. This lecture will explain these inputs and describe transient data postprocessing
Learning Aims:
You will learn:
• How to set up and run transient calculations in Fluent
• How to choose the appropriate time step size for your calculation
• How to postprocess transient data and make animations
Learning Objectives:
Transient flow calculations are becoming increasingly common due to advances in high
performance computing (HPC) and reductions in hardware costs. You will understand what
transient calculations involve and be able to perform them with confidence.
Introduction Unsteady Flow Time Step Setup Summary
2 © ANSYS, Inc.
Motivation
Nearly all flows in nature are unsteady!
• Steady-state assumption is possible if we:
– Ignore unsteady fluctuations
– Employ ensemble/time-averaging to remove unsteadiness
• this is what is done in modeling RANS turbulence
In CFD, steady-state methods are preferred
• Lower computational cost
• Easier to post-process and analyze
Many applications require resolution of unsteady flow:
• Aerodynamics (aircraft, land vehicles, etc.) – vortex shedding
• Rotating Machinery – rotor/stator interaction, stall, surge
• Multiphase Flows – free surfaces, bubble dynamics
• Deforming Domains – in-cylinder combustion, store separation
• Unsteady Heat Transfer – transient heating and cooling
• Many more …
3 © ANSYS, Inc.
Origins of Unsteady Flow
• Natural unsteadiness
– Unsteady flow due to growth of instabilities within the fluid or a non-equilibrium initial fluid state
– Examples: natural convection flows, turbulent eddies of all scales, fluid waves (gravity waves,
shock waves)
• Forced unsteadiness
– Time-dependent boundary conditions, source terms drive the unsteady flow field
– Examples: pulsing flow in a nozzle, rotor-stator interaction in a turbine stage
4 © ANSYS, Inc.
Unsteady CFD Analysis
5 © ANSYS, Inc.
Unsteady CFD Analysis
2 4 6 8 10 12 14 16 18 20
Time (seconds)
Several iterations per time step
Introduction Unsteady Flow Time Step Setup Summary
6 © ANSYS, Inc.
Selecting the Transient Time Step Size
t
Time
7 © ANSYS, Inc.
Convergence Behavior
8 © ANSYS, Inc.
Selecting the Transient Time Step Size
• … and it must be small enough to maintain solver stability
– The quantity of interest may be changing very slowly (e.g. temperature in a solid),
but you may not be able to use a large time step if other quantities (e.g. velocity)
have smaller timescales
9 © ANSYS, Inc.
Selecting the Transient Time Step Size
L2
• Conduction in solids : t
.Cp
10 © ANSYS, Inc.
Transient Flow Modeling Workflow
11 © ANSYS, Inc.
Enabling the Transient Solver
• To enable the unsteady solver, choose Transient in the Solver group of the
Setting Up Physics tab in the ribbon
12 © ANSYS, Inc.
Set Up Time Step Size
13 © ANSYS, Inc.
Solution Methods for Transient Simulation
14 © ANSYS, Inc.
Initialization
• Physically realistic initial conditions should be
used
– A converged steady state solution is often used as the
starting point
• If a transient simulation is started from an
Residuals
approximate initial guess, the initial transient
results will not be accurate
– The first few time steps may not converge
– A smaller time step may be needed initially to maintain
solver stability
– For cyclic behavior the first few cycles can be ignored
until a repeatable pattern is obtained 2 4 6 8 10 12 14 16
Time (seconds)
Introduction Unsteady Flow Time Step Setup Summary
15 © ANSYS, Inc.
Tips for Success in Transient Flow Modeling
16 © ANSYS, Inc.
Summary
17 © ANSYS, Inc.
Appendix
18 © ANSYS, Inc.
It is generally not intended for the instructor to present material in the
appendix.
19 © ANSYS, Inc.
Non-iterative Time Advancement
• Non-iterative Time Advancement
(NITA) is available for faster
computation time
– NITA runs about 2x to 10x as fast as ITA scheme
20 © ANSYS, Inc.
Non-iterative Time Advancement
ITA NITA
21 © ANSYS, Inc.
Unsteady Flow Modeling Options
• Adaptive Time Stepping
– Automatically adjusts time-step size
based on local truncation error analysis
– Customization possible via UDF
• Extrapolate Variables
– Speed up the transient solution by reducing required sub-iteration
• Using Taylor series expansion solution will be extrapolated to
the next time level to improve the predicted initial value
22 © ANSYS, Inc.
Unsteady Flow Modeling – Animations
• Another method in Fluent is available
which makes use of the Execute
Commands feature
23 © ANSYS, Inc.
Unsteady Flow Modeling – Animations
You must set up any animations BEFORE performing iterations
• Animation frames are written/stored on-the-fly during calculations
24 © ANSYS, Inc.
CFD-Post: Dynamic Text Objects
25 © ANSYS, Inc.
CFD-Post: Typical Keyframe Animation Procedure
1. Timestep Selector load the first time step
2. Create necessary plots and position the view
3. Create the first Keyframe
4. Load the last time step
5. If necessary change the plots and the view
6. Create the second Keyframe
7. Select the first Keyframe and set the # of Frames
• This is the # of Frames in between the first and second
Keyframes
• If we have a total of 100 time steps, then setting # of
Frames to 98 will produce a total of 100 frames (98
plus first, plus last) and therefore 1 frame per time In this example the first and second Keyframes used a
step different view position and the Transparency of the
8. Set the Movie options Plane was changed from 0 to 1. The changes between
Keyframes are interpolated gradually over each
9. Rewind to the first Keyframe and click Play animation frame
26 © ANSYS, Inc.
CFD-Post: Transient Charts
• XY – Transient or Sequence
– Plots an expression (usually Time) versus a
variable at a point locator
– Typically used to show the transient
variation of a variable at a point
• Unless the data from every time step is
saved and loaded into CFD-Post, create
a point surface in Fluent and write the
data at every time step
• If desired, the data in the Fluent
monitor output file can be plotted
in a CFD-Post chart
27 © ANSYS, Inc.
CFD-Post: Fourier Transform
• FT can be applied to signals to extract frequency data
FT of Signal Showing
Dominant Frequency
Original Signal
28 © ANSYS, Inc.
CFD-Post: Timestep Selector
• Transient results can also be post-
processed in CFD-Post.
– You need to instruct Fluent when to export data
(every n time steps)
– Otherwise, by default, Fluent does not write any data
to disk during the solution, and interim results will be
forgotten.
– So in Fluent, under ‘Calculation Activities’, select
‘Autosave’
– In CFD Post, select the last results file, then tick “Load
Complete History as a Single Case”
– The clock icon will open up a window from where you
can select the desired time step
29 © ANSYS, Inc.
Transient Animations in CFD-Post
To create animations:
• Load a transient data set
• Collection of data files saved at regular intervals
in a transient simulation
• Either regular .dat files from autosaving or .cdat
files from automatic export
• .cdat files allow choice of what variables to
saved, reducing i/o time and file size
• Create objects such as vectors or contours
• Select the Timestep icon in the toolbar
• In Timestep Selector, select the Animation icon
• Opens the Animation panel
• Click the play button
• All visible objects will be animated
30 © ANSYS, Inc.