Docsity

Motivation for Computational Analysis - Lecture Notes | AE 470, Study notes of Aerospace Engineering

Toggle sidebar
bg1
1
1.
Chapter 1 - Introduction
1.1. Motivation for Computational Analysis
1.2. Steps for PDE Simulations
1.3. Programming Guidelines
2
1.
Motivation for Computational Analysis
•Computational analysis plays an increasingly important role in engineering and science
•2 key motivations
– Increase in computational power (see next slides)
– Need to capture increasingly complex phenomena
• Complex partial differential equation (PDE): nonlinear
• Complex geometry
• Complex boundary conditions: contact, impact
• Complex material/fluid model: plasticity, viscoelasticity, non-Newtonian fluid
• Stochastic equations: fracture of brittle materials, turbulence, genetics
• Coupled fields: thermo-plasticity, aero-elasticity, magneto-hydrodynamics, …
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download Motivation for Computational Analysis - Lecture Notes | AE 470 and more Study notes Aerospace Engineering in PDF only on Docsity!

Chapter 1 - Introduction

1.1. Motivation for Computational Analysis

1.2. Steps for PDE Simulations

1.3. Programming Guidelines

Motivation for Computational Analysis

  • Computational analysis plays an increasingly important role in engineering and science
  • 2 key motivations
    • Increase in computational power (see next slides)
    • Need to capture increasingly complex phenomena
      • Complex partial differential equation (PDE): nonlinear
      • Complex geometry
      • Complex boundary conditions: contact, impact
      • Complex material/fluid model: plasticity, viscoelasticity, non-Newtonian fluid
      • Stochastic equations: fracture of brittle materials, turbulence, genetics
      • Coupled fields: thermo-plasticity, aero-elasticity, magneto-hydrodynamics, …

Motivation for Computational Analysis

  • Aerospace Engineering
    • Key applications
      • Computational solid mechanics (CSM)
      • Computational fluid dynamics (CFD)
      • Computational aeroelasticity
      • Spacecraft trajectory optimization
      • Aircraft dynamics and controls
    • Key numerical methods
      • Finite difference method (FDM)
      • Finite element method (FEM)
      • Finite volume method (FVM)
      • Optimization methods

The speed of digital computers has increased by more than a trillion times during the last five decades. The exponential increase in speed (measured in flops) has continued at a steady pace even though the underlying hardware technology and the supercomputer architecture has undergone major shifts.

Increased Computational Power

1.1. Motivation

Defense application:

Plate impact (from www.abaqus.com)

1.1. Motivation

The analysis of the Embraer ERJ-135 commuter jet confirmed the viability of the design under a wide range of conditions.

1.1. Motivation

Aerospace CFD application:

(from Fluent, Inc.)

Total pressure at the scoop inlet of the jet engine

Static pressure over the right engine of the ERJ-145 (^) Velocity vectors colored by velocity magnitude in a slice through the engine nacelle of the ERJ-

1.1. Motivation

Aerospace CFD application:

(from Fluent, Inc.)

Passenger comfort is the aim of vehicle climate control. A computational model of the interior of the vehicle yields comfort indicators that allow the design to be improved

1.1. Motivation Automotive CFD application:

Vehicle interior modeling (from Fluent, Inc.)

Closed-form vs. numerical solution

Question : When is a numerical solution preferable to a closed-form solution (and vice- versa)?

ADVANTAGES DISADVANTAGES

ANALYTICAL generality simplifications simplicity (geometry, material,…) NUMERICAL few simplifications one set of variables can be messy and wrong!

  • analytical solution
    • for reference (to check numerics!)
    • to give an idea
    • to capture the important (first-order) effects
  • numerical solution
    • to capture details and complexity absent in analytical solution

1.1. Motivation

Chapter 1 - Introduction

1.1. Motivation for Computational Analysis

1.2. Steps for PDE Simulations

1.3. Programming Guidelines

1.2 Steps for PDE Simulations

Five major steps

  1. Write the governing equations for the system (select relevant physics)
  2. Discretize the system (convert calculus to algebra)
  3. Arrange the resulting equations as Au = b (form as a linear system)
  4. Determine character of the system > determine best method of solution
  5. Solve for unknowns u (compute solution)

First Step: problems of entirely different physical backgrounds may have similar governing equations , and thus same steps 2- e.g. Laplace and Poisson equations

1.2. Steps for PDEs

∂^2 ψ ∂ x^2

(^2) ψ ∂ y^2

= 2 μθ beam torsion with anugular twist

∂^2 φ ∂ x^2

