An Investigation into Iterative Methods for Solving Elliptic PDE s Andrew M Brown Computer Science/Maths Session (2000/2001)

Size: px
Start display at page:

Download "An Investigation into Iterative Methods for Solving Elliptic PDE s Andrew M Brown Computer Science/Maths Session (2000/2001)"

Transcription

1 An Investigation into Iterative Methods for Solving Elliptic PDE s Andrew M Brown Computer Science/Maths Session (000/001)

2 Summary The objectives of this project were as follows: 1) Investigate iterative methods for solving elliptic PDE s ) Implement with Matlab and assess their effectiveness 3) Investigate Multigrid methods to improve the performance of the basic iterative methods 4) Modify components of the Multigrid methods and compare the results 5) Apply the method to a non-linear problem I have selected a 1-dimensional model elliptic problem to study, and developed different methods for solving this problem. Their performance was evaluated with respect to a variety of the methods parameters. The minimum requirements of objectives 1-3 were all met during the course of the project. After the minimum requirements were completed I decided to focus on objective 4 rather than moving on to objective 5.

3 Acknowledgements I would like to thank Mark Walkley for his valuable input and support during this investigation.

4 Contents 1.0 Introduction Project Outline 1 1. Project Management 1.0 Background Research.1 Partial Differential Equations.. Elliptic Equations.3 Model Problem Numerical Methods for the Model Problem Finite Difference Method 4 3. Direct Method Iterative Method Jacobi Method Weighted Jacobi Method Gauss-Seidel Method Error Equation and Residual Two-Grid Correction Scheme Restriction and Interpolation Multigrid Method V-Cycle Scheme Good Initial Guess Implementation Direct Method Jacobi Method Weighted Jacobi Method Gauss-Seidel Method Restriction and Interpolation Calculating the Residual Multi-Structure Two-Grid Correction Scheme. 1

5 4.9 V-Cycle Scheme Initial Guess Work Units Results Jacobi Method Two-Grid Correction Scheme V-Cycle Scheme Initial Guess 5.5 Gauss-Seidel Method Iterative Methods, Evaluation Iterative Methods, Conclusions and Recommendations 8 References 9 Appendix A.. 30 Appendix.. 31

6 1.0 Introduction 1.1 Project Outline Investigate iterative methods for solving partial differential equations ( PDE s). Firstly basic iterative methods such as Jacobi and Gauss- Seidel are explored. The weaknesses of these methods should be apparent and we will see why there is a need for a more refined method such as Multigrid. The Multigrid method can then be implemented and examined to see how performance is improved in comparison to the straightforward methods investigated previously. The program Matlab can be used to implement these methods so that their effectiveness can be easily analysed and demonstrated using graphical techniques. 1. Project Management The project went to schedule as outlined in the mid-term report. All milestones were met by the dates specified. The only revision to the plan was not to investigate a non-linear problem, instead to spend extra time on modifying the Multigrid method further.

7 .0 - Background Research.1 Partial Differential Equations Partial differential equations ( PDE s) are very important in mathematics and engineering because the equations can model many real-life situations. Often these equations are too complicated to be solved using exact methods so we have to find numerical solutions. For linear equations in two dimensions there is a simple classification in terms of the general equation (Smith, 1978), ² u ² u a + b x² x y ² u u u + c + d + e + y² x y fu + g = 0 (where a, b, c, d, e, f and g may be functions of the independent variables x and y) as shown in the table below (Smith, 1978): Condition Type Example b² < ac Elliptic Laplace s Equation b² > ac Hyperbolic Wave Equation b² = 0 Parabolic Diffusion The remainder of this project will concentrate on elliptic PDE problems i.e. when b² < ac.. Elliptic Equations Elliptic equations are generally associated with equilibrium or steady-state problems. Two well known elliptic equations (in one-dimension) are: Poisson s equation: Laplace s equation: d u + g = 0 dx d u dx = 0 where we have dependent variable u(x), independent variable x and a function g = f (x). Poisson s equation can model incompressible viscous fluid, theories of electricity and magnetism. Laplace s equation can model the steady flow of heat or electricity, the irrotational flow of incompressible fluid, and potential problems in electricity and magnetism (Smith, 1978).

8 .3 Model Problem We are aiming to find numerical methods that can be applied to problems that cannot be handled analytically. However, if we are going to test the performance of the different methods we develop we need a model problem that can be solved both analytically and numerically. A simple problem is Poisson s equation in one dimension, with exact solution: u j = sin jkπ n which will be our model problem. The parameter k affects how oscillatory the solution is. When k is small the solution is smooth and when k is large it is more oscillatory. The graph below shows the exact solution of the problem when k = 1,3 and 6: u k=1 k= x k=

9 3.0 Numerical Methods for the Model Problem 3.1 Finite Difference Method The finite difference method (FDM) is a method for numerically solving PDE s. As we have already seen in section the model PDE involves an unknown function u(x) defined for all x in the domain. We can then use the FDM to determine an approximation for u(x). We can see from the graph how we would divide the curve (function of x) into two sectors with width h. u(x) C A B u(x - h) u(x) u(x + h) x h x x + h x When a function u and its derivatives are single-valued, finite and continuous functions of x, then by Taylor s theorem (Smith, 1978), u(x + h) = u(x) + hu (x) + ½h²u (x) + 1/6h 3 u (x) +. (Equation 3.1.1) and also: u(x - h) = u(x) - hu (x) + ½h²u (x) - 1/6h 3 u (x) +. (Equation 3.1.) We can then add the expansions to get u(x + h) + u(x - h) = u(x) + h²u (x) + O(h 4 ) (Equation 3.1.3) where O(h 4 ) represents all the higher order terms. We now assume that this is very small in comparison to the lower powers of h, therefore it follows that, d u u (x) = dx 1 h {u(x + h) u(x) + u(x h)} (Equation 3.1.4) This technique can be extended to approximate derivatives of different order and in higher dimensions (Smith, 1978).

10 We consider the one dimensional Poisson s equation, d u dx = f(x) defined for x [0,1]. The range of x is split into n+1 equally spaced points. The second derivative can be approximated at point i using equation to give u j-1 u j + u j+1 = h². f j (Equation 3.1.5) where we define f j = f(x = x j = jh) and j is the point number. We are assuming Dirichlet boundary conditions for which u 1 and u n+1 are known. If the boundary conditions are in the form u(x) = u 1 at x= x 1 and u(x) = u n+1 at x = x n + 1. Then since we know u 1 and u n+1 we can write equation as (Briggs, 1987), -u + u 3 = h². f u 1, at point 1 u n-1 u n = h². f n u n+1, at point n+1 We can see that when the equations are written like this, that all the unknowns are on the left hand side and the known on the right hand side. This allows us to put equation in matrix form, which can be seen below. This is in the form of a simple matrix equation, Au = f - 1 u h². f u u 3 h². f 3 = 1-1 u i h². f i 1-1 u n-1 h². f n u n h². f n u n + 1 in which A is tridiagonal. This system of equations must be solved to give our numerical solution for u(x). 3. Direct Method This method is called the direct method because it calculates the numerical solution of the difference equations in one step. When equation is put into the form of the matrix equation (as described at the end of the last section) it can be solved using several methods (Van Loan, 1997), however we will be using a numerical function in the program Matlab to solve equations of this kind quickly and efficiently. 3.3 Iterative Method

