Scientific Computing Partial Differential Equations Explicit Solution of Wave Equation.

Slides:



Advertisements
Similar presentations
Partial Differential Equations
Advertisements

Chapter 8 Elliptic Equation.
Group 2 Bhadouria, Arjun Singh Glave, Theodore Dean Han, Zhe Chapter 5. Laplace Transform Chapter 19. Wave Equation.
Partial Differential Equations Definition One of the classical partial differential equation of mathematical physics is the equation describing the conduction.
Model 2: Strings on the violin and guitar The motion of vibrating structures such as the guitar or violin string commonly consists of a linear combination.
Introduction Descriptions Statements A string can be defined as a rigid body whose dimensions are small when compared with its length.
PART 7 Ordinary Differential Equations ODEs
1 Mathematical Modelling III Iain A. Anderson Floor 6, 70 Symonds St. x In this module we will model: 1)Electronic autowasher.
Math for CSLecture 121 Partial Differential Equations Boundary Value Problems.
PARTIAL DIFFERENTIAL EQUATIONS
Does the Wave Equation Really Work? Michael A. Karls Ball State University November 5, 2005.
Partial Differential Equations
Lecture 34 - Ordinary Differential Equations - BVP CVEN 302 November 28, 2001.
10/2/01CSE Class #4 CSE 260 – Introduction to Parallel Computation Class 4 – October 2, 2001 PDE’s for Dummies.
ENGG2013 Unit 22 Modeling by Differential Equations Apr, 2011.
Parabolic PDEs Generally involve change of quantity in space and time Equivalent to our previous example - heat conduction.
PARTIAL DIFFERENTIAL EQUATIONS
PDEs & Parabolic problems Jacob Y. Kazakia © Partial Differential Equations Linear in two variables: Usual classification at a given point (x,y):
1 Chapter 9 NUMERICAL SOLUTION OF PARTIAL DIFFERENTIAL EQUATIONS.
Finite Difference Methods to Solve the Wave Equation To develop the governing equation, Sum the Forces The Wave Equation Equations of Motion.
Differential Equations and Boundary Value Problems
Partial Differential Equation (PDE) An ordinary differential equation is a differential equation that has only one independent variable. For example, the.
CISE301: Numerical Methods Topic 9 Partial Differential Equations (PDEs) Lectures KFUPM (Term 101) Section 04 Read & CISE301_Topic9.
SE301: Numerical Methods Topic 9 Partial Differential Equations (PDEs) Lectures KFUPM Read & CISE301_Topic9 KFUPM.
Boyce/DiPrima 9 th ed, Ch 3.1: 2 nd Order Linear Homogeneous Equations-Constant Coefficients Elementary Differential Equations and Boundary Value Problems,
Boyce/DiPrima 10th ed, Ch 10.5: Separation of Variables; Heat Conduction in a Rod Elementary Differential Equations and Boundary Value Problems, 10th.
Scientific Computing Partial Differential Equations Poisson Equation Calculus of Variations.
Section 11.3 Partial Derivatives
SPECIAL TOPICS: PARTIAL DIFFERENTIAL EQUATIONS
Boyce/DiPrima 9th ed, Ch 10.7: The Wave Equation: Vibrations of an Elastic String Elementary Differential Equations and Boundary Value Problems, 9th edition,
COMPUTATIONAL MODELING FOR ENGINEERING MECN 6040 Professor: Dr. Omar E. Meza Castillo Department.
9.6 Other Heat Conduction Problems
Scientific Computing Partial Differential Equations Introduction and
Hyperbolic PDEs Numerical Methods for PDEs Spring 2007 Jim E. Jones.
Section 2: Finite Element Analysis Theory
Scientific Computing Partial Differential Equations Poisson Equation.
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
Numerical methods to solve parabolic PDEs. Mathematical models: 5° Classification Classification based on the type of the solution (except, usually, the.
Scientific Computing Partial Differential Equations Implicit Solution of Heat Equation.
Discontinuous Galerkin Methods for Solving Euler Equations Andrey Andreyev Advisor: James Baeder Mid.
MA2213 Lecture 11 PDE. Topics Introduction p Poisson equation p Visualization of numerical results p Boundary conditions p.
Numerical Methods for Solving ODEs Euler Method. Ordinary Differential Equations  A differential equation is an equation in which includes derivatives.
台灣師範大學機電科技學系 C. R. Yang, NTNU MT -1- Chapter 11 Numerical Integration Methods in Vibration Analysis 11.
Boyce/DiPrima 9 th ed, Ch 10.8 Appendix B: Derivation of the Wave Equation Elementary Differential Equations and Boundary Value Problems, 9 th edition,
Introduction Examples of differential equations and related problems Analytical versus numerical solutions Ideas of numerical representations of solutions.
Engineering Analysis – Computational Fluid Dynamics –
Engineering Analysis – Computational Fluid Dynamics –
HEAT TRANSFER FINITE ELEMENT FORMULATION
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
Chapter 1 Partial Differential Equations
ECE 576 – Power System Dynamics and Stability Prof. Tom Overbye Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
EE Audio Signals and Systems Wave Basics Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Ch 1.1: Basic Mathematical Models; Direction Fields Differential equations are equations containing derivatives. The following are examples of physical.
Appendices 10.A & 10.B: An Educational Presentation Presented By: Joseph Ash Jordan Baldwin Justin Hirt Andrea Lance.
State Equations BIOE Processes A process transforms input to output States are variables internal to the process that determine how this transformation.
Solving Partial Differential Equation Numerically Pertemuan 13 Matakuliah: S0262-Analisis Numerik Tahun: 2010.
Ch. 12 Partial Differential Equations
Our task is to estimate the axial displacement u at any section x
One-Dimension Wave 虞台文.
Ch 10.8 Appendix B: Derivation of the Wave Equation
Modeling and Simulation Dr. Mohammad Kilani
Boundary-Value Problems in Rectangular Coordinates
GOVERNMENT ENGINEERING COLLEGE BHARUCH,014
Finite Difference Method
Hyperbolic Equations IVP: u(x,0) = f(x), - < x <  IBVP:
Scientific Computing Partial Differential Equations Implicit Solution of Heat Equation.
CS6068 Applications: Numerical Methods
Appendices 10.A & 10.B: An Educational Presentation
Partial Differential Equations
APPLICATION OF LINEAR ALGEBRA IN MECHANICAL ENGINEERING
Presentation transcript:

Scientific Computing Partial Differential Equations Explicit Solution of Wave Equation

Partial Differential Equations Our study of PDE’s is focused on linear, second-order equations The following general form will be evaluated for B 2 - 4AC (Variables – x and y/t)

Partial Differential Equations B 2 -4AC Category Example < 0 EllipticLaplace equation (steady state with 2 spatial dimensions) = 0 ParabolicHeat conduction equation (time variable with one spatial dimension) >0HyperbolicWave equation (time-variable with one spatial dimension)

Wave Equation Mechanical vibrations of a guitar string, or in the membrane of a drum, or a cantilever beam are governed by a partial differential equation, called the wave equation. To derive the wave equation we consider an elastic string vibrating in a plane, as the string on a guitar. Assume u(x,t) is the displacement of the string away from its equilibrium position u=0.

Wave Equation u(x,t) x u T(x+  x,t) T(x,t) x x+  x  

Wave Equation Newton’s Law: F=ma Vertical: where ρ is the mass density function of the string Horizontal: As we assume there is only vertical motion of the string T(x+  x,t) T(x,t)  

Wave Equation Let Then, So, F vert = ma implies, from the previous slide, that Or,

Wave Equation Now, tan β is just the slope of the string at x+Δx and tan α is the slope at x. Thus, So, T(x+  x,t) T(x,t)  

Wave Equation Now, take the limit as Δx -> 0, to get This the Wave Equation in one dimension (x)

Wave Equation-Boundary Since the wave equation is second order in space and time, we need two boundary conditions for each variable. We will assume the string x parameter varies from 0 to 1. Typical set-up is to give boundary conditions at the ends of the string in time: u(0,t) = g 0 (t) u(1,t) = g 1 (t) and space initial conditions for the displacement and velocity: u(x,0) = f 1 (x) u t (x,0)=f 2 (x)

Wave Equation

We will solve this equation for x and t values on a grid in x-t space: One Dimensional Wave Equation Approximate solution u ij= u(x i, t j ) at grid points

To approximate the solution we use the finite difference approximation for the two derivatives in the wave equation. We use the centered-difference formula for the space and time derivatives: Finite Difference Approximation

Then the wave equation (u tt =c 2 u xx ) can be approximated as Or, Let p = (ck/h) Solving for u i,j+1 we get: Finite Difference Approximation

Note that this formula uses info from the j-th and (j- 1)st time steps to approximate the (j+1)-st time step: One Dimensional Wave Equation

The solution is known for t=0 (j=0) but the formula uses values for j-1, which are unknown. So, we use the initial condition u t (x,0)=f 2 (x) and the cenetered difference approximation for u t to get At the first time step, we then get One Dimensional Wave Equation

Simplifying, we get So, One Dimensional Wave Equation

function z = explicitWave(f1, f2, g0, g1, T, n, m, c) %Explicit solution to wave equation % Constants, x and t vectors h = 1/n; k = T/m; p = c*k/h; x = 0:h:1; t = 0:k:T; % Boundary conditions u(1:n+1, 1) = f1(x)’; uprime(1:n+1, 1) = f2(x)'; u(1, 1:m+1) = g0(t); u(n+1, 1:m+1) = g1(t); % Solution for second row u(2:n, 2) = 0.5*(p^2)*u(1:n-1,1) + (1-p^2)*u(2:n,1)+0.5*(p^2)*u(3:n+1,1)+k*uprime(2:n,1); % compute solution forward in time from j=3 for j = 2:m u(2:n,j+1) = (p^2)*u(1:n-1,j) + 2*(1-p^2)*u(2:n,j) + (p^2)*u(3:n+1,j) - u(2:n,j-1); end z=u’; mesh(x,t,z); end Matlab Implementation

Usage: f1= inline(‘ x.*(1-x) ’); f2=inline(‘0*x’); g0 = inline(‘0*t’); g1 = inline(‘0*t’); n=5; m=5; c=1; T=1.0; z = explicitWave(f1, f2, g0, g1, T, n, m, c); Matlab Implementation

Calculated solution appears correct: Matlab Implementation

It can be shown that the algorithm for the explicit solution is stable if |p| <= 1. (Michael Heath – Scientific Computing: An Introductory Survey, McGraw-Hill) Stability