Additive Manufacturing Module 8

Similar documents
Scientific Computing: An Introductory Survey

Partial Differential Equations

Game Physics. Game and Media Technology Master Program - Utrecht University. Dr. Nicolas Pronost

Tutorial 2. Introduction to numerical schemes

AM 205: lecture 14. Last time: Boundary value problems Today: Numerical solution of PDEs

2.2. Methods for Obtaining FD Expressions. There are several methods, and we will look at a few:

Numerical Methods for PDEs

Soft Bodies. Good approximation for hard ones. approximation breaks when objects break, or deform. Generalization: soft (deformable) bodies

Diffusion / Parabolic Equations. PHY 688: Numerical Methods for (Astro)Physics

Introduction to numerical schemes

Partial differential equations

ME Computational Fluid Mechanics Lecture 5

Lecture 16: Relaxation methods

Applied Mathematics 205. Unit III: Numerical Calculus. Lecturer: Dr. David Knezevic

Module 1: Introduction to Finite Difference Method and Fundamentals of CFD Lecture 1: Finite Difference Method

Method of Lines. Received April 20, 2009; accepted July 9, 2009

PDE Solvers for Fluid Flow

Numerical Methods for Engineers and Scientists

Scientific Computing: An Introductory Survey

Basic Aspects of Discretization

Numerical Solutions to Partial Differential Equations

2.29 Numerical Fluid Mechanics Spring 2015 Lecture 9

Chapter Two: Numerical Methods for Elliptic PDEs. 1 Finite Difference Methods for Elliptic PDEs

Part 1. The diffusion equation

Finite Differences for Differential Equations 28 PART II. Finite Difference Methods for Differential Equations

Partial Differential Equations

Chapter 3. Finite Difference Methods for Hyperbolic Equations Introduction Linear convection 1-D wave equation

INTRODUCTION TO PDEs

First, Second, and Third Order Finite-Volume Schemes for Diffusion

Modeling, Simulating and Rendering Fluids. Thanks to Ron Fediw et al, Jos Stam, Henrik Jensen, Ryan

Numerical methods for the Navier- Stokes equations

Math background. Physics. Simulation. Related phenomena. Frontiers in graphics. Rigid fluids

Table of Contents. II. PDE classification II.1. Motivation and Examples. II.2. Classification. II.3. Well-posedness according to Hadamard

PDEs, part 1: Introduction and elliptic PDEs

Computation Fluid Dynamics

Some notes about PDEs. -Bill Green Nov. 2015

Discretization of PDEs and Tools for the Parallel Solution of the Resulting Systems

Finite Difference Method for PDE. Y V S S Sanyasiraju Professor, Department of Mathematics IIT Madras, Chennai 36

MASSACHUSETTS INSTITUTE OF TECHNOLOGY DEPARTMENT OF MECHANICAL ENGINEERING CAMBRIDGE, MASSACHUSETTS NUMERICAL FLUID MECHANICS FALL 2011

Classification of partial differential equations and their solution characteristics

2.29 Numerical Fluid Mechanics Spring 2015 Lecture 13

Finite Difference Methods for

Lecture Introduction

ECE539 - Advanced Theory of Semiconductors and Semiconductor Devices. Numerical Methods and Simulation / Umberto Ravaioli

Characteristic finite-difference solution Stability of C C (CDS in time/space, explicit): Example: Effective numerical wave numbers and dispersion

Problem Set 4 Issued: Wednesday, March 18, 2015 Due: Wednesday, April 8, 2015

Index. higher order methods, 52 nonlinear, 36 with variable coefficients, 34 Burgers equation, 234 BVP, see boundary value problems

Partial Differential Equations

M.Sc. in Meteorology. Numerical Weather Prediction

Department of Mathematics California State University, Los Angeles Master s Degree Comprehensive Examination in. NUMERICAL ANALYSIS Spring 2015

Code: 101MAT4 101MT4B. Today s topics Finite-difference method in 2D. Poisson equation Wave equation

Introduction to Heat and Mass Transfer. Week 9

Numerical Analysis and Methods for PDE I

Introduction to Partial Differential Equations

Finite Difference Methods (FDMs) 1

Numerical Methods in Geophysics. Introduction

PDEs, part 3: Hyperbolic PDEs

Solution of Differential Equation by Finite Difference Method

MIT (Spring 2014)

Numerical Methods for Partial Differential Equations: an Overview.

Sparse Linear Systems. Iterative Methods for Sparse Linear Systems. Motivation for Studying Sparse Linear Systems. Partial Differential Equations

Chapter 5 Types of Governing Equations. Chapter 5: Governing Equations

Outline. 1 Partial Differential Equations. 2 Numerical Methods for PDEs. 3 Sparse Linear Systems

Numerically Solving Partial Differential Equations

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF MATHEMATICS ACADEMIC YEAR / EVEN SEMESTER QUESTION BANK