11 An iterative method is an alternative numerical technique used to solve a linear system of equations. An initial guess is used to approximate the solution. The idea behind an iterative method is that we use the initial guess in the first iteration and then get an improved solution. As we iterate further the approximation should ideally converge to the exact solution. Sections investigate three common iterative methods. 3.4 Jacobi Method Also known as simultaneous displacement the Jacobi method is formed by solving the j th equation of for the j th unknown u j. This results in an iteration scheme which may be written in component form as (Briggs, 1987), v (1) = v (0) + (h /)*r, where r j = (v j-1 v j + v j-1 )/(h²) ) + f j j n Before the first iteration we need v (0), which is known as an initial guess. This can be a vector with any numbers in it that we choose, the null vector is often used. v (1) can then be calculated and that effectively becomes v (0) for the next iteration. The iterations carry on until v (1) has converged to the solution. 3.5 Weighted Jacobi Method The weighted Jacobi method is similar to the Jacobi method except a damping factor is included. A damping factor means that the new approximation is found by adding a proportion of the residual to the old solution. It can be shown that the optimum value is /3 (Briggs, 000), when we work on more than one grid level. The Jacobi method (3.4) has a ratio of one. The weighted Jacobi method has the following iteration scheme which may be written in component form as: v (1) = v (0) + weight*(h /)*r, where r j = (v j-1 v j + v j-1 )/(h²) ) + f j j n 3.6 Gauss-Seidel Method The Gauss-Seidel method is very similar to the Jacobi method apart from the equations of Jacobi are used one at a time in sequence and elements that are in vector v are overwritten with the new elements as soon as they have been calculated. This results in a method which may be expressed in component form as (Briggs, 000), 1 v j ( v j 1 + v j+ 1 + h² f j ), j n

12 where the arrow notation stands for replacement or overwriting. In the Jacobi method updates can be done all at once but in the Gauss- Seidel method each component of the new iterate depends on components previously calculated. 3.7 Error Equation and Residual (Briggs, 000) If we take the exact equation Au = f, and define the residual, r, of the approximate solution v, r = f Av and also define the error, e = u v we can deduce: r = Au Av = A(u v) i.e Ae = r This equation can now be approximately solved using a relaxation method, e.g. Jacobi or Gauss- Seidel method. Before this equation can be solved we first need to calculate the residual. The residual is calculated using the following formula in component form: r j = (v j-1 v j + v j-1 )/(h²) ) + f j j n 3.8 Two-Grid Correction Scheme The problem with simpler iterative methods like the Jacobi method is that they tend to damp out high frequency components of error fastest but are less effective at damping low frequency errors. This reason has led people to develop methods based on the following heuristic (Drakos, 1993): 1) Perform some steps of a basic method in order to smooth out the error ) Restrict the current state of the problem to a subset of the grid points, the so-called coarse grid, and solve the resulting problem. 3) Interpolate the coarse grid solution back to the original grid, and perform a number of steps of the basic method again. The terms restrict and interpolate represent a transfer of information between grids, and are defined in section 3.9. Step 1 is called pre-smoothing and step 3 is called post-smoothing. The technique above is known as the two-grid correction scheme as only two grids are used; a fine grid Ω h and a coarse grid Ω h. If we start on a fine grid we can relax a few times with an initial guess v (0). We can then calculate the fine grid residual r h = f h A h v h and restrict it to Ω h. The equation A h e h = r h can be solved on Ω h to give us an

13 estimate of the error. We can then interpolate the coarse-grid error to Ω h and update the fine grid approximation by v h v h + e h. A number of relaxations can be done with initial guess v h to give us an improved solution. The same procedure can then be repeated until the necessary convergence is met. 3.9 Restriction and Interpolation (Briggs, 000) Restriction transforms points on Ω h to Ω h. Restriction will be denoted by h h h I h v = v, where we will be using the most obvious type of restriction, injection, where h h v j v j =, 0 j (n-1)/. An example of restriction can be seen below: Ω h to Ω h Interpolation transforms points on Ω h to Ω h. There are different ways of interpolation but we will use a technique called linear interpolation that is quite effective. The linear interpolation operator will be denoted h h I hv = h v, where interpolation can be seen below: v h h j = v j, and 1 h h ( h v j+ 1 v j + v j+ 1) =, 0 j n/ 1. An example of linear Ω h to Ω h 3.10 Multigrid Method V-Cycle Scheme The V-Cycle is the first true Multigrid method we have discussed. If we go back to section 3.8 and apply the method recursively to step it becomes a Multigrid method. We start at a fine grid and work down in stages to the coarsest grid. At each stage we calculate the residual and interpolate the residual to next grid down, calculate the error and then repeat the process until we reach the coarsest grid. We can then work our way back up from the coarsest grid correcting the solution and relaxing until we get back to the fine grid we started with. One important element that should be considered is that we will need an initial guess when solving the residual equations when working down to the coarsest grid. As we have no information about v, which represents the error, at these points we use an initial guess of 0. A recursive definition of the V-Cycle Scheme (Briggs, 000) is described below:

14 Vcycle(v h,f h ): 1. Relax n1 times on A h u h = f h with a given initial guess v h.. If Ω h = coarsest grid, then go to step 4. Else F h h h h I ( f A v h ), h v h 0, v h Vcycle h (v h,f h ). 3. Correct v h v h h h + I v. h 4. Relax n times on A h u h = f h with initial guess v h. The V-Cycle is just one class of (Briggs,1987). Multigrid scheme; another cycle scheme widely used is the W-cycle 3.11 Good Initial Guess A good way of improving a relaxation scheme is to have a good initial guess (define the initial guess as v0). A way of obtaining v0 is to start on a coarse grid and solve the equation A u = f using an iterative method such as the Jacobi method with a small number of iterations. We can then interpolate the solution v to a finer grid and solve using the same iterative method. We can repeat this process until we have an approximate solution on the required fine grid.

15 4.0 Implementation 4.1 Direct Method The direct method was implemented as a function. The function can be seen in the appendix section C.1. In section 3. we showed how it was possible to use the finite difference method to arrange the equations of the model problem so that all unknowns are on the left hand side and the known on the right hand side. This then gave us an equation in the form A u = f. The matrix, A, can be constructed within the function, but the right hand side (vector f) is passed into the function as a parameter. Vector u is calculated using an operator which solves equation of the form Au = f. The function is called by: direct(f), this will return u, which is correct to machine precision. 4. Jacobi Method The Jacobi method was implemented as a function. The function can be seen in the appendix section C.. In section 3.4 we deduced the iterative formula: v (1) = v (0) + (h /)*r, where r j = (v j-1 v j + v j-1 )/(h²) ) + f j j n Three parameters are passed into the function: i) v0, which is an initial guess at the solution u. ii) nt, the number of Jacobi iterations we wish to do. iii) f, the right hand side of the equation Au = f. The function is called by: jac(v0, nt, f), this will return approximation v. 4.3 Weighted Jacobi Method The implementation of the weighted Jacobi method is very trivial since we already have a function for the Jacobi method. We just need to multiply the residual by a damping factor, which has been named omega. Omega is presently set to what has been proved as the optimal value in Briggs, of /3. The updated Jacobi function can be seen in the appendix in section C.3. The parameters are the same as for the Jacobi method.

16 4.4 Gauss-Seidel Method The Gauss-Seidel method was implemented as a function. The function can be seen in the appendix section C.4. In section 3.6 we deduced the iterative formula: 1 v j ( v j 1 + v j+ 1 + h² f j ) j n Three parameters are passed into the function: i) v0, which is an initial guess at the solution u. ii) nt, the number of Gauss-Seidel iterations we wish to do. iii) f, the right hand side of the equation Au = f. The function is called by: gauss(v0, nt, f), this will return approximation v. 4.5 Restriction and Interpolation Both the restriction and interpolation operators have been implemented as functions; the code can be seen in the appendix section s C.5 and C.6. The restriction function is called coarse, and the interpolation function is called fine. Each function takes parameter v and transfers the points on that grid to the specified coarser or finer grid. Restriction function is called by: course(v), which will restrict v to a courser grid. Interpolation function is called by: fine(v), which will interpolate v to a finer grid. 4.6 Calculating the Residual The residual is calculated in a function that has input variables, appendix section C.7. The residual, r is returned by the function; r = res(v, f) v and f. The function can be seen in the 4.7 Multi-Structure Before we can implement the two-grid correction scheme we need to design an efficient way of storing the Multigrid information. As we will be moving between grids we need to store v, f, r at each grid level. We can use a structure that has been named multi_struc (see appendix section C.8) to hold the information. This function needs the parameter ns, which stands for the number of levels we require. i.e. if n = 64 at the top level then ns = 6

