Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Objective To gain practical experience in writing code that computes a numerical solution of a PDE. Introduction In two dimensions, Laplace's Equation can be written

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Objective To gain practical experience in writing code that computes a numerical solution of a PDE. Introduction In two dimensions, Laplace's Equation can be written or + y = 0. for (x,y) where is the Region of Interest (ROI) inside which we want to solve the equation. In short form it can be written Au = 0 or = 0. Laplace's Equation needs a boundary condition to be well-posed. A Dirichlet boundary condition is sufficient, i.e, one that specifies the value of u at all points on 22. In other the words, the value of ur,y) needs to be given for all points (x,y) that are on the boundary of the ROI 1. For this coursework task, you need to write code that uses a numerical scheme to estimate the solution for Laplace's Equation for a ROI in a discrete grid of points. You will be given files that contain the following information Which grid points are on the boundary of the ROI and which are inside. The values of the function at the boundary points. In other words, the files describe the ROI and the boundary condition. Your code should read these files and then use iterative Jacobi methods to estimate the solution of Laplace's Equation inside the ROI Instructions You will be given two examples of problems to solve (i.e. the ROI information and boundary values for each). You should check that your code works with each one. When you are satisfied that your code is working, you will make up your own ROI and boundary values and test that your code still works. The data files for the example problems can be downloaded from KEATS. These include ROI_1.txt and bdry Values 1.txt for the first example problem. Each file contains an array of data. The left hand image below illustrates the contents of the file ROI_1.txt which describes a rectangular ROL. This is in the form of a 40 x 40 array with values of +1 for points inside the ROI (green in the diagram), 0 for points on the boundary (yellow), and -1 for points outside the boundary (red) The arrays are displayed wing the images You can assume that the points of the array (including those outside the ROI) correspond to a regular grid of points in the unit square {x,y): 0 SL epsilon return U Objective To gain practical experience in writing code that computes a numerical solution of a PDE. Introduction In two dimensions, Laplace's Equation can be written or + y = 0. for (x,y) where is the Region of Interest (ROI) inside which we want to solve the equation. In short form it can be written Au = 0 or = 0. Laplace's Equation needs a boundary condition to be well-posed. A Dirichlet boundary condition is sufficient, i.e, one that specifies the value of u at all points on 22. In other the words, the value of ur,y) needs to be given for all points (x,y) that are on the boundary of the ROI 1. For this coursework task, you need to write code that uses a numerical scheme to estimate the solution for Laplace's Equation for a ROI in a discrete grid of points. You will be given files that contain the following information Which grid points are on the boundary of the ROI and which are inside. The values of the function at the boundary points. In other words, the files describe the ROI and the boundary condition. Your code should read these files and then use iterative Jacobi methods to estimate the solution of Laplace's Equation inside the ROI Instructions You will be given two examples of problems to solve (i.e. the ROI information and boundary values for each). You should check that your code works with each one. When you are satisfied that your code is working, you will make up your own ROI and boundary values and test that your code still works. The data files for the example problems can be downloaded from KEATS. These include ROI_1.txt and bdry Values 1.txt for the first example problem. Each file contains an array of data. The left hand image below illustrates the contents of the file ROI_1.txt which describes a rectangular ROL. This is in the form of a 40 x 40 array with values of +1 for points inside the ROI (green in the diagram), 0 for points on the boundary (yellow), and -1 for points outside the boundary (red) The arrays are displayed wing the images You can assume that the points of the array (including those outside the ROI) correspond to a regular grid of points in the unit square {x,y): 0 SL epsilon return U

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The World Wide Web And Databases International Workshop Webdb 98 Valencia Spain March 27 28 1998 Selected Papers Lncs 1590

Authors: Paolo Atzeni ,Alberto Mendelzon ,Giansalvatore Mecca

1st Edition

3540658904, 978-3540658900

More Books

Students also viewed these Databases questions

Question

What is the principle of thermodynamics? Explain with examples

Answered: 1 week ago