Chapter 5. Methods for Solving Elliptic Equations

Boundary Value Problems - Solving 3-D Finite-Difference problems Jacob White

CHAPTER 7 SEVERAL FORMS OF THE EQUATIONS OF MOTION

Finite Difference Methods Assignments

Numerical Solution Techniques in Mechanical and Aerospace Engineering

Chapter 9 Implicit integration, incompressible flows

Marching on the BL equations

Last time: Diffusion - Numerical scheme (FD) Heat equation is dissipative, so why not try Forward Euler:

Basics of Discretization Methods

Beam Propagation Method Solution to the Seminar Tasks

1 Finite difference example: 1D implicit heat equation

Finite difference methods for the diffusion equation

Finite Difference Methods (FDMs) 2

Numerical Solutions to Partial Differential Equations

Open boundary conditions in numerical simulations of unsteady incompressible flow

Index. C 2 ( ), 447 C k [a,b], 37 C0 ( ), 618 ( ), 447 CD 2 CN 2

Finite difference method for elliptic problems: I

Introduction. Finite and Spectral Element Methods Using MATLAB. Second Edition. C. Pozrikidis. University of Massachusetts Amherst, USA

Lecture 9 Approximations of Laplace s Equation, Finite Element Method. Mathématiques appliquées (MATH0504-1) B. Dewals, C.

Partial Differential Equations (PDEs) and the Finite Difference Method (FDM). An introduction

7 Hyperbolic Differential Equations

Theoretical advances. To illustrate our approach, consider the scalar ODE model,

Numerical Methods for PDEs

Introduction to Boundary Value Problems

Solving linear systems (6 lectures)

Advection / Hyperbolic PDEs. PHY 604: Computational Methods in Physics and Astrophysics II

Numerical Solutions to Partial Differential Equations

Partial Differential Equations II

5. FVM discretization and Solution Procedure

LECTURE # 0 BASIC NOTATIONS AND CONCEPTS IN THE THEORY OF PARTIAL DIFFERENTIAL EQUATIONS (PDES)

High-order ADI schemes for convection-diffusion equations with mixed derivative terms

Equations Introduction

Turbulence Modeling I!

Finite Difference Methods for Boundary Value Problems

FREE BOUNDARY PROBLEMS IN FLUID MECHANICS

Transcription:

Additive Manufacturing Module 8 Spring 2015 Wenchao Zhou zhouw@uark.edu (479) 575-7250 The Department of Mechanical Engineering University of Arkansas, Fayetteville 1

Evaluating design https://www.youtube.com/watch?v=p -QbQbntI A design of a motion system motion can be described using kinematic equations when approximated as rigid structures 2

Evaluating design What if your design is deformable structure, involves heat transfer, or fluids 3

Evaluating design Conservation Equations Conservation of Mass Conservation of Energy Conservation of Momentum Partial Differential Equations Describing change in space and time Constitutive Models for Materials Hooke s Law Newtonian Fluid Etc. 4

Evaluating design Even much more basic properties of the solutions to Navier Stokes have never been proven. For the three-dimensional system of equations, and given some initial conditions, mathematicians have not yet proved that smooth solutions always exist, or that if they do exist, they have bounded energy per unit mass. What about higher order, higher dimension PDEs Reality: Most PDEs CANNOT be solved analytically!!! 5

Evaluating design Numerical solutions Discretize and turn PDEs into a system of algebraic equations (mostly linear) Most popular methods Finite difference methods Finite element methods Other methods Finite volume method Boundary element method Discrete element method Spectral method Particle based methods http://en.wikipedia.org/wiki/list_of_numerical_analysis_topics#numerical_methods_for_partial_differential_equations 6

Classification of PDEs Second-order linear PDEs are classified based on the value of the discriminant b 2 4ac b 2 4ac > 0: hyperbolic e.g., wave equation: u tt u xx =0 Hyperbolic PDEs describe time dependent, conservative physical processes, such as convection, that are not evolving toward steady state. b 2 4ac = 0: parabolic e.g., heat equation: u t u xx =0 Parabolic PDEs describe time-dependent dissipative physical processes, such as diffusion, that are evolving toward steady state. b 2 4ac < 0: elliptic e.g., Laplace equation: u xx + u yy =0 Elliptic PDEs describe processes that have already reached steady states, and hence are time-independent. Wave equation Heat equation Laplace equation 7

Finite Difference Method x x x f f f lim 0 dx f f ( x ( x dx) dx dx) dx Discretize f ( x) f ( x) f ( x dx) dx f ( x) Forward difference Backward difference x f f ( x dx) f ( x 2dx dx) Centered difference 8

Finite Difference Method Consider a 1D initial-boundary value problem for heat equation Credit: Vrushali A. Bokil and Nathan L. Gibson @ Oregon State U 9