17 Level 6 64 intervals Level 5 3 intervals Level 4 16 intervals Level 3 8 intervals Level 4 intervals Level 1 intervals The function will calculate the number of points required at each level and create v, f, and r at each level, initialising each parameter to the correct sized zero vector. E.g. ms(k).v will access the vector v on grid k. If we wanted to create a structure for when n = 64 and store the initial guess, we would type the following code: ms = multi_struc(6); ms(6).v = v0, where v0 is the initial guess. 4.8 Two-Grid Correction Scheme The two-grid correction scheme is the first program that will collectively use the functions that have been implemented in this section so far. The code can be seen in the appendix, section C.9. Below is a brief description of the two-grid method in terms of the functions we have created: 1. Create a structure using the function multi_struc. Although we will only be using two levels storage space (the finest grid and the level below) all levels down to the coarsest grid of two intervals will be created, as we will be using this same function for the Multigrid method.. Perform some relaxations on the finest grid using the jac function. Usually 1, or 3 iterations are used and we will explore what the optimum value for this is in chapter 5). 3. Calculate the residual of the finest grid using the res function 4. Restrict the residual to the course grid using the course function. 5. Perform some relaxations using the jac function to solve A h e h = r h on the coarser grid to give us an estimate of the error. 6. Interpolate the error to the finer grid using the fine function. Then add the error to the current solution get an improved solution. 7. Finally, perform further relaxation sweeps using the jac function. We can repeat steps 6 so that we are effectively doing more than one cycle of the scheme. In the code I have included an error counter, which calculates the error in the approximation after each cycle. We can then graph this array to show how the approximation improves/converges after each cycle.

18 4.9 V-Cycle Scheme The V-Cycle is constructed similarly to that described in section 4.8. The program can be seen in the appendix in section C.10. The main difference is that steps 4 (from the scheme in 4.8) are repeated until the coarsest grid has been reached. The coarsest grid is not necessarily the bottom level grid; there is a variable in the program named cg that determines the smallest level. Steps 5-6 are then repeated until we reach the top-level grid. We can then perform some final relaxations using the Jac function. Like the twogrid method we can repeat the cycle described above in order for the approximation to converge to the exact solution. There is also an error counter that stores the error in the approximation after each cycle. It is then possible to plot the error so that we have a graphical representation of how it decreases after each cycle Initial Guess The method described in section 3.11 describes how we find a solution to the equation A u = f on a coarse grid and then interpolate the solution to a finer grid. We can repeat this process on the current fine grid until we have a solution on the required grid size. Like the two-grid scheme and the multi-grid method we will need to create a structure that can hold the values of v and f at each grid level. The structure is named make_struc (see appendix section C.11), which calculates n at the coarsest level and initialises v and f with the zero vectors of length n. The process is repeated for the next level up and keeps repeating until we have initialised the finest grid. We now can use a function named initial_guess (see appendix section C.1) that uses the structure to formulate an initial guess. The function requires a structure (s), the level of the finest grid ( ns), the number of iterations to be performed at each level (nt), the solution parameter k, for initiating f on each grid (k) and the level of the coarsest grid ( icg). The function will return a vector v0, which is the initial guess. An example of how we would create a structure and calculate an initial guess is as follows: s = make_struc(ns) v0 = initial_guess(s, ns, nt, k, icg)

19 4.11 Work Units We have implemented four iterative methods for solving the equation Au = f: 1. Jacobi Method. Gauss-Seidel Method 3. Two-Grid Correction Scheme 4. V-Cycle Multigrid Method A good way to compare how well the methods work is to measure the amount of work the computer has to do to get a good approximation to the exact solution for each of the methods. We can define: 1 work unit = 1 iteration of a relaxation method on the finest grid restriction from the finest grid calculating the residual on the finest grid ½ work unit = 1 iteration of a relaxation method on the grid below the finest grid interpolation from the grid below the finest grid restriction from the grid below the finest grid calculating the residual on the grid below the finest grid. We can use the same concept to devise work units for functions on lower grid levels than the ones described above. The function named multi_struc is now updated to include two more variables, work and error. We can calculate the error and how much work has been done after each function call and store the amounts in the work and error arrays. When the program is complete we can plot work versus error to show how the error decreases as the more work units we do. This allows us to compare the different methods by how much work they have to done to obtain a good approximation. We can also find optimum values for variables such as the coarsest grid (cg) and number of relaxations (nt) in the Multigrid method. When the initial guess is included in a program we need to make sure we calculate the amount of work done to get the initial guess. This is done in a little loop that calculates the work done on the finest level, work done on the next grid down,., work done on the coarsest grid. The error in the approximation is also calculated and these two values are the first values to be stored in the work and error arrays. I have written three programs that all calculate an initial guess and plot the error against the work done for each of the following three methods: Jacobi Method, Two-Grid Correction Scheme and the V-Cycle. These can be seen in the appendix section C.13, C14 and C15 respectively.

20 5.0 Results We are now ready to analyse the methods we have implemented. All the methods are set up to solve the model problem. Within each program there are lots of variables that need to be considered in this section. We will try and find optimum values for the variables that affect the performance for this particular problem. However we need to remember that these values may not be the optimum values when solving another problem. It is sensible to fix some of the variables when comparing the methods for continuity purposes. A sensible number of intervals on the finest grid is 64, as this is not to large that computational time will be extreme and it is not to small that the problem is easy to solve. We also need to compare how the methods can solve both smooth and oscillatory curves. The variable k effects the period so for each method we will set k to three values: 1 (representing a smooth solution), 3 and 6 (representing an oscillatory solution). An important point we should consider now is the error in the approximation. The model problem, d u dx = f has the exact solution u(x). Our methods are derived from the Finite Difference Method that has exact solution u, satisfying Au = f with approximation u j, j = 1,.., n The FDM has an error of O(h ) from the exact solution. i.e. u(x j ) u j = 0(h ) In section 3. we derived the Direct Method that solves the FDM to machine precision. So we can measure the error by taking a norm of the approximate solution of FDM method (e.g. Jacobi, Multigrid, etc) minus the exact solution of the FDM method (Direct Method). In a series of experiments we will evaluate the methods we have implemented in section 4.

21 5.1 Jacobi Method Experiment 5.1A: How does the Jacobi method behave? Fig K = 3 K = 1 Variables set to: K = 6 n = 64 nt = 00 k = 1,3 and 6 Inference: We can see that when the curve is very smooth i.e. k = 1, the Jacobi method s convergence is very poor indeed. When k = 3 the approximation is converging slowly and when k = 6 (the solution is relatively oscillatory), the approximation is converging more rapidly. The problem with the Jacobi method is that it tends to damp out high frequency components of error fastest but is less effective at damping low frequency errors. 5. Two-Grid Correction Scheme Experiment 5.A: How does the two-grid correction scheme behave compared to the Jacobi method? Fig 5..1 (k = 1) Fig 5.. (k = 3) Jacobi Jacobi Two- Grid Two- Grid

22 Fig 5..3 (k = 6) Variables Set to: n = 64 ns = 6 Jacobi Iterations = 80 nt = 3 cycles = 40 Inference: The two-grid correction scheme converges at a faster speed than the Jacobi method in all three cases. The approximation converges to machine precision for the more oscillatory case after only 0 work units. When k=1 the approximation is not very good, after 80 work units the norm of the error is approximately 0.5 which is not very accurate at all. There is significant improvement when k=3 as the norm of the error is correct to the exact solution to the nearest one thousandth where as with the Jacobi method it was only correct to within one tenth. Experiment 5.B: How does the two-grid correction scheme behave when we use the weighted function? Key Two-Grid with Jacobi Two-Grid with weighted Jacobi Fig 5..4 Jacobi Variables set to: n = 64 nt = 80 k = 1,3 and 6 Inference: It is clear that the weighted Jacobi method is not as effective as the Jacobi method when we are working on two grids.

