Engineering Computation and Simulation Conor Brennan Dublin City University EE317.

Slides:



Advertisements
Similar presentations
Dynamics of a four-bar linkage
Advertisements

Kinematics of Particles
INTRODUCTION & RECTILINEAR KINEMATICS: CONTINUOUS MOTION (Sections 12
Projectiles Chapter 5. If we ignore the effects of air resistance an object in the air has a horizontal acceleration of ax = 0 m/s 2 and a vertical acceleration.
MAT 594CM S10Fundamentals of Spatial ComputingAngus Forbes Week 2 : Dynamics & Numerical Methods Goal : To write a simple physics simulation Topics: Intro.
PART 7 Ordinary Differential Equations ODEs
Dr. Jie Zou PHY Chapter 9 Ordinary Differential Equations: Initial-Value Problems Lecture (I) 1 1 Besides the main textbook, also see Ref.: “Applied.
Initial-Value Problems
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 2 Mathematical Modeling and Engineering Problem Solving.
The Islamic University of Gaza Faculty of Engineering Numerical Analysis ECIV 3306 Introduction.
Concept of Drag Viscous Drag and 1D motion. Concept of Drag Drag is the retarding force exerted on a moving body in a fluid medium It does not attempt.
Numerical Solutions of Ordinary Differential Equations
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 1 Mathematical Modeling.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Mathematical Modeling and Engineering Problem solving.
Numerical Solutions of Differential Equations Taylor Methods.
Differential Equations
6&7-2 Dynamics, two examples of the use of ode45. Numeric Integration using trapz and quad/quadl functions. Readings: Matlab by Pratap Chapter 5.4,5.5.
Numerical Solution of Ordinary Differential Equation
MATH 685/ CSI 700/ OR 682 Lecture Notes Lecture 10. Ordinary differential equations. Initial value problems.
Numerical solution of Differential and Integral Equations PSCi702 October 19, 2005.
P ROJECT : N UMERICAL S OLUTIONS TO O RDINARY D IFFERENTIAL E QUATIONS IN H ARDWARE Joseph Schneider EE 800 March 30, 2010.
Fin500J Topic 7Fall 2010 Olin Business School 1 Fin500J Mathematical Foundations in Finance Topic 7: Numerical Methods for Solving Ordinary Differential.
PART 7 Ordinary Differential Equations ODEs
Ordinary Differential Equations (ODEs) 1Daniel Baur / Numerical Methods for Chemical Engineers / Explicit ODE Solvers Daniel Baur ETH Zurich, Institut.
Javier Junquera Molecular dynamics in the microcanonical (NVE) ensemble: the Verlet algorithm.
Chapter 1 Computing Tools Analytic and Algorithmic Solutions Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Tips for solving Project 1 Reactor SO 3 SO 2 +O 2.
C OMPUTATION AND S IMULATION EE A SSIGNMENT T WO By: Shimiao Cheng, Femi Adeleke, Hanieh Alirezaeeabyaneh.
Computational Biology, Part 15 Biochemical Kinetics I Robert F. Murphy Copyright  1996, 1999, 2000, All rights reserved.
Math 3120 Differential Equations with Boundary Value Problems
Kinematics Velocity and Acceleration. Motion Change in position of object in relation to things that are considered stationary Usually earth is considered.
Integration of 3-body encounter. Figure taken from
Kinematics of Particles
Ch. 2: Describing Motion: Kinematics in One Dimension.
MOTION OF A PROJECTILE Today’s Objectives: Students will be able to: 1.Analyze the free-flight motion of a projectile. In-Class Activities: Check Homework.
Chapter 6 Circular Motion and Other Applications of Newton’s Laws.
Scientific Computing Numerical Solution Of Ordinary Differential Equations - Euler’s Method.
CSE 3802 / ECE 3431 Numerical Methods in Scientific Computation
Computational Methods of Scientific Programming Lecturers Thomas A Herring, Room A, Chris Hill, Room ,
1 Solution of Nonlinear Equation Dr. Asaf Varol
Chapter 1 Computing Tools Analytic and Algorithmic Solutions Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Numerical Solutions of ODE
MA/CS 375 Fall MA/CS 375 Fall 2002 Lecture 12.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology Physics for Games Spring 2012.
Mathematical Applications using MATLAB (Cont….)
Mathematical Model of Motion Chapter 5. Velocity Equations Average velocity: v =  d/  t To find the distance traveled with constant or average velocity.
SIMULINK-Tutorial 1 Class ECES-304 Presented by : Shubham Bhat.
Force and Motion Part II Circular Dynamics February 15, 2006.
ES 240: Scientific and Engineering Computation. Chapter 1 Chapter 1: Mathematical Modeling, Numerical Methods and Problem Solving Uchechukwu Ofoegbu Temple.
Part 1 Chapter 1 Mathematical Modeling, Numerical Methods, and Problem Solving PowerPoints organized by Dr. Michael R. Gustafson II, Duke University and.
Only One Word for Review Review Engineering Differential Equations The Second Test.
Chapter 2 Describing Motion: Kinematics in One Dimension.
More on Particles Glenn G. Chappell U. of Alaska Fairbanks CS 481/681 Lecture Notes Wednesday, March 24, 2004.
Dr. Mujahed AlDhaifallah ( Term 342)
Part 1 Chapter 1 Mathematical Modeling, Numerical Methods, and Problem Solving PowerPoints organized by Dr. Michael R. Gustafson II, Duke University and.
ACSL, POSTECH1 MATLAB 입문 CHAPTER 8 Numerical Calculus and Differential Equations.
Section 1.1 Basic Definitions and Terminology. DIFFERENTIAL EQUATIONS Definition: A differential equation (DE) is an equation containing the derivatives.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 6 - Chapters 22 and 23.
Ordinary Differential Equations (ODEs). Objectives of Topic  Solve Ordinary Differential Equations (ODEs).  Appreciate the importance of numerical methods.
ECE 383 / ME 442 Fall 2015 Kris Hauser
HASMUKH GOSWAMI COLLEGE OF ENGINEERING, VAHELAL
1.1 Basic Concepts. Modeling
Engineering Problem Solution
2. Motion 2.1. Position and path Motion or rest is relative.
Skydiver.
(Constant acceleration)
Mathematical Modeling, Numerical Methods, and Problem Solving
MOTION OF A PROJECTILE Today’s Objectives: Students will be able to:
Projectiles The only force acting on a projectile is the force due to gravity (weight).
Projectile Motion with air drag
Presentation transcript:

Engineering Computation and Simulation Conor Brennan Dublin City University EE317

GROUP 4 :- Manpreet Singh Nanda Varun Raina Kanika Poply Numerical Methods

What are Numerical Solvers? Used to compute the solution of a complex model of a physical system Used to compute the solution of a complex model of a physical system Available in Simulation Software or algorithms available in Mathematical software packages like Matlab. Available in Simulation Software or algorithms available in Mathematical software packages like Matlab. Riemann Solver: Used heavily in Computational Fluid Dynamics and Magnetohydrodynamics. Riemann Solver: Used heavily in Computational Fluid Dynamics and Magnetohydrodynamics. Roe Solver: Linearization of the Jacobian Roe Solver: Linearization of the Jacobian HLLC Solver: Used to restore missing rarefaction waves HLLC Solver: Used to restore missing rarefaction waves Some Examples of Numerical Solvers:

Some Numerical Solvers in Matlab: Two Basic Categories of Solvers in Matlab: Fixed Step Solver: Solves the model at regular time intervals from beginning to the end of interval. Fixed Step Solver: Solves the model at regular time intervals from beginning to the end of interval. Variable Step Solver: Vary the step size during simulation changing the step size to increase accuracy according to how model’s states are changing Variable Step Solver: Vary the step size during simulation changing the step size to increase accuracy according to how model’s states are changing

ODE 45 method: Inbuilt Function in Matlab for solving ODE's. It is based on the Runge-Kutta method. ODE 45 method: Inbuilt Function in Matlab for solving ODE's. It is based on the Runge-Kutta method. Handles general equations of the form Handles general equations of the form ‘t’ is the independent variable ‘t’ is the independent variable ‘y’ is the dependent variable ‘y’ is the dependent variable Varies the size of the step of the independent variable in order to meet the accuracy we specify at any particular point along the solution. Varies the size of the step of the independent variable in order to meet the accuracy we specify at any particular point along the solution. Numerical Solvers in Engineering Examples:

Example Problem of Numerical Solver Kinematics Problem : Kinematics Problem : Consider a Paratrooper of mass 80 kg falling from a height of 600 meters. Consider a Paratrooper of mass 80 kg falling from a height of 600 meters. He is accelerated by gravity and then decelerated by Drag Force. He is accelerated by gravity and then decelerated by Drag Force. V is velocity in m/s. V is velocity in m/s. Governing Equation: dV/dt = -mg + 4/15(V^2)/m Governing Equation: dV/dt = -mg + 4/15(V^2)/m Reference: (Book: Numerical Computing in Matlab) Reference: (Book: Numerical Computing in Matlab)

Example to illustrate Matlab’s Inbuilt Solver F.M File FUNC..M Code that calls the ODE45 Function

Example to illustrate Matlab’s Inbuilt Solver: Result

Ordinary Differential Equation An Ordinary differential (or ODE) is a relation that contains function of only one independent variable and one or more of its derivatives with respect to that variable.

Three Methods to Solve ODE's Euler Method: It is based on finite difference approximations to the derivative. f (x+h) = f (x) + h*f ‘(x) Predictor Corrector Method : y n +1 = y n +1/2*h (f ( x n, y n ) + f(x n +1,y* n +1)) where y* n +1 = y n + f( x n, y n ) Range - Kutta Method : y n +1 = y n + 1/6 ( A 1 + 2A 2 + 2A 3 + A 4 )*h where A 1 = f (x n, y n ) A 2 = f (x n + h/2, (y n +h/2)A 1 ) A 3 = f (x n + h/2, (y n +h/2)A 2 ) A 4 = f (x n +h, y n +hA 3 )

Solution for Ordinary Differential Equation dy/dx = x +y

Graph Showing the Relative Error

Relative Error and Elapsed Time

Algorithm for Projectile code Algorithm for Projectile code Setting the Position (x, y) and Velocity (Vy, Vx) Vectors and parameters( g, time, friction etc). Setting the Position (x, y) and Velocity (Vy, Vx) Vectors and parameters( g, time, friction etc). Running for fixed number of Steps (N). Running for fixed number of Steps (N). Without Friction: Vx is constant and Vy is Dependent( on g). Without Friction: Vx is constant and Vy is Dependent( on g). Run the loop to generate projectile parabola. ( Vy, Vx, x and y) Run the loop to generate projectile parabola. ( Vy, Vx, x and y) Concept of small interval time frame( Realistic Effect). Concept of small interval time frame( Realistic Effect).

Algorithm Cont: Testing loop condition: Start condition and threshold condition Testing loop condition: Start condition and threshold condition Since, it keeps on moving ( Vx friction independent). Since, it keeps on moving ( Vx friction independent). Vx Constant

Frictionless Projectile Plot(Euler_x) increasing gradually Plot(Euler_Vy) Decreasing with threshold loop Plot(Euler_y)

Problems faced Re-bouncing even on Friction present. First Projectile obtained

Projectile Fired From the Origin (0,0)

Projectile with Friction Friction with k = 0.02 Friction with k = 0.02 Values for Euler_vy, Euler_x and Projectile generated. Values for Euler_vy, Euler_x and Projectile generated.

Projectile with Friction with diff “k” Different values of k = 0.04, 0.08 and 0.1 Different values of k = 0.04, 0.08 and 0.1 Effects on Projectile. Effects on Projectile. Due to constant air friction. Due to constant air friction.

K = 0.2

Realistic Reflections Written code with smaller time frame to compare to the threshold. Written code with smaller time frame to compare to the threshold. Friction with Realistic Reflections

Ireland Lacks Quality Graduates? I believe that instead of just emphasizing on negatives he should take the Lead Role in providing a solution to this problem. I believe that instead of just emphasizing on negatives he should take the Lead Role in providing a solution to this problem. Steps that could be taken at two different levels: Steps that could be taken at two different levels: School Level Organizations should interact more with the student community during the development stage by for e.g. organizing more quiz competitions etc. Organizations should interact more with the student community during the development stage by for e.g. organizing more quiz competitions etc. Children between the age-group of years should be encouraged to take up maths and science subjects and hence should be provided with the necessary platform or resources Children between the age-group of years should be encouraged to take up maths and science subjects and hence should be provided with the necessary platform or resources University Level More opportunities should be given to aspiring graduates through means of work placements, regular industry visits and Awards to recognize and develop next generation of talent. More opportunities should be given to aspiring graduates through means of work placements, regular industry visits and Awards to recognize and develop next generation of talent. Organizations should take an active role and advice the universities regularly about the changing needs of the industry. Organizations should take an active role and advice the universities regularly about the changing needs of the industry.

Thank You !! QUESTIONS ???