Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please TYPE out the code using MATLAB. It is difficult to read and understand code when it is handwritten. 1. Using your code from last

Please TYPE out the code using MATLAB. It is difficult to read and understand code when it is handwritten.

image text in transcribed

1. Using your code from last week (homework 5), set v- 1 then calculate (and store in an array) the value of u at the midpoint of the domain using 6, 12, 24, 48, and 96 segments. Then: a) Calculate and plot the changes in the solution between mesh sizes versus the mesh resolution from the coarser mesh using a loglog scale. Assuming you stored your midpoint values in an array called umid and your mesh resolutions in an array called hlist, this will be something like this for i-1:4 udiff(i) -umid(i)-umid(i+1) end loglog(hlist(1:4),udiff) (b) Use Richardson extrapolation with the three midpoint values calculated with 24,48, and 96 segments to estimate the constants, umideract, C, and for the following expression umidi-umidezact-Ch Estimate the percentage error in the calculation of the solution for the midpoint value. 2. Use COMSOL to solve the same boundary value problem as in homework 5. Repeat processes 1(a) and 1(b) above for meshes of the same resolution 1. Using your code from last week (homework 5), set v- 1 then calculate (and store in an array) the value of u at the midpoint of the domain using 6, 12, 24, 48, and 96 segments. Then: a) Calculate and plot the changes in the solution between mesh sizes versus the mesh resolution from the coarser mesh using a loglog scale. Assuming you stored your midpoint values in an array called umid and your mesh resolutions in an array called hlist, this will be something like this for i-1:4 udiff(i) -umid(i)-umid(i+1) end loglog(hlist(1:4),udiff) (b) Use Richardson extrapolation with the three midpoint values calculated with 24,48, and 96 segments to estimate the constants, umideract, C, and for the following expression umidi-umidezact-Ch Estimate the percentage error in the calculation of the solution for the midpoint value. 2. Use COMSOL to solve the same boundary value problem as in homework 5. Repeat processes 1(a) and 1(b) above for meshes of the same resolution

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2014 Nancy France September 15 19 2014 Proceedings Part 2 Lnai 8725

Authors: Toon Calders ,Floriana Esposito ,Eyke Hullermeier ,Rosa Meo

2014th Edition

3662448505, 978-3662448502

More Books

Students also viewed these Databases questions

Question

Name of one library database or web search engine searched.

Answered: 1 week ago