23 Experiment 5.C: How does the two-grid correction scheme behave when we change the number of relaxations from 3? Fig 5..5 (k = 1) Fig 5..7 (k = 6) Variables Set to: n = 64 ns = 6 nt = 1,, 3, 4, 5 and 6 cycles = 70, 51, 40, 33, 8 and 4 Key n t = 1 n t = n t = 3 n t = 4 n t = 5 n t = 6 Inference: For all three values of k either 3 or 5 iterations is the optimum number of relaxations. We have used three relaxations in the other two-grid scheme experiments so far, however when k = 1 and 3 five relaxations produces the best results. When k = 6 three relaxations is the best. 5.3 V-Cycle Scheme Experiment 5.3A: How does the V-Cycle scheme behave compared to the Correction Scheme? Jacobi method and Two-grid Key to Diagrams Jacobi Method V-Cycle Scheme

24 Fig (k = 1)

What is Multigrid? They have been extended to solve a wide variety of other problems, linear and nonlinear.

What is Multigrid? They have been extended to solve a wide variety of other problems, linear and nonlinear. AMSC 600/CMSC 760 Fall 2007 Solution of Sparse Linear Systems Multigrid, Part 1 Dianne P. O Leary c 2006, 2007 What is Multigrid? Originally, multigrid algorithms were proposed as an iterative method to

More information

Introduction to Multigrid and its Parallelization

Introduction to Multigrid and its Parallelization Introduction to Multigrid and its Parallelization! Thomas D. Economon Lecture 14a May 28, 2014 Announcements 2 HW 1 & 2 have been returned. Any questions? Final projects are due June 11, 5 pm. If you are

More information

Smoothers. < interactive example > Partial Differential Equations Numerical Methods for PDEs Sparse Linear Systems

Smoothers. < interactive example > Partial Differential Equations Numerical Methods for PDEs Sparse Linear Systems Smoothers Partial Differential Equations Disappointing convergence rates observed for stationary iterative methods are asymptotic Much better progress may be made initially before eventually settling into

More information

Multigrid Pattern. I. Problem. II. Driving Forces. III. Solution

Multigrid Pattern. I. Problem. II. Driving Forces. III. Solution Multigrid Pattern I. Problem Problem domain is decomposed into a set of geometric grids, where each element participates in a local computation followed by data exchanges with adjacent neighbors. The grids

More information

PARALLEL METHODS FOR SOLVING PARTIAL DIFFERENTIAL EQUATIONS. Ioana Chiorean

