Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Matlab: The Manning equation can be written for a rectangular open channel as VS(BH)5/3 n(B 2H)2/3 where Q = flow (m/s), s = slope. H-depth

Matlab:

image text in transcribed

The Manning equation can be written for a rectangular open channel as VS(BH)5/3 n(B 2H)2/3 where Q = flow (m/s), s = slope. H-depth (m), and n = the Manning roughness coefficient. In a single m-file ps 4-3 . m, develop a fixed-point iteration scheme to solve this equation for H given O = 5 m's, s 0.0002, B = 20 m, and n = 0.03. Perform fixed-point iteration to a relative error tolerance of 10-4 Hint: if manipulated in its current form to the root-finding f(x) and then to g (x) = f(x) + x. the conditions for g'(x) will be unsuitable for fixed point iteration. By inverting the expression above, you will be able to develop a more suitable root-finding function f (and, subsequently, the fixed-point iteration function g) that will converge for initial guesses H>0 Note: While this demonstrates one possible strategy for making fixed point iteration work, you must be extremely careful not to create (or eliminate) roots through modification of the original function. In this case, H can only be positive so (B+2H) is not zero for any physical value of H Moreover, H= 0 is not a root of the original expression, so we do not risk eliminating a root when inverting the original expression. This requires extreme caution; plotting the original and new functions is always a good idea to ensure you're not missing anything important. This also emphasizes that fixed point iteration is generally best for functions that already have a specific form (like those discussed in class) The Manning equation can be written for a rectangular open channel as VS(BH)5/3 n(B 2H)2/3 where Q = flow (m/s), s = slope. H-depth (m), and n = the Manning roughness coefficient. In a single m-file ps 4-3 . m, develop a fixed-point iteration scheme to solve this equation for H given O = 5 m's, s 0.0002, B = 20 m, and n = 0.03. Perform fixed-point iteration to a relative error tolerance of 10-4 Hint: if manipulated in its current form to the root-finding f(x) and then to g (x) = f(x) + x. the conditions for g'(x) will be unsuitable for fixed point iteration. By inverting the expression above, you will be able to develop a more suitable root-finding function f (and, subsequently, the fixed-point iteration function g) that will converge for initial guesses H>0 Note: While this demonstrates one possible strategy for making fixed point iteration work, you must be extremely careful not to create (or eliminate) roots through modification of the original function. In this case, H can only be positive so (B+2H) is not zero for any physical value of H Moreover, H= 0 is not a root of the original expression, so we do not risk eliminating a root when inverting the original expression. This requires extreme caution; plotting the original and new functions is always a good idea to ensure you're not missing anything important. This also emphasizes that fixed point iteration is generally best for functions that already have a specific form (like those discussed in class)

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_2

Step: 3

blur-text-image_3

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

Making Databases Work The Pragmatic Wisdom Of Michael Stonebraker

Authors: Michael L. Brodie

1st Edition

1947487167, 978-1947487161

Students also viewed these Databases questions

Question

What is the correct citation for tl1e article?

Answered: 1 week ago

Question

List some problems associated with risk tolerance questionnaires.

Answered: 1 week ago