Computational Physics Dr. Guy Tel-Zur Home Assignment Number 2.

Slides:



Advertisements
Similar presentations
Courant and all that Consistency, Convergence Stability Numerical Dispersion Computational grids and numerical anisotropy The goal of this lecture is to.
Advertisements

Dr. Guy Tel-Zur Computational Physics Differential Equations Autumn Colors, by Bobby Mikul, Mikul Autumn Colors,
Chess Problem Solver Solves a given chess position for checkmate Problem input in text format.
Solving Equations = 4x – 5(6x – 10) -132 = 4x – 30x = -26x = -26x 7 = x.
1 A Common Application Platform (CAP) for SURAgrid -Mahantesh Halappanavar, John-Paul Robinson, Enis Afgane, Mary Fran Yafchalk and Purushotham Bangalore.
CISC October Goals for today: Foster’s parallel algorithm design –Partitioning –Task dependency graph Granularity Concurrency Collective communication.
Functions.
Reference: Message Passing Fundamentals.
Computational Physics Lecture 3 - Admin Dr. Guy Tel-Zur Coral. Picture by Anna Cervova, publicdomainpictures.net.
Parallel Decomposition-based Contact Response Fehmi Cirak California Institute of Technology.
Landscape Erosion Kirsten Meeker
Computational Physics Home Assignment #3 Dr. Guy Tel-Zur.
MECH300H Introduction to Finite Element Methods Lecture 10 Time-Dependent Problems.
Parabolic Equation. Cari u(x,t) yang memenuhi persamaan Parabolik Dengan syarat batas u(x,0) = 0 = u(8,t) dan u(x,0) = 4x – ½ x 2 di x = i : i = 0,
Lecture 1: Systems super systems, systems & subsystems SYS366.
Technical Question Technical Question
EGR 105 Foundations of Engineering I Fall 2007 – week 6 Project time.
Capstone Final Presentation Spring 2003 Thin Film flow.
Finite Difference Methods to Solve the Wave Equation To develop the governing equation, Sum the Forces The Wave Equation Equations of Motion.
3.2 Solving Inequalities Using Addition or Subtraction I can use addition or subtraction to solve inequalities.
TODAY IN ALGEBRA…  Warm up: Find products of special polynomials  Learning Target: 9.4 You will solve polynomial equations in factored form  Independent.
1 Web Based Interface for Numerical Simulations of Nonlinear Evolution Equations Ryan N. Foster & Thiab Taha Department of Computer Science The University.
Reference: / Parallel Programming Paradigm Yeni Herdiyeni Dept of Computer Science, IPB.
L15: Putting it together: N-body (Ch. 6) October 30, 2012.
Hyperbolic PDEs Numerical Methods for PDEs Spring 2007 Jim E. Jones.
MA/CS471 Lecture 8 Fall 2003 Prof. Tim Warburton
Designing and Evaluating Parallel Programs Anda Iamnitchi Federated Distributed Systems Fall 2006 Textbook (on line): Designing and Building Parallel Programs.
3x – 5y = 11 x = 3y + 1 Do Now. Homework Solutions 2)2x – 2y = – 6 y = – 2x 2x – 2(– 2x) = – 6 2x + 4x = – 6 6x = – 6 x = – 1y = – 2x y = – 2(– 1) y =
Lecture 1: Project Initiation SYS366 Definition of a Project A Project is a sequence of unique, complex, and connected activities having one goal or.
Discontinuous Galerkin Methods and Strand Mesh Generation
MECH593 Introduction to Finite Element Methods Eigenvalue Problems and Time-dependent Problems.
Scientific Computing Home Assignment #1 Dr. Guy Tel-Zur.
CIS888.11V/EE894R/ME894V A Case Study in Computational Science & Engineering We will apply several numerical methods to find a steady state solution of.
Module 2.9 Solving Addition Word Problems. In your group create a story problem to match your assigned equation. How do you know that the story matches.
Applying the Distributive Property Lesson Application Problem O A parking structure has 10 levels. There are 3 cards parked on each level. How many.
1 Scalar Conservation Law Dr. Farzad Ismail School of Aerospace and Mechanical Engineering Universiti Sains Malaysia Nibong Tebal Pulau Pinang Week.
Linear Algebra Operators for GPU Implementation of Numerical Algorithms J. Krüger R. Westermann computer graphics & visualization Technical University.
Elimination Method Day 2 Today’s Objective: I can solve a system using elimination.
A Pattern Language for Parallel Programming Beverly Sanders University of Florida.
On the Performance of PC Clusters in Solving Partial Differential Equations Xing Cai Åsmund Ødegård Department of Informatics University of Oslo Norway.
SPH weekly meeting Free surface flows in Code Saturne Results 23/11/2009 Olivier Cozzi.
Marching Solver for Poisson Equation 大氣四 簡睦樺. Outline A brief review for Poisson equation and marching method Parallel algorithm and consideration for.
1.3 Solving Equations with Variables on Both Sides
The story so far… ATM 562 Fovell Fall, Convergence We will deploy finite difference (FD) approximations to our model partial differential equations.
Towards Future Navier-Stokes Schemes Uniform Accuracy, O(h) Time Step, Accurate Viscous/Heat Fluxes Hiroaki Nishikawa National Institute of Aerospace.
Lecture 2. Finite Difference (FD) Methods Conservation Law: 1D Linear Differential Equation:
TODAY IN ALGEBRA…  Warm Up: Review solving Multi-step equations  15 minutes: Finish Mid-Ch.3 Test  Learning Goal: 3.4 You will solve equations with.
1 Spring 2003 Prof. Tim Warburton MA557/MA578/CS557 Lecture 32.
Q1W5: Solving Linear Equations With One Variable
PLOT ANY POINT Solutions To Linear Equations.
Lecture 4: Numerical Stability
Poisson Equation Finite-Difference
Bell Ringer Solve each for x.
To find the solution of simultaneous equations graphically: 1)
Scientific Computing Lab
ივანე ჯავახიშვილის სახელობის
Looping and Random Numbers
Notes Over 9.6 An Equation with One Solution
Hyperbolic Equations IVP: u(x,0) = f(x), - < x <  IBVP:
Final Review.
} 2x + 2(x + 2) = 36 2x + 2x + 4 = 36 4x + 4 = x =
Solve Special Types of Linear Systems
Finite Difference Method for Poisson Equation
2.2 Cauchy Problem for the Wave Equation
Scientific Computing Home Assignment #3
Graphing Systems of Equations
Solving Multi Step Equations
Solving Multi Step Equations
Chapter 9 Lesson 3 Pg. 699 Solving Systems of Equations by Graphing
Chapter 9 Lesson 3 Pg. 699 Solving Systems of Equations by Graphing
Presentation transcript:

Computational Physics Dr. Guy Tel-Zur Home Assignment Number 2

Parallel Solver for the 1D Wave Equation One-Way, 1-D Wave, Equation (Advection): Initial Condition: Courant Number, r=c  t/  x Verify 0<r<1

Explicit finite difference schemes for first order 1-D wave equation

Part 1: Solve using Forward Euler (FWU) Scheme Part 2: Solve using Upwind (UPW) Scheme Use: c = 0.5,  x=0.04,  t=0.02

Continued: Initial Condition: x range: -2 ≤ x ≤ 2 Boundary Conditions: U(-2,t)=0, U(2,t)=1

The Computational Model

Instructions Solve the 1D Wave Equation in Parallel Use a SPMD model in C using MPI Use a Master-Workers model The entire amplitude array is partitioned and distributed as sub-arrays to all tasks. Each task owns a portion of the total array. Decide about the number of Parallel Tasks Use Point-to-Point and Collective MPI commands as needed

Which of the Schemes behave nicer? Comment on the #Tasks vs. Running time (Computation to communication ratio) Submit plots of the solution, u(x,t), at: t=0, t=1 and t=2 Submit EXE#2 to Due: Two weeks from today