introduction to ansys solver fluenthome.agh.edu.pl/~jaszczur/doc/cfd/l2/fluent(heat...

49
12-1 Introduction to ANSYS SOLVER FLUENT

Upload: others

Post on 16-Mar-2020

32 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

12-1

Introduction to

ANSYS SOLVER

FLUENT

Page 2: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-2

Training Manual Breadth of Technologies

Page 3: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-3

Training Manual Simulation Driven Product Development

Page 4: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-4

Training Manual Windshield Defroster “Optimized” Design

Page 5: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-5

Training Manual How Does CFD Work?

Page 6: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-6

Training Manual Step 1. Define Your Modeling Goals

Page 7: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-7

Training Manual Step 2. Identify the Domain You Will Model

Page 8: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-8

Training Manual Step 3. Create a Solid Model of the Domain

Page 9: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-9

Training Manual Step 4. Design and Create the Mesh

Page 10: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-10

Training Manual Step 5: Set Up the Solver

Page 11: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-11

Training Manual Step 6: Compute the Solution

Page 12: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-12

Training Manual Step 7: Examine the Results

Page 13: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-13

Training Manual Step 8: Consider Revisions to the Model

Page 14: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-14

Training Manual Summary

Page 15: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-15

Training Manual Questions ?

?

Page 16: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

12-16

Lecture

Heat transfer and

Transient computations

Page 17: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-17

Training Manual Introduction to TRANSIENT calculation

Page 18: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-18

Training Manual Motivation

• Nearly all flows in nature are transient!

– Steady-state assumption is possible if we:

• Ignore transient fluctuations

• Employ ensemble/time-averaging to remove unsteadiness (this is what is done in modeling turbulence)

• In CFD, steady-state methods are preferred

– Lower computational cost

– Easier to postprocess and analyze

• Many applications require resolution of transient 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

– transient Heat Transfer – transient heating and cooling

– Many more.

Page 19: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-19

Training Manual Origins of Transient Flow

Page 20: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-20

Training Manual Transient CFD Analysis

• Simulate a transient flow field over a specified time period

– Solution may approach:

• Steady-state solution – Flow variables stop changing with time

• Time-periodic solution – Flow veriables fluctuate with repeating pattern

– Your goal may also be simply to analyze the flow over a prescribed time

interval.

• Free surface flows

• Moving shock waves

• Etc.

• Extract quantities of interest

– Natural frequencies (e.g. Strouhal Number)

– Time-averaged and/or RMS values

– Time-related parameters (e.g. time required to cool a hot solid, residence

time of a pollutant)

– Spectral data – fast Fourier transform (FFT)

Page 21: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-21

Training Manual Unsteady CFD Analysis

Page 22: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-22

Training Manual Transient Flow Modeling Workflow

• Enable the transient solver.

• Set up physical models and boundary conditions as usual.

– Transient boundary conditions are possible – you can use either a UDF or profile to accomplish this.

• Prescribe initial conditions

– Best to use a physically realistic initial condition, such as a steady solution.

• Assign solver settings and configure solution monitors.

• Configure animations and data output/sampling options

• Select time step and max iterations per time step

• Prescribe the number of time steps.

• Run the calculations (Iterate)

Page 23: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-23

Training Manual Calculate example 7

adiabatic

adiabatic

40

0 K

30

0 K

wood

Plate

Tinit=300K

Calculate temperature

after t=100hours

Page 24: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-24

Training Manual Enabling the Transient Solver

• To enable the transient solver, select the Transient button on the General

problem setup form:

• Before performing iterations, you will need to set some additional controls.

– Solver settings

– Animations

– Data export / Autosave options

Page 25: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-25

Training Manual Heat transfer

Page 26: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-26

Training Manual Enabling the Transient Solver

NOW initial conditions

are very important

and became part of solution

Tini=300K

Page 27: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-27

Training Manual Time step size

Page 28: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-28

Training Manual

Page 29: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-29

Training Manual Solution after 100h

Page 30: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-30

Training Manual Initialization

Page 31: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-31

Training Manual Tips for Success in Transient Flow Modeling

Page 32: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-32

Training Manual Summary

Page 33: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-33

Training Manual Selecting the Transient Time Step Size

Page 34: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-34

Training Manual Selecting the Transient Time Step Size

Page 35: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-35

Training Manual Selecting the Transient Time Step Size

Page 36: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-36

Training Manual Transient Flow Modeling Options

• Adaptive Time Stepping

– Automatically adjusts time-step size

based on local truncation error analysis

– Customization possible via UDF

• Time-averaged statistics

– Particularly useful for LES turbulence

calculations

• For the density-based solver, the Courant

number defines:

– The global time step size for density-based

explicit solver.

– The pseudo time step size for density-

based implicit solver

• Real time step size must still be defined in

the Iterate panel

Page 37: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-37

Training Manual Time step size

Page 38: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-38

Training Manual Adaptive time step

Page 39: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-39

Training Manual Information update

Page 40: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-40

Training Manual Solver Control

Page 41: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-41

Training Manual Questions

?

Page 42: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-42

Training Manual Non-iterative Time Advancement

Page 43: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-43

Training Manual

Page 44: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-44

Training Manual

Page 45: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-45

Training Manual Transient Flow Modeling – Animations

• You must set up any animations BEFORE performing iterations.

– Animation frames are written/stored on-the-fly during calculations.

Page 46: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-46

Training Manual Creating Animations – Alternate Method

• Another method in FLUENT is

available which makes use of the

Execute Commands feature.

• Text commands or macros can be

defined which are executed by the

solver at prescribed iteration or

time step intervals.

• This approach is very useful in

creating high-quality animations

of CFD results.

– A command is defined which

generates an animation frame

(contour plot, vector plot, etc.)

and then writes that frame to a

hard copy file.

– Third-party software can then

be used to link the hard copy

files into an animation file

(AVI, MPG, GIF, etc.)

Page 47: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-47

Training Manual Performing Iterations

• The most common time advancement scheme is the iterative scheme.

– The solver converges the current time step and then advances time.

– Time is advanced when Max Iterations/Time Step is reached or convergence criteria are satisfied.

– Time steps are converged sequentially until the Number of Time Steps is reached.

• Solution initialization defines the initial condition and it must be realistic.

– Sets both the initial mass of fluid in the domain and the initial state of the flow field.

• Non-iterative Time Advancement (NITA) is available for faster computation time.

Page 48: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-48

Training Manual Convergence Behavior

• Residual plots for transient simulations are not always indicative of a

converged solution.

• A residual plot for a simple transient calculation is shown here.

• You should select the time step size such that the residuals reduce

by around three orders of magnitude within one time step.

– This will ensure accurate resolution of transient behavior.

Page 49: Introduction to ANSYS SOLVER FLUENThome.agh.edu.pl/~jaszczur/doc/cfd/L2/FLUENT(heat transfer-unsteady).pdf · •Another method in FLUENT is available which makes use of the Execute

Heat transfer &Transient calculation

10-49

Training Manual