1 Discretizing The Concentration Equation Mike Grimm Math 1110 March 11, 2002.

Slides:



Advertisements
Similar presentations
5.1 Real Vector Spaces.
Advertisements

3.2 Inverse Functions and Logarithms 3.3 Derivatives of Logarithmic and Exponential functions.
Partial Differential Equations
Ch 7.7: Fundamental Matrices
Linear Algebra Applications in Matlab ME 303. Special Characters and Matlab Functions.
Business Calculus Improper Integrals, Differential Equations.
Parabolic Partial Differential Equations
Section 4.6 (Rank).
Autar Kaw Humberto Isaza
Chapter 4 Systems of Linear Equations; Matrices Section 6 Matrix Equations and Systems of Linear Equations.
Matrices: Inverse Matrix
9.1 Power Series.
Linear Systems of Equations
2.3 Matrix Inverses. Numerical equivalent How would we solve for x in: ax = b ? –a -1 a x = a -1 b –x=a -1 b since a -1 a = 1 and 1x = x We use the same.
Ch 5.2: Series Solutions Near an Ordinary Point, Part I
Branch and Bound Similar to backtracking in generating a search tree and looking for one or more solutions Different in that the “objective” is constrained.
CE An Intro Problem—will lead to first homework Fluid is contained in along square duct, see cross section below, three faces of the duct are kept.
CE A Mathematical Approach for Discretization In the previous set of notes we saw how we could numerically solve With boundary conditions Using.
MOHAMMAD IMRAN DEPARTMENT OF APPLIED SCIENCES JAHANGIRABAD EDUCATIONAL GROUP OF INSTITUTES.
Ordinary Differential Equations S.-Y. Leu Sept. 21,28, 2005.
HAWKES LEARNING SYSTEMS math courseware specialists Copyright © 2010 Hawkes Learning Systems. All rights reserved. Hawkes Learning Systems: College Algebra.
Module 1 Introduction to Ordinary Differential Equations Mr Peter Bier.
Copyright © Cengage Learning. All rights reserved. 7.6 The Inverse of a Square Matrix.
HAWKES LEARNING SYSTEMS math courseware specialists Copyright © 2011 Hawkes Learning Systems. All rights reserved. Hawkes Learning Systems College Algebra.
Warm-Up Solving Systems of Equations Learning Targets l Refresher on solving systems of equations l Matrices –Operations –Uses –Reduced Row Echelon.
Linear Algebra – Linear Equations
Expressing Sequences Explicitly By: Matt Connor Fall 2013.
Applied Discrete Mathematics Week 9: Relations
Louisiana Tech University Ruston, LA Slide 1 Krogh Cylinder Steven A. Jones BIEN 501 Wednesday, May 7, 2008.
MATH 250 Linear Equations and Matrices
Row Reduction Method Lesson 6.4.
Logarithmic Functions y = log a x, is read “the logarithm, base a, of x,” or “log, base a, of x,” means “the exponent to which we raise a to get x.”
6.1 Antiderivatives and Slope Fields Objectives SWBAT: 1)construct antiderivatives using the fundamental theorem of calculus 2)solve initial value problems.
Chapter 2 Simultaneous Linear Equations (cont.)
4.6 Matrix Equations and Systems of Linear Equations In this section, you will study matrix equations and how to use them to solve systems of linear equations.
Using Matrices to Solve Systems of Equations Matrix Equations l We have solved systems using graphing, but now we learn how to do it using matrices.
Ordinary Differential Equations
WEEK 8 SYSTEMS OF EQUATIONS DETERMINANTS AND CRAMER’S RULE.
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
3 DERIVATIVES.  Remember, they are valid only when x is measured in radians.  For more details see Chapter 3, Section 4 or the PowerPoint file Chapter3_Sec4.ppt.
Power Series Section 9.1a.
Jump to first page Chapter 3 Splines Definition (3.1) : Given a function f defined on [a, b] and a set of numbers, a = x 0 < x 1 < x 2 < ……. < x n = b,
4-8 Augmented Matrices & Systems. Objectives Solving Systems Using Cramer’s Rule Solving Systems Using Augmented Matrices.
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
4.8 Using matrices to solve systems! 2 variable systems – by hand 3 or more variables – using calculator!
Warm Up. Solving Differential Equations General and Particular solutions.
GUIDED PRACTICE for Example – – 2 12 – 4 – 6 A = Use a graphing calculator to find the inverse of the matrix A. Check the result by showing.
Finding Grid Point Neighbors Matt Craven for: Dr. Anitescu Math 1110 Spring 2002.
Linear Differential Equations AP CALCULUS BC. First-Order Differential Equations  A first-order linear differential equation can be put into the form.
Barnett/Ziegler/Byleen Business Calculus 11e1 Learning Objectives for Section 10.6 Differentials The student will be able to apply the concept of increments.
© 2010 Pearson Education Inc.Goldstein/Schneider/Lay/Asmar, CALCULUS AND ITS APPLICATIONS, 12e– Slide 1 of 33 Chapter 3 Techniques of Differentiation.
Finite Element Method. History Application Consider the two point boundary value problem.
Implicit approximation can be solved using: Point iteration (G/S, SOR) Direct (matrix) solution Combination of matrix soln and iteration (used in MODFLOW)
Slide Copyright © 2009 Pearson Education, Inc. 7.4 Solving Systems of Equations by Using Matrices.
Implementing Finite Volume Methods 1.  Continue on Finite Volume Methods for Elliptic Equations  Finite Volumes in Two-Dimensions  Poisson’s Equation.
9.1 Power Series AP Calculus BC. This is an example of an infinite series. 1 1 Start with a square one unit by one unit: This series converges (approaches.
L9Matrix and linear equation
We will be looking for a solution to the system of linear differential equations with constant coefficients.
Chapter 2 Simultaneous Linear Equations (cont.)
Boundary-Value Problems for ODE )בעיות הגבול(
Finding A Better Final Discretized Equation
Ch 5.2: Series Solutions Near an Ordinary Point, Part I
Do Now 1) t + 3 = – 2 2) 18 – 4v = 42.
PRELIMINARY MATHEMATICS
topic16_cylinder_flow_relaxation
Example 5A: Solving Simple Rational Equations
1. How do I Solve Linear Equations
Generating Function and Applications
Maximum and Minimum Values
Presentation transcript:

