Lecture 1. source www.tevza.org/home/course/modelling-II_2011.

Slides:



Advertisements
Similar presentations
Finite Difference Discretization of Hyperbolic Equations: Linear Problems Lectures 8, 9 and 10.
Advertisements

Optimal transport methods for mesh generation Chris Budd (Bath), JF Williams (SFU)
4 th order Embedded Boundary FDTD algorithm for Maxwell Equations Lingling Wu, Stony Brook University Roman Samulyak, BNL Tianshi Lu, BNL Application collaborators:
2ª aula Evolution Equation. The Finite Volume Method.
Python Crash Course Accuracy 3 rd year Bachelors V1.0 dd Hour 7.
Finite Volume II Philip Mocz. Goals Construct a robust, 2nd order FV method for the Euler equation (Navier-Stokes without the viscous term, compressible)
CSC 4250 Computer Architectures September 12, 2006 Appendix H. Computer Arithmetic.
What is Rounding Error? AiS Challenge STI 2003 Richard Allen.
Chapter 8 Representing Information Digitally.
Application: TSD-MPI Calculation of Thermal Stress Distribution By Using MPI on EumedGrid Abdallah ISSA Mazen TOUMEH Higher Institute for Applied Sciences.
MATH 685/ CSI 700/ OR 682 Lecture Notes
Session: Computational Wave Propagation: Basic Theory Igel H., Fichtner A., Käser M., Virieux J., Seriani G., Capdeville Y., Moczo P.  The finite-difference.
Coupling Continuum Model and Smoothed Particle Hydrodynamics Methods for Reactive Transport Yilin Fang, Timothy D Scheibe and Alexandre M Tartakovsky Pacific.
AMS 691 Special Topics in Applied Mathematics Lecture 4 James Glimm Department of Applied Mathematics and Statistics, Stony Brook University Brookhaven.
Total Recall Math, Part 2 Ordinary diff. equations First order ODE, one boundary/initial condition: Second order ODE.
1 Internal Seminar, November 14 th Effects of non conformal mesh on LES S. Rolfo The University of Manchester, M60 1QD, UK School of Mechanical,
ECE669 L4: Parallel Applications February 10, 2004 ECE 669 Parallel Computer Architecture Lecture 4 Parallel Applications.
MA5233: Computational Mathematics
CSE351/ IT351 Modeling and Simulation
Parallel Mesh Refinement with Optimal Load Balancing Jean-Francois Remacle, Joseph E. Flaherty and Mark. S. Shephard Scientific Computation Research Center.
Module on Computational Astrophysics Jim Stone Department of Astrophysical Sciences 125 Peyton Hall : ph :
Parabolic PDEs Generally involve change of quantity in space and time Equivalent to our previous example - heat conduction.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 3 Programming and Software.
Partial differential equations Function depends on two or more independent variables This is a very simple one - there are many more complicated ones.
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Lecture 9 Instructor: Tim Warburton.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM.
© 2011 Autodesk Freely licensed for use by educational institutions. Reuse and changes require a note indicating that content has been modified from the.
Scientific Computing Algorithm Convergence and Root Finding Methods.
Developing Simulations and Demonstrations Using Microsoft Visual C++ Mike O’Leary Shiva Azadegan Towson University Supported by the National Science Foundation.
Finite Differences Finite Difference Approximations  Simple geophysical partial differential equations  Finite differences - definitions  Finite-difference.
Numerical Computations in Linear Algebra. Mathematically posed problems that are to be solved, or whose solution is to be confirmed on a digital computer.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Chapter 1 Computing Tools Analytic and Algorithmic Solutions Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
CISE301_Topic11 CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4:
Bill Walster June 15, 2006 Computing with Intervals Recent Developments.
Lecture 1 - Introduction June 3, 2002 CVEN 302. Lecture’s Goals General Introduction to CVEN Computer Applications in Engineering and Construction.
Lecture 3.
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
Parallel Simulation of Continuous Systems: A Brief Introduction
MECN 3500 Inter - Bayamon Lecture 3 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
1 MA/CS471 Lecture 7 Fall 2003 Prof. Tim Warburton
Final Project Solution to a Hyperbolic problem using Mimetic Methods Caplan,Ron Jimenez, Rosa Martinez, Joan M. M 542 Intro. to Numerical Solutions to.
3.3.3: Semi-Lagrangian schemes AOSC614 class Hong Li.
CFD Refinement By: Brian Cowley. Overview 1.Background on CFD 2.How it works 3.CFD research group on campus for which problem exists o Our current techniques.
Solving an elliptic PDE using finite differences Numerical Methods for PDEs Spring 2007 Jim E. Jones.
Engineering Analysis – Computational Fluid Dynamics –
Numerical Analysis Intro to Scientific Computing.
Modeling Biosystems Mathematical models are tools that biomedical engineers use to predict the behavior of the system. Three different states are modeled.
Lecture 4 - Numerical Errors CVEN 302 June 10, 2002.
Introducing Flow-er: a Hydrodynamics Code for Relativistic and Newtonian Flows Patrick M. Motl Joel E. Tohline, & Luis Lehner (Louisiana.
AMS 691 Special Topics in Applied Mathematics Lecture 8
Discretization for PDEs Chunfang Chen,Danny Thorne Adam Zornes, Deng Li CS 521 Feb., 9,2006.
An Introduction to Computational Fluids Dynamics Prapared by: Chudasama Gulambhai H ( ) Azhar Damani ( ) Dave Aman ( )
Lecture 1 Introduction Dr. Hakikur Rahman Thanks to Dr. S. M. Lutful Kabir for Slides CSE 330: Numerical Methods.
Computational Fluid Dynamics Lecture II Numerical Methods and Criteria for CFD Dr. Ugur GUVEN Professor of Aerospace Engineering.
I- Computational Fluid Dynamics (CFD-I)
EEE 431 Computational Methods in Electrodynamics
Chapter 30.
Control Design and Analysis of Chained Systems
ივანე ჯავახიშვილის სახელობის
Soft Computing Applied to Finite Element Tasks
Lecture 19 MA471 Fall 2003.
Description and Analysis of Systems
Convergence in Computational Science
ME/AE 339 Computational Fluid Dynamics K. M. Isaac Topic2_PDE
Convergence in Numerical Science
Finite Volume Method Philip Mocz.
CS6068 Applications: Numerical Methods
CASA Day 9 May, 2006.
Presentation transcript:

Lecture 1

source

Why model? Consequent data Inconsequent data:

Modelling Elephant How good is the model?

Astrophysical simulations Different physics: Different classes Different stages of the evolution Different scales

Hertzsprung-Russell diagram

Simulations Major aspects: Physics Code Hardware

Beowulf cluster

Perspective Moor’s law Doubling of the number of transistors on integrated circuits (1.5-2 years)

Perspective Kryder’s law Doubling of the magnetic disk areal storage density (1 year)

BASIC CONCEPTS

Method Continuum -> Discrete Physical Model -> Numerical Model (Vx,Vy,Vz, Rho, P) (Px, Py, Pz, E, M) Where to introduce numerical errors: Discretization, Subgrid, interpolation, etc. Error propagation science

Workflow Configuration -Initial conditions -Boundary conditions Calculus -Compilation -Run Data analysis -Post processing -Visualization

Are my results correct? Indicators: Exact Analytic Solutions Different Numerical Methods Code Validation

Catastrophic cancellation Calculate the equation with a=77617 and b=33096 answer depends of the compiler (C, Fortran, Matlab) processor type!

Catastrophic cancellation Plot function:

Numerical catastrophes Ariane 5 rocket. [June 4, 1996] 10 year, $7 billion ESA project exploded after launch. 64-bit float converted to 16 bit signed int. Unanticipated overflow. Vancouver stock exchange. [November, 1983] Index undervalued by 44%. Recalculated index after each trade by adding change in price. 22 months of accumulated truncation error. Patriot missile accident. [February 25, 1991] Failed to track scud; hit Army barracks, killed 28. Inaccuracy in measuring time in 1/20 of a second since using 24 bit binary floating point.

Courant-Friedrichs-Lewy condition CFL number:numerical stability CFL < 1 2D:

Properties of Numerical Models A robust simulation has the following properties: (J.H. Ferziger and M. Peric, Computational Methods for Fluid Dynamics, Springer, 1999) -Consistency (regular, statistical) -Stability -Convergence(analytic solution, ?) -Conservation -Boundedness -Realizability -Accuracy

Stability Theory -Lyapunov stability -Asymptotic stability -Exponential stability

Numerical Stability An algorithm is stable if the numerical solution at a fixed time remains bounded as the step size goes to zero -Numerical diffusion -CFL number ( )

Numerical Instability

Numerical Methodology DNS (Finite difference, finite volume, split, unsplit, etc.) Spectral Methods (Fourier, Chebishev) Pseudo-Spectral N-body

Mesh Static grids -Uniform grid -Linearly nonuniform grid -Complex nonuniformity (Chebishev, etc) -Non-Cartesian grids Dynamical grids -Adaptive Mesh Refinement (AMR)

Algorithms Spatial Integration: Temporal Integration: Time step determination: CFL condition

Parallelization Hardware PC, Beowulf, HPC, Software -MPI -PVM -OpenMP

Pseudocode Algorithm development Pseudocode: Code intended for human reading rather then the machine reading - no variable definitions; - no memory management; - no subroutines; - no system-specific code; Pseudocode language choice: Matlab - Avoid Matlab specific functions and simulink

Pseudocode Pseudocode is intended to be rewritten in low level programming language later PseudocodeJava implementation { //IF robot has no obstacle in front THEN // Call Move robot // Add the move command to the command history // RETURN true //ELSE // RETURN false without moving the robot //END IF } { if (aRobot.isFrontClear()) { aRobot.move(); cmdHistory.add(RobotAction.MOVE); return true; } else { return false; }

PDE classification Linear second order Partial Differential Equation Elliptic:b a c < 0 Parabolic:b a c = 0 Hyperbolic:b a c > 0

PDE classification Elliptic equation:Poisson equation Parabollic equation:Diffusion equation Hyperbolic equation:Wave equation EXAMPLES Numerical methods: individual treatment

Canonical Form Elliptic equation: Parabollic equation: Hyperbolic equation:

Conservation laws Modelling conservation laws: Method - rewrite set of equations in the form of the general set of conservation laws (analytically) Conserved quantities: volume integrals Differential form of continuity eq.: Mass conservation in total volume:

Conservation laws Generalized form of conservation laws:  – numerical variable J – numerical flux of the variable  , P, V (physical variables): primitive variables Task: reducing existing system of hyperbolic PDE to the conserving form EXAMPLES