(^2) φ ∂ y^2

= −Ω incompressible flow with vorticity

∂^2 T ∂ x^2

2 T

∂ y^2

= − Q

κ

heat transfer with energy source Q

Governing Equations

First Step : Pick appropriate governing equations, boundary conditions, initial conditions to capture the physical phenomena of interest. Example: fluid flow:

Note #1: Viscosity ( μ) may not be Newtonian (e.g., blood flow, de-icing fluid, etc.) or the not well defined (high temperatures, turbulent flows).

Note #2: Continuum assumption may not be correct:

spacecraft may “see” molecular mean free paths of scale of body dimension flow in MEMS devices can have sub-micron features, e.g., micro-fluidics, micro-solid mechanics where phenomena are of order of finite crystal size

1.2. Steps for PDEs

∂^2 φ ∂ x^2 + ∂^2 φ ∂ y^2 = 0 incompressible flow without vorticity ∂^2 φ ∂ x^2 + ∂^2 φ ∂ y^2 = −Ω incompressible flow with vorticity ∂^2 ω ∂ x^2 + ∂^2 ω ∂ y^2 = −∂ω ∂ t unsteady incompressible flow with vorticity

ρ u ∂ u ∂ x +ρ v ∂ v ∂ x = −∂ p ∂ x +μ ∂

(^2) u ∂ x^2

(^2) u ∂ y^2

⎟ steady viscous flow

ρ u ∂ u ∂ x +ρ v ∂ v ∂ x = −∂ p ∂ x + (μ + μ turb ) ∂

(^2) u ∂ x^2

(^2) u ∂ y^2

⎟ turbulent viscous flow

Forming a (Quasi-)Linear System

Third Step : Assemble our discretized equations, e.g. as a linear system, i.e., Au=b where the unknowns can be the temperatures at each node e.g., u T^ = [T 1 , T 2 , …. Tn ]

Converting all the discretized equations (e.g. [Ti+1 - 2Ti + Ti-1] /( Δ x^2 ) = -Q/ κ ), BC and IC into Au=b referred to as “assembly”.

In some cases, we have non-linear systems, e.g., , which can be linearized such that b ( u ) is assumed held constant for each iteration.

We can also have different sets of governing equations for different regions:

viscous flow close to wing surface and inviscid flow at other locations fluid/structure (aeroelastic) interaction Solution: Solve simultaneous (fully coupled) Iterate between systems (loosely coupled)

1.2. Steps for PDEs

ρ u ∂ u ∂ x = −∂ p ∂ x

Determine System Characteristics/Solution Technique

Fourth Step : Consider the nature/character of resulting matrix problem

  • Based on nature of A (stiffness matrix)
  • Strongly affects solution method and total computing time
  • Affected by three preceding steps
  • But can often be analyzed independently of those steps, e.g., diagonal dominance or vector independence

Note #1: Brute force vs. elegant solution schemes (See Chapter 3)

Note #2: Sometimes assembling A not needed (useful for very large systems)

1.2. Steps for PDEs

Write and Run Computer Code

Fifth Step : Now “simply” code up and run (and debug and run and debug and run....).

If iterative solution scheme, e.g., non-linear systems or stiff linear systems, some criteria for convergence must be used. Overall uncertainty associated with a) governing equation assumptions b) discretization c) convergence properties

Other issue when designing code: Computer hardware: serial, vector and parallel computers. E.g., massively parallel systems with local memory and instruction are most efficient when most of the computations are local and do not require a lot of memory passage between nodes.

1.2. Steps for PDEs

Summary: Steps for PDE simulation

First Step : Governing equations, classification, and boundary conditions

in x domain, T =100 at x edge

Second Step : Discretization

[Ti+1 - 2Ti + Ti-1] /( Δ x^2 ) = -Q/ κ

Third Step : Forming linear system

Au=b

Fourth Step : Determine system characteristics/solution technique

cond( A ), direct vs. iterative solution, etc.,

Fifth Step : Write and run code

Obtain u

1.2. Steps for PDEs

Chapters 4 and 5 emphasis

Chapter 3 emphasis

d^2 T dx^2

= − Q

κ

Programming Guidelines

  1. Simplify logic of algorithm and use subroutines

  2. Design, write and debug code with incremental (10 line increment) approach

  3. Use lots of comment lines for each major step

  • Code description
  • Nomenclature of main variable
  • Loop and line-level comments
  1. Use meaningful variable names E.g. Not ‘aa=3’ but ‘ElementArea=3’

1.3. Programming Guides