1 Discretizing The Concentration Equation Mike Grimm Math 1110 March 11, 2002

2 The Concentration Equation Recall: Where:

3 Reducing the Equation Since D and are both constants they can be factored out: Then:

4 Reducing the Right Hand Side We will now reduce each part of the equation separately. 1.Reducing: *We know from calculus: So,

5 Reducing the Left Hand Side 2.Reducing: From calculus we have the theorem: However,

6 Reducing the LHS (cont.) We know that there is no irrotational flow, therefore: So we are left with:

7 Reducing the LHS (Cont. 2) Since we have, and Then, we get:

8 Our Final Reduced Equation By combining The LHS and RHS we can find our reduced equation: We can then solve for the partial derivative of c with respect to t.

9 Storing Concentrations We are going to have to create a matrix called, concentration, to hold the approximate solutions. This matrix will consist of the number of nodes by the number of time intervals. So concentration will be: 1532 rows x N columns where

10 Discretizing the Equation Now that we have the equation for the concentration at a any point and any time, we need to solve that equation. The Problem: This equation cannot be solved because there are an infinite number of positions and infinite times. What we must do is create an approximation of that solution.

11 Discretizing the Partial Derivative We know that we can approximate By the definition of the derivative: Where c( k, t+1) is the concentration at position, k, at a certain time and c(k, t) is the concentration at position, k, at the previous time interval.

12 Discretizing the Second Partials We can also discretize We Know that: Similarly,

13 Discretizing the Second Partials So, is approximately,

14 Discretizing the Partials with respect to X. We also have, and. An approximation for the partial with respect to x is :

15 Discretizing the Partials with respect to y. An approximation for the partial with respect to x is :

16 Our Final Discretized Equation

17 How this Equation Works The unknown in this equation is the term: We know Delta x and Delta y, because those are the increments in which we created the original grid. c(k,t) is the concentration at that node, k, at the previous time interval. The other terms are just the North, South, East, and West Neighbors of the central node, K, at the previous time.

18 How the Equation Works 2 Matt created the programs nbfind.m and nb.m to search through and locate all neighboring nodes to node k. Now we know each neighbor and can use that neighbor to calculate the central node,K, at the next time, t+1.

19 The Equation with Neighboring Nodes Note: Here, m, denotes the level of time.

20 Conditions To approximate the solution we must first have the Initial and boundary conditions. –Initial conditions: c(x, y, 0) = g(x) for all x, y in our domain. Where g(x) is some function to be specified later. –Boundary conditions: c(x, y, t) = 0 for x, y on our boundary at any time, t.

21 Creating the Algorithm Create a matrix, concentrations, that is 1532x(the number of time intervals we will check). Set initial condition Loop through the nodes to determine if it is and interior node. If it is an interior node, use the recursive equation to calculate the concentration, if not then, it is a boundary node and use the boundary condition

22