PARALLEL METHODS FOR SOLVING PARTIAL DIFFERENTIAL EQUATIONS. Ioana Chiorean 5 Kragujevac J. Math. 25 (2003) 5 18. PARALLEL METHODS FOR SOLVING PARTIAL DIFFERENTIAL EQUATIONS Ioana Chiorean Babeş-Bolyai University, Department of Mathematics, Cluj-Napoca, Romania (Received May 28,

More information

f xx + f yy = F (x, y)

f xx + f yy = F (x, y) Application of the 2D finite element method to Laplace (Poisson) equation; f xx + f yy = F (x, y) M. R. Hadizadeh Computer Club, Department of Physics and Astronomy, Ohio University 4 Nov. 2013 Domain

More information

Contents. I The Basic Framework for Stationary Problems 1

Contents. I The Basic Framework for Stationary Problems 1 page v Preface xiii I The Basic Framework for Stationary Problems 1 1 Some model PDEs 3 1.1 Laplace s equation; elliptic BVPs... 3 1.1.1 Physical experiments modeled by Laplace s equation... 5 1.2 Other

More information

SELECTIVE ALGEBRAIC MULTIGRID IN FOAM-EXTEND

SELECTIVE ALGEBRAIC MULTIGRID IN FOAM-EXTEND Student Submission for the 5 th OpenFOAM User Conference 2017, Wiesbaden - Germany: SELECTIVE ALGEBRAIC MULTIGRID IN FOAM-EXTEND TESSA UROIĆ Faculty of Mechanical Engineering and Naval Architecture, Ivana

More information

Comparison of different solvers for two-dimensional steady heat conduction equation ME 412 Project 2

Comparison of different solvers for two-dimensional steady heat conduction equation ME 412 Project 2 Comparison of different solvers for two-dimensional steady heat conduction equation ME 412 Project 2 Jingwei Zhu March 19, 2014 Instructor: Surya Pratap Vanka 1 Project Description The purpose of this

More information

1.2 Numerical Solutions of Flow Problems

1.2 Numerical Solutions of Flow Problems 1.2 Numerical Solutions of Flow Problems DIFFERENTIAL EQUATIONS OF MOTION FOR A SIMPLIFIED FLOW PROBLEM Continuity equation for incompressible flow: 0 Momentum (Navier-Stokes) equations for a Newtonian

More information

Numerical Algorithms

Numerical Algorithms Chapter 10 Slide 464 Numerical Algorithms Slide 465 Numerical Algorithms In textbook do: Matrix multiplication Solving a system of linear equations Slide 466 Matrices A Review An n m matrix Column a 0,0

More information

An Efficient, Geometric Multigrid Solver for the Anisotropic Diffusion Equation in Two and Three Dimensions

An Efficient, Geometric Multigrid Solver for the Anisotropic Diffusion Equation in Two and Three Dimensions 1 n Efficient, Geometric Multigrid Solver for the nisotropic Diffusion Equation in Two and Three Dimensions Tolga Tasdizen, Ross Whitaker UUSCI-2004-002 Scientific Computing and Imaging Institute University

More information

Numerical Modelling in Fortran: day 6. Paul Tackley, 2017

Numerical Modelling in Fortran: day 6. Paul Tackley, 2017 Numerical Modelling in Fortran: day 6 Paul Tackley, 2017 Today s Goals 1. Learn about pointers, generic procedures and operators 2. Learn about iterative solvers for boundary value problems, including

More information

Chapter 13. Boundary Value Problems for Partial Differential Equations* Linz 2002/ page

Chapter 13. Boundary Value Problems for Partial Differential Equations* Linz 2002/ page Chapter 13 Boundary Value Problems for Partial Differential Equations* E lliptic equations constitute the third category of partial differential equations. As a prototype, we take the Poisson equation

More information

ETNA Kent State University

ETNA Kent State University Electronic Transactions on Numerical Analysis. Volume, 2, pp. 92. Copyright 2,. ISSN 68-963. ETNA BEHAVIOR OF PLANE RELAXATION METHODS AS MULTIGRID SMOOTHERS IGNACIO M. LLORENTE AND N. DUANE MELSON Abstract.

More information

PROGRAMMING OF MULTIGRID METHODS

PROGRAMMING OF MULTIGRID METHODS PROGRAMMING OF MULTIGRID METHODS LONG CHEN In this note, we explain the implementation detail of multigrid methods. We will use the approach by space decomposition and subspace correction method; see Chapter:

More information

Multigrid solvers M. M. Sussman sussmanm@math.pitt.edu Office Hours: 11:10AM-12:10PM, Thack 622 May 12 June 19, 2014 1 / 43 Multigrid Geometrical multigrid Introduction Details of GMG Summary Algebraic

More information

1 2 (3 + x 3) x 2 = 1 3 (3 + x 1 2x 3 ) 1. 3 ( 1 x 2) (3 + x(0) 3 ) = 1 2 (3 + 0) = 3. 2 (3 + x(0) 1 2x (0) ( ) = 1 ( 1 x(0) 2 ) = 1 3 ) = 1 3

1 2 (3 + x 3) x 2 = 1 3 (3 + x 1 2x 3 ) 1. 3 ( 1 x 2) (3 + x(0) 3 ) = 1 2 (3 + 0) = 3. 2 (3 + x(0) 1 2x (0) ( ) = 1 ( 1 x(0) 2 ) = 1 3 ) = 1 3 6 Iterative Solvers Lab Objective: Many real-world problems of the form Ax = b have tens of thousands of parameters Solving such systems with Gaussian elimination or matrix factorizations could require

More information

2 T. x + 2 T. , T( x, y = 0) = T 1

2 T. x + 2 T. , T( x, y = 0) = T 1 LAB 2: Conduction with Finite Difference Method Objective: The objective of this laboratory is to introduce the basic steps needed to numerically solve a steady state two-dimensional conduction problem

More information

Finite Element Convergence for Time-Dependent PDEs with a Point Source in COMSOL 4.2

Finite Element Convergence for Time-Dependent PDEs with a Point Source in COMSOL 4.2 Finite Element Convergence for Time-Dependent PDEs with a Point Source in COMSOL 4.2 David W. Trott and Matthias K. Gobbert Department of Mathematics and Statistics, University of Maryland, Baltimore County,

More information

Richardson Extrapolation-Based High Accuracy High Efficiency Computation for Partial Differential Equations

Richardson Extrapolation-Based High Accuracy High Efficiency Computation for Partial Differential Equations University of Kentucky UKnowledge Theses and Dissertations--Computer Science Computer Science 24 Richardson Extrapolation-Based High Accuracy High Efficiency Computation for Partial Differential Equations

More information

Partial Differential Equations

Partial Differential Equations Simulation in Computer Graphics Partial Differential Equations Matthias Teschner Computer Science Department University of Freiburg Motivation various dynamic effects and physical processes are described

More information

Multigrid Third-Order Least-Squares Solution of Cauchy-Riemann Equations on Unstructured Triangular Grids

Multigrid Third-Order Least-Squares Solution of Cauchy-Riemann Equations on Unstructured Triangular Grids INTERNATIONAL JOURNAL FOR NUMERICAL METHODS IN FLUIDS Int. J. Numer. Meth. Fluids ; : 6 Prepared using fldauth.cls [Version: /9/8 v.] Multigrid Third-Order Least-Squares Solution of Cauchy-Riemann Equations

More information

Structured-grid multigrid with Taylor-Hood finite elements

Structured-grid multigrid with Taylor-Hood finite elements Structured-grid multigrid with Taylor-Hood finite elements by c Lukas Spies A thesis submitted to the School of Graduate Studies in partial fulfillment of the requirements for the degree of Masters of

More information

An introduction to mesh generation Part IV : elliptic meshing

An introduction to mesh generation Part IV : elliptic meshing Elliptic An introduction to mesh generation Part IV : elliptic meshing Department of Civil Engineering, Université catholique de Louvain, Belgium Elliptic Curvilinear Meshes Basic concept A curvilinear

More information

1 Exercise: 1-D heat conduction with finite elements

1 Exercise: 1-D heat conduction with finite elements 1 Exercise: 1-D heat conduction with finite elements Reading This finite element example is based on Hughes (2000, sec. 1.1-1.15. 1.1 Implementation of the 1-D heat equation example In the previous two

More information

Multigrid Algorithms for Three-Dimensional RANS Calculations - The SUmb Solver

Multigrid Algorithms for Three-Dimensional RANS Calculations - The SUmb Solver Multigrid Algorithms for Three-Dimensional RANS Calculations - The SUmb Solver Juan J. Alonso Department of Aeronautics & Astronautics Stanford University CME342 Lecture 14 May 26, 2014 Outline Non-linear

More information

An Adaptive Stencil Linear Deviation Method for Wave Equations

An Adaptive Stencil Linear Deviation Method for Wave Equations 211 An Adaptive Stencil Linear Deviation Method for Wave Equations Kelly Hasler Faculty Sponsor: Robert H. Hoar, Department of Mathematics ABSTRACT Wave Equations are partial differential equations (PDEs)

More information

NIA CFD Seminar, October 4, 2011 Hyperbolic Seminar, NASA Langley, October 17, 2011

NIA CFD Seminar, October 4, 2011 Hyperbolic Seminar, NASA Langley, October 17, 2011 NIA CFD Seminar, October 4, 2011 Hyperbolic Seminar, NASA Langley, October 17, 2011 First-Order Hyperbolic System Method If you have a CFD book for hyperbolic problems, you have a CFD book for all problems.

More information

Mid-Year Report. Discontinuous Galerkin Euler Equation Solver. Friday, December 14, Andrey Andreyev. Advisor: Dr.

Mid-Year Report. Discontinuous Galerkin Euler Equation Solver. Friday, December 14, Andrey Andreyev. Advisor: Dr. Mid-Year Report Discontinuous Galerkin Euler Equation Solver Friday, December 14, 2012 Andrey Andreyev Advisor: Dr. James Baeder Abstract: The focus of this effort is to produce a two dimensional inviscid,

More information

Driven Cavity Example

Driven Cavity Example BMAppendixI.qxd 11/14/12 6:55 PM Page I-1 I CFD Driven Cavity Example I.1 Problem One of the classic benchmarks in CFD is the driven cavity problem. Consider steady, incompressible, viscous flow in a square

More information

Module 1: Introduction to Finite Difference Method and Fundamentals of CFD Lecture 6:

Module 1: Introduction to Finite Difference Method and Fundamentals of CFD Lecture 6: file:///d:/chitra/nptel_phase2/mechanical/cfd/lecture6/6_1.htm 1 of 1 6/20/2012 12:24 PM The Lecture deals with: ADI Method file:///d:/chitra/nptel_phase2/mechanical/cfd/lecture6/6_2.htm 1 of 2 6/20/2012

More information

Linear Equation Systems Iterative Methods

Linear Equation Systems Iterative Methods Linear Equation Systems Iterative Methods Content Iterative Methods Jacobi Iterative Method Gauss Seidel Iterative Method Iterative Methods Iterative methods are those that produce a sequence of successive

More information

The WENO Method in the Context of Earlier Methods To approximate, in a physically correct way, [3] the solution to a conservation law of the form u t

The WENO Method in the Context of Earlier Methods To approximate, in a physically correct way, [3] the solution to a conservation law of the form u t An implicit WENO scheme for steady-state computation of scalar hyperbolic equations Sigal Gottlieb Mathematics Department University of Massachusetts at Dartmouth 85 Old Westport Road North Dartmouth,

More information

Performance Studies for the Two-Dimensional Poisson Problem Discretized by Finite Differences

Performance Studies for the Two-Dimensional Poisson Problem Discretized by Finite Differences Performance Studies for the Two-Dimensional Poisson Problem Discretized by Finite Differences Jonas Schäfer Fachbereich für Mathematik und Naturwissenschaften, Universität Kassel Abstract In many areas,

More information

Application of Finite Volume Method for Structural Analysis

Application of Finite Volume Method for Structural Analysis Application of Finite Volume Method for Structural Analysis Saeed-Reza Sabbagh-Yazdi and Milad Bayatlou Associate Professor, Civil Engineering Department of KNToosi University of Technology, PostGraduate

More information

How to Optimize Geometric Multigrid Methods on GPUs

How to Optimize Geometric Multigrid Methods on GPUs How to Optimize Geometric Multigrid Methods on GPUs Markus Stürmer, Harald Köstler, Ulrich Rüde System Simulation Group University Erlangen March 31st 2011 at Copper Schedule motivation imaging in gradient

More information

PATCH TEST OF HEXAHEDRAL ELEMENT

PATCH TEST OF HEXAHEDRAL ELEMENT Annual Report of ADVENTURE Project ADV-99- (999) PATCH TEST OF HEXAHEDRAL ELEMENT Yoshikazu ISHIHARA * and Hirohisa NOGUCHI * * Mitsubishi Research Institute, Inc. e-mail: y-ishi@mri.co.jp * Department

More information

Semester Final Report

Semester Final Report CSUMS SemesterFinalReport InLaTex AnnKimball 5/20/2009 ThisreportisageneralsummaryoftheaccumulationofknowledgethatIhavegatheredthroughoutthis semester. I was able to get a birds eye view of many different

More information

Space Filling Curves and Hierarchical Basis. Klaus Speer

Space Filling Curves and Hierarchical Basis. Klaus Speer Space Filling Curves and Hierarchical Basis Klaus Speer Abstract Real world phenomena can be best described using differential equations. After linearisation we have to deal with huge linear systems of

More information

Numerical Methods for PDEs : Video 11: 1D FiniteFebruary Difference 15, Mappings Theory / 15

Numerical Methods for PDEs : Video 11: 1D FiniteFebruary Difference 15, Mappings Theory / 15 22.520 Numerical Methods for PDEs : Video 11: 1D Finite Difference Mappings Theory and Matlab February 15, 2015 22.520 Numerical Methods for PDEs : Video 11: 1D FiniteFebruary Difference 15, Mappings 2015

More information

AMS527: Numerical Analysis II

AMS527: Numerical Analysis II AMS527: Numerical Analysis II A Brief Overview of Finite Element Methods Xiangmin Jiao SUNY Stony Brook Xiangmin Jiao SUNY Stony Brook AMS527: Numerical Analysis II 1 / 25 Overview Basic concepts Mathematical

More information

Parallel Performance Studies for COMSOL Multiphysics Using Scripting and Batch Processing

Parallel Performance Studies for COMSOL Multiphysics Using Scripting and Batch Processing Parallel Performance Studies for COMSOL Multiphysics Using Scripting and Batch Processing Noemi Petra and Matthias K. Gobbert Department of Mathematics and Statistics, University of Maryland, Baltimore

More information

Adaptive-Mesh-Refinement Pattern

Adaptive-Mesh-Refinement Pattern Adaptive-Mesh-Refinement Pattern I. Problem Data-parallelism is exposed on a geometric mesh structure (either irregular or regular), where each point iteratively communicates with nearby neighboring points

More information

CS205b/CME306. Lecture 9

CS205b/CME306. Lecture 9 CS205b/CME306 Lecture 9 1 Convection Supplementary Reading: Osher and Fedkiw, Sections 3.3 and 3.5; Leveque, Sections 6.7, 8.3, 10.2, 10.4. For a reference on Newton polynomial interpolation via divided

More information

3D Helmholtz Krylov Solver Preconditioned by a Shifted Laplace Multigrid Method on Multi-GPUs

3D Helmholtz Krylov Solver Preconditioned by a Shifted Laplace Multigrid Method on Multi-GPUs 3D Helmholtz Krylov Solver Preconditioned by a Shifted Laplace Multigrid Method on Multi-GPUs H. Knibbe, C. W. Oosterlee, C. Vuik Abstract We are focusing on an iterative solver for the three-dimensional

More information

CS 565 Computer Vision. Nazar Khan PUCIT Lectures 15 and 16: Optic Flow

CS 565 Computer Vision. Nazar Khan PUCIT Lectures 15 and 16: Optic Flow CS 565 Computer Vision Nazar Khan PUCIT Lectures 15 and 16: Optic Flow Introduction Basic Problem given: image sequence f(x, y, z), where (x, y) specifies the location and z denotes time wanted: displacement

More information

Finite Element Methods for the Poisson Equation and its Applications

Finite Element Methods for the Poisson Equation and its Applications Finite Element Methods for the Poisson Equation and its Applications Charles Crook July 30, 2013 Abstract The finite element method is a fast computational method that also has a solid mathematical theory

More information

MODELING MIXED BOUNDARY PROBLEMS WITH THE COMPLEX VARIABLE BOUNDARY ELEMENT METHOD (CVBEM) USING MATLAB AND MATHEMATICA

MODELING MIXED BOUNDARY PROBLEMS WITH THE COMPLEX VARIABLE BOUNDARY ELEMENT METHOD (CVBEM) USING MATLAB AND MATHEMATICA A. N. Johnson et al., Int. J. Comp. Meth. and Exp. Meas., Vol. 3, No. 3 (2015) 269 278 MODELING MIXED BOUNDARY PROBLEMS WITH THE COMPLEX VARIABLE BOUNDARY ELEMENT METHOD (CVBEM) USING MATLAB AND MATHEMATICA

More information

Lab - Introduction to Finite Element Methods and MATLAB s PDEtoolbox

Lab - Introduction to Finite Element Methods and MATLAB s PDEtoolbox Scientific Computing III 1 (15) Institutionen för informationsteknologi Beräkningsvetenskap Besöksadress: ITC hus 2, Polacksbacken Lägerhyddsvägen 2 Postadress: Box 337 751 05 Uppsala Telefon: 018 471

More information

Stream Function-Vorticity CFD Solver MAE 6263

Stream Function-Vorticity CFD Solver MAE 6263 Stream Function-Vorticity CFD Solver MAE 66 Charles O Neill April, 00 Abstract A finite difference CFD solver was developed for transient, two-dimensional Cartesian viscous flows. Flow parameters are solved

More information

A Hybrid Geometric+Algebraic Multigrid Method with Semi-Iterative Smoothers

A Hybrid Geometric+Algebraic Multigrid Method with Semi-Iterative Smoothers NUMERICAL LINEAR ALGEBRA WITH APPLICATIONS Numer. Linear Algebra Appl. 013; 00:1 18 Published online in Wiley InterScience www.interscience.wiley.com). A Hybrid Geometric+Algebraic Multigrid Method with

More information

Multigrid Reduction in Time for Nonlinear Parabolic Problems

Multigrid Reduction in Time for Nonlinear Parabolic Problems University of Colorado, Boulder CU Scholar Applied Mathematics Graduate Theses & Dissertations Applied Mathematics Spring 1-1-2017 Multigrid Reduction in Time for Nonlinear Parabolic Problems Ben O'Neill

More information

Multidimensional scaling

Multidimensional scaling Multidimensional scaling Lecture 5 Alexander & Michael Bronstein tosca.cs.technion.ac.il/book Numerical geometry of non-rigid shapes Stanford University, Winter 2009 Cinderella 2.0 2 If it doesn t fit,

More information

smooth coefficients H. Köstler, U. Rüde

smooth coefficients H. Köstler, U. Rüde A robust multigrid solver for the optical flow problem with non- smooth coefficients H. Köstler, U. Rüde Overview Optical Flow Problem Data term and various regularizers A Robust Multigrid Solver Galerkin

More information

AMS526: Numerical Analysis I (Numerical Linear Algebra)

AMS526: Numerical Analysis I (Numerical Linear Algebra) AMS526: Numerical Analysis I (Numerical Linear Algebra) Lecture 20: Sparse Linear Systems; Direct Methods vs. Iterative Methods Xiangmin Jiao SUNY Stony Brook Xiangmin Jiao Numerical Analysis I 1 / 26

More information

Strömningslära Fluid Dynamics. Computer laboratories using COMSOL v4.4

Strömningslära Fluid Dynamics. Computer laboratories using COMSOL v4.4 UMEÅ UNIVERSITY Department of Physics Claude Dion Olexii Iukhymenko May 15, 2015 Strömningslära Fluid Dynamics (5FY144) Computer laboratories using COMSOL v4.4!! Report requirements Computer labs must

More information

Influence of mesh quality and density on numerical calculation of heat exchanger with undulation in herringbone pattern

Influence of mesh quality and density on numerical calculation of heat exchanger with undulation in herringbone pattern Influence of mesh quality and density on numerical calculation of heat exchanger with undulation in herringbone pattern Václav Dvořák, Jan Novosád Abstract Research of devices for heat recovery is currently

More information

Numerical Methods to Solve 2-D and 3-D Elliptic Partial Differential Equations Using Matlab on the Cluster maya

Numerical Methods to Solve 2-D and 3-D Elliptic Partial Differential Equations Using Matlab on the Cluster maya Numerical Methods to Solve 2-D and 3-D Elliptic Partial Differential Equations Using Matlab on the Cluster maya David Stonko, Samuel Khuvis, and Matthias K. Gobbert (gobbert@umbc.edu) Department of Mathematics

More information

Optical Flow Estimation with CUDA. Mikhail Smirnov

Optical Flow Estimation with CUDA. Mikhail Smirnov Optical Flow Estimation with CUDA Mikhail Smirnov msmirnov@nvidia.com Document Change History Version Date Responsible Reason for Change Mikhail Smirnov Initial release Abstract Optical flow is the apparent

More information

Fluent User Services Center

Fluent User Services Center Solver Settings 5-1 Using the Solver Setting Solver Parameters Convergence Definition Monitoring Stability Accelerating Convergence Accuracy Grid Independence Adaption Appendix: Background Finite Volume

More information

A High-Order Accurate Unstructured GMRES Solver for Poisson s Equation

A High-Order Accurate Unstructured GMRES Solver for Poisson s Equation A High-Order Accurate Unstructured GMRES Solver for Poisson s Equation Amir Nejat * and Carl Ollivier-Gooch Department of Mechanical Engineering, The University of British Columbia, BC V6T 1Z4, Canada

More information

Study and implementation of computational methods for Differential Equations in heterogeneous systems. Asimina Vouronikoy - Eleni Zisiou

Study and implementation of computational methods for Differential Equations in heterogeneous systems. Asimina Vouronikoy - Eleni Zisiou Study and implementation of computational methods for Differential Equations in heterogeneous systems Asimina Vouronikoy - Eleni Zisiou Outline Introduction Review of related work Cyclic Reduction Algorithm

More information

FOURTH ORDER COMPACT FORMULATION OF STEADY NAVIER-STOKES EQUATIONS ON NON-UNIFORM GRIDS

FOURTH ORDER COMPACT FORMULATION OF STEADY NAVIER-STOKES EQUATIONS ON NON-UNIFORM GRIDS International Journal of Mechanical Engineering and Technology (IJMET Volume 9 Issue 10 October 2018 pp. 179 189 Article ID: IJMET_09_10_11 Available online at http://www.iaeme.com/ijmet/issues.asp?jtypeijmet&vtype9&itype10

More information

Multigrid James Demmel

Multigrid James Demmel Multigrid James Demmel www.cs.berkeley.edu/~demmel/ma221 Review of Previous Lectures and Outline Review Poisson equation Overview of Methods for Poisson Equation Jacobi s method Gauss-Seidel method Red-Black

More information

MATLAB. Advanced Mathematics and Mechanics Applications Using. Third Edition. David Halpern University of Alabama CHAPMAN & HALL/CRC

MATLAB. Advanced Mathematics and Mechanics Applications Using. Third Edition. David Halpern University of Alabama CHAPMAN & HALL/CRC Advanced Mathematics and Mechanics Applications Using MATLAB Third Edition Howard B. Wilson University of Alabama Louis H. Turcotte Rose-Hulman Institute of Technology David Halpern University of Alabama

More information

MATHEMATICAL ANALYSIS, MODELING AND OPTIMIZATION OF COMPLEX HEAT TRANSFER PROCESSES

MATHEMATICAL ANALYSIS, MODELING AND OPTIMIZATION OF COMPLEX HEAT TRANSFER PROCESSES MATHEMATICAL ANALYSIS, MODELING AND OPTIMIZATION OF COMPLEX HEAT TRANSFER PROCESSES Goals of research Dr. Uldis Raitums, Dr. Kārlis Birģelis To develop and investigate mathematical properties of algorithms

More information

Finite Element Method. Chapter 7. Practical considerations in FEM modeling

Finite Element Method. Chapter 7. Practical considerations in FEM modeling Finite Element Method Chapter 7 Practical considerations in FEM modeling Finite Element Modeling General Consideration The following are some of the difficult tasks (or decisions) that face the engineer

More information

Lecture 4: examples of topological spaces, coarser and finer topologies, bases and closed sets

Lecture 4: examples of topological spaces, coarser and finer topologies, bases and closed sets Lecture 4: examples of topological spaces, coarser and finer topologies, bases and closed sets Saul Glasman 14 September 2016 Let s give the definition of an open subset of R. Definition 1. Let U R. We

More information

Chapter 6. Semi-Lagrangian Methods

Chapter 6. Semi-Lagrangian Methods Chapter 6. Semi-Lagrangian Methods References: Durran Chapter 6. Review article by Staniford and Cote (1991) MWR, 119, 2206-2223. 6.1. Introduction Semi-Lagrangian (S-L for short) methods, also called

More information

The Immersed Interface Method

The Immersed Interface Method The Immersed Interface Method Numerical Solutions of PDEs Involving Interfaces and Irregular Domains Zhiiin Li Kazufumi Ito North Carolina State University Raleigh, North Carolina Society for Industrial

More information

A Modified Spline Interpolation Method for Function Reconstruction from Its Zero-Crossings

A Modified Spline Interpolation Method for Function Reconstruction from Its Zero-Crossings Scientific Papers, University of Latvia, 2010. Vol. 756 Computer Science and Information Technologies 207 220 P. A Modified Spline Interpolation Method for Function Reconstruction from Its Zero-Crossings

More information

AMath 483/583 Lecture 24. Notes: Notes: Steady state diffusion. Notes: Finite difference method. Outline:

AMath 483/583 Lecture 24. Notes: Notes: Steady state diffusion. Notes: Finite difference method. Outline: AMath 483/583 Lecture 24 Outline: Heat equation and discretization OpenMP and MPI for iterative methods Jacobi, Gauss-Seidel, SOR Notes and Sample codes: Class notes: Linear algebra software $UWHPSC/codes/openmp/jacobi1d_omp1.f90

More information

Performance Comparison between Blocking and Non-Blocking Communications for a Three-Dimensional Poisson Problem

Performance Comparison between Blocking and Non-Blocking Communications for a Three-Dimensional Poisson Problem Performance Comparison between Blocking and Non-Blocking Communications for a Three-Dimensional Poisson Problem Guan Wang and Matthias K. Gobbert Department of Mathematics and Statistics, University of

More information

AMath 483/583 Lecture 24

AMath 483/583 Lecture 24 AMath 483/583 Lecture 24 Outline: Heat equation and discretization OpenMP and MPI for iterative methods Jacobi, Gauss-Seidel, SOR Notes and Sample codes: Class notes: Linear algebra software $UWHPSC/codes/openmp/jacobi1d_omp1.f90

More information

Journal of Engineering Research and Studies E-ISSN

Journal of Engineering Research and Studies E-ISSN Journal of Engineering Research and Studies E-ISS 0976-79 Research Article SPECTRAL SOLUTIO OF STEADY STATE CODUCTIO I ARBITRARY QUADRILATERAL DOMAIS Alavani Chitra R 1*, Joshi Pallavi A 1, S Pavitran

More information

Control Volume Finite Difference On Adaptive Meshes

Control Volume Finite Difference On Adaptive Meshes Control Volume Finite Difference On Adaptive Meshes Sanjay Kumar Khattri, Gunnar E. Fladmark, Helge K. Dahle Department of Mathematics, University Bergen, Norway. sanjay@mi.uib.no Summary. In this work

More information

Finite difference methods

Finite difference methods Finite difference methods Siltanen/Railo/Kaarnioja Spring 8 Applications of matrix computations Applications of matrix computations Finite difference methods Spring 8 / Introduction Finite difference methods

More information

Algorithms, System and Data Centre Optimisation for Energy Efficient HPC

Algorithms, System and Data Centre Optimisation for Energy Efficient HPC 2015-09-14 Algorithms, System and Data Centre Optimisation for Energy Efficient HPC Vincent Heuveline URZ Computing Centre of Heidelberg University EMCL Engineering Mathematics and Computing Lab 1 Energy

More information

Equations. resid(3:jm2:2,2:jm1:2)=a(3:jm2:2,2:jm1:2)*u(4:jm1:2,2:jm1:2)+& b(3:jm2:2,2:jm1:2)*u(2:jm3:2,2:jm1:2)+&

Equations. resid(3:jm2:2,2:jm1:2)=a(3:jm2:2,2:jm1:2)*u(4:jm1:2,2:jm1:2)+& b(3:jm2:2,2:jm1:2)*u(2:jm3:2,2:jm1:2)+& Chapter B19. Partial Differential Equations SUBROUTINE sor(a,b,c,d,e,f,u,rjac),nrerror REAL(DP), DIMENSION(:,:), INTENT(IN) :: a,b,c,d,e,f REAL(DP), INTENT(IN) :: rjac INTEGER(I4B), PARAMETER :: MAXITS=1000

More information

Asymptotic Error Analysis

Asymptotic Error Analysis Asymptotic Error Analysis Brian Wetton Mathematics Department, UBC www.math.ubc.ca/ wetton PIMS YRC, June 3, 2014 Outline Overview Some History Romberg Integration Cubic Splines - Periodic Case More History:

More information

HIGH ACCURACY MULTISCALE MULTIGRID COMPUTATION FOR PARTIAL DIFFERENTIAL EQUATIONS

HIGH ACCURACY MULTISCALE MULTIGRID COMPUTATION FOR PARTIAL DIFFERENTIAL EQUATIONS University of Kentucky UKnowledge University of Kentucky Doctoral Dissertations Graduate School 2010 HIGH ACCURACY MULTISCALE MULTIGRID COMPUTATION FOR PARTIAL DIFFERENTIAL EQUATIONS Yin Wang University

More information

Module 1 Lecture Notes 2. Optimization Problem and Model Formulation

Module 1 Lecture Notes 2. Optimization Problem and Model Formulation Optimization Methods: Introduction and Basic concepts 1 Module 1 Lecture Notes 2 Optimization Problem and Model Formulation Introduction In the previous lecture we studied the evolution of optimization

More information

Parallel Poisson Solver in Fortran

Parallel Poisson Solver in Fortran Parallel Poisson Solver in Fortran Nilas Mandrup Hansen, Ask Hjorth Larsen January 19, 1 1 Introduction In this assignment the D Poisson problem (Eq.1) is to be solved in either C/C++ or FORTRAN, first

More information

An Upwind Multigrid Method for Solving Viscous Flows on Unstructured Triangular Meshes

An Upwind Multigrid Method for Solving Viscous Flows on Unstructured Triangular Meshes An Upwind Multigrid Method for Solving Viscous Flows on Unstructured Triangular Meshes by Daryl Lawrence Bonhaus B.S. June 1990, University of Cincinnati A Thesis submitted to The Faculty of The School

More information

High Performance Computing: Tools and Applications

High Performance Computing: Tools and Applications High Performance Computing: Tools and Applications Edmond Chow School of Computational Science and Engineering Georgia Institute of Technology Lecture 15 Numerically solve a 2D boundary value problem Example:

More information

ALF USER GUIDE. Date: September

ALF USER GUIDE. Date: September ALF USER GUIDE R. VERFÜRTH Contents 1. Introduction 1 2. User interface 2 3. Domain and initial grid 3 4. Differential equation 9 5. Discretization 12 6. Solver 12 7. Mesh refinement 14 8. Number of nodes

More information

IEEE TRANSACTIONS ON IMAGE PROCESSING, VOL. 14, NO. 1, JANUARY

IEEE TRANSACTIONS ON IMAGE PROCESSING, VOL. 14, NO. 1, JANUARY IEEE TRANSACTIONS ON IMAGE PROCESSING, VOL 14, NO 1, JANUARY 2005 125 A General Framework for Nonlinear Multigrid Inversion Seungseok Oh, Student Member, IEEE, Adam B Milstein, Student Member, IEEE, Charles

More information

The Finite Element Method

The Finite Element Method The Finite Element Method A Practical Course G. R. Liu and S. S. Quek Chapter 1: Computational modeling An overview 1 CONTENTS INTRODUCTION PHYSICAL PROBLEMS IN ENGINEERING COMPUTATIONAL MODELLING USING

More information

Index. C m (Ω), 141 L 2 (Ω) space, 143 p-th order, 17

Index. C m (Ω), 141 L 2 (Ω) space, 143 p-th order, 17 Bibliography [1] J. Adams, P. Swarztrauber, and R. Sweet. Fishpack: Efficient Fortran subprograms for the solution of separable elliptic partial differential equations. http://www.netlib.org/fishpack/.

More information

Numerical Dynamic Programming. Jesus Fernandez-Villaverde University of Pennsylvania

Numerical Dynamic Programming. Jesus Fernandez-Villaverde University of Pennsylvania Numerical Dynamic Programming Jesus Fernandez-Villaverde University of Pennsylvania 1 Introduction In the last set of lecture notes, we reviewed some theoretical background on numerical programming. Now,

More information

Final Report. Discontinuous Galerkin Compressible Euler Equation Solver. May 14, Andrey Andreyev. Adviser: Dr. James Baeder

Final Report. Discontinuous Galerkin Compressible Euler Equation Solver. May 14, Andrey Andreyev. Adviser: Dr. James Baeder Final Report Discontinuous Galerkin Compressible Euler Equation Solver May 14, 2013 Andrey Andreyev Adviser: Dr. James Baeder Abstract: In this work a Discontinuous Galerkin Method is developed for compressible

More information

A Random Variable Shape Parameter Strategy for Radial Basis Function Approximation Methods

A Random Variable Shape Parameter Strategy for Radial Basis Function Approximation Methods A Random Variable Shape Parameter Strategy for Radial Basis Function Approximation Methods Scott A. Sarra, Derek Sturgill Marshall University, Department of Mathematics, One John Marshall Drive, Huntington

More information

Multigrid. James Demmel. Poisson s equation in 1D: T = Graph and stencil. 2 u/ x 2 = f(x)

Multigrid. James Demmel. Poisson s equation in 1D: T =   Graph and stencil. 2 u/ x 2 = f(x) Multigrid James Demmel www.cs.berkeley.edu/~demmel/ma221_spr16 Poisson s equation in 1D: 2 u/ x 2 = f(x) T = 2-1 -1 2-1 -1 2-1 -1 2-1 -1 2 Graph and stencil -1 2-1 1 2D Poisson s equation Similar to the

More information

Iterative Algorithms I: Elementary Iterative Methods and the Conjugate Gradient Algorithms

Iterative Algorithms I: Elementary Iterative Methods and the Conjugate Gradient Algorithms Iterative Algorithms I: Elementary Iterative Methods and the Conjugate Gradient Algorithms By:- Nitin Kamra Indian Institute of Technology, Delhi Advisor:- Prof. Ulrich Reude 1. Introduction to Linear

More information

The Total Variation Approach to Approximate Hyperbolic Wave Equations

The Total Variation Approach to Approximate Hyperbolic Wave Equations 2 CUMMING The Total Variation Approach to Approximate Hyperbolic Wave Equations Christine Cumming Faculty Sponsor: Dr. Robert H. Hoar, Department of Math ABSTRACT From ultrasound for medical purposes to

More information

Multigrid Methods for Markov Chains

Multigrid Methods for Markov Chains Multigrid Methods for Markov Chains Hans De Sterck Department of Applied Mathematics, University of Waterloo collaborators Killian Miller Department of Applied Mathematics, University of Waterloo, Canada

More information

Application of A Priori Error Estimates for Navier-Stokes Equations to Accurate Finite Element Solution

Application of A Priori Error Estimates for Navier-Stokes Equations to Accurate Finite Element Solution Application of A Priori Error Estimates for Navier-Stokes Equations to Accurate Finite Element Solution P. BURDA a,, J. NOVOTNÝ b,, J. ŠÍSTE a, a Department of Mathematics Czech University of Technology

More information

Solution of Ambrosio-Tortorelli Model for Image Segmentation by Generalized Relaxation Method

Solution of Ambrosio-Tortorelli Model for Image Segmentation by Generalized Relaxation Method Solution of Ambrosio-Tortorelli Model for Image Segmentation by Generalized Relaxation Method Pasqua D Ambra, Gaetano Tartaglione Institute for High-Performance Computing and Networking (ICAR), CNR, Via

More information

Chapter 7 Practical Considerations in Modeling. Chapter 7 Practical Considerations in Modeling

Chapter 7 Practical Considerations in Modeling. Chapter 7 Practical Considerations in Modeling CIVL 7/8117 1/43 Chapter 7 Learning Objectives To present concepts that should be considered when modeling for a situation by the finite element method, such as aspect ratio, symmetry, natural subdivisions,

More information