Finite Difference Method Consider a 1D initial-boundary value problem for heat equation Credit: Vrushali A. Bokil and Nathan L. Gibson @ Oregon State U 10

Finite Difference Method Consider a 1D initial-boundary value problem for heat equation Using Taylor series to determine order of accuracy for the approximation f ( x dx) f ( x) dxf ' ( x) dx 2! 2 f '' ( x) dx 3! 3 f ''' ( x) dx 4! 4 f '''' ( x)... First order accurate in time f ( x dx) dx f ( x) 1 dx dxf ' ( x) dx 2! 2 f '' ( x) dx 3! 3 f ''' ( x)... f ' ( x) O( dx) Second order accurate in space 11

Finite Difference Method Consider a 1D initial-boundary value problem for heat equation Computational Stencil How to choose t and x? 12

Finite Difference Method How to choose t and x? u With x = 0.01 and t = 10 5 What happens if r is greater than1/2? t Initial condition: discontinuous at x = 0.5 Rapid smoothing of discontinuity as time evolves High frequency damps quickly. The heat equation is stiff 13

Finite Difference Method How to choose t and x? What happens if r is greater than1/2? Unstable behavior of numerical solution t and x cannot be chosen arbitrarily. Must satisfy a stable condition. 14

Finite Difference Method Implicit Implicit computational stencil Explicit computational stencil 15

Finite Difference Method Implicit Stable behavior of numerical solution t and x cannot be chosen to have the same order of magnitude. Unconditionally stable. 16

Finite Difference Method Implicit 2 nd order accurate in time trapezoid rule Unconditionally stable Second order accurate in time Computational stencil 17

Finite Difference Method for advection equation Information propagates along characteristics 18

Finite Difference Method for advection equation Computational stencil Scheme is explicit First order accurate in space and time t and x are related by CFL number: ν = a t / x 19

Finite Difference Method for advection equation CFL ν <= 1 CFL is a necessary condition for stability of explicit applied to Hyperbolic PDEs. It is not a sufficient condition. 20

Finite Difference Method for Laplace equation Boundary conditions Discretization 21

Finite Difference Method for Laplace equation centered difference scheme Five-point stencil 22

Finite Difference Method for Laplace equation form a system of linear equations b contains boundary information A is block tridiagonal Structure of A depends on the order of grid points Can be solved using iterative or direct methods, such as Gaussian elimination 23

Finite Element Method Features Complicated geometries High-order approximations Strong mathematical foundation Flexibility Basic Idea 24

Finite Element Method Poisson s Equation Elliptic u( x) f ( x) 2 x 2 2 y 2 2 z 2 2 Steady state heat transfer 1D Example Solution must be twice differentiable Unnecessarily strong if f (e.g., heat supply) is discontinuous 25

Finite Element Method Weak Formulation 26

Finite Element Method Approximation The Basic Idea of Linear System of Equations 27

Finite Element Method Basis functions we are looking for functions with the following property... otherwise we are free to choose any function... 10 9 ( x) i 1 0 for for x x x x i j, j i The simplest choice are of course linear functions: 8 7 6 + grid nodes 5 4 blue lines basis functions j i 3 2 1 28

Finite Element Method Stiffness Matrix 10 9 8 7 6 5 4 3 2 1 To assemble the stiffness matrix we need the gradient (red) of the basis functions (blue) 29

Finite Element Method Compare to Advantage of : do not have to use regular grid... regular grid...... irregular grid... Domain D 30

Finite Element Method Simplest Matlab code % source term b=(1:nx)*0;b(nx/2)=1.; % boundary left u_1 int{ nabla phi_1 nabla phij } u1=0; b(1) =0; % boundary right u_nx int{ nabla phi_nx nabla phij } unx=0; b(nx)=0; % assemble matrix Aij A=zeros(nx); Domain: [0,1]; nx=100; dx=1/(nx-1);f(x)=d(1/2) Boundary conditions: u(0)=u(1)=0 for i=2:nx-1, for j=2:nx-1, if i==j, A(i,j)=2/dx; elseif j==i+1 A(i,j)=-1/dx; elseif j==i-1 A(i,j)=-1/dx; else A(i,j)=0; end end End % solve linear system of equations fem(2:nx-1)=inv(a(2:nx-1,2:nx-1))*s(2:nx-1)'; fem(1)=u1; fem(nx)=unx; 31

Finite Element Method Results 0.25 0.2 FD (red) - (blue) Where heat supply is at 0.15 u(x) 0.1 0.05 0 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 x 32

Solving Linear Systems Equations Matrix form In Matlab Or X = A -1 B 33

Solving Linear Systems Linear Algebra (Solving Linear Algebraic Equations) Direct(LU factorization) More accurate Maybe cheaper for many time steps Banded matrix Need more memory Typically faster Iterative Matrix-free (less memory) Sparse SPD (Symmetric Positive Definite) Converging Issue 34

35