In Progress

Simple Matlab coding and a report for the code

FSH Oct-2017

Engineering Analysis and Numerical Methods: MECH-314-02/04

Fall 2017

Programming Assignment 2

Due:  October 23th, 2017

Problem: Bernoulli’s equation can be considered to be a statement of the conservation of energy

principle appropriate for flowing fluids. It states that for an inviscid flow of a fluid, an increase in

the speed of the fluid occurs simultaneously with a decrease in pressure or a decrease in the

fluid's potential energy. The principle is named after Daniel Bernoulli who published it in his book

Hydrodynamica in 1738.

Bernoulli’s equation for fluid flow in an open channel with a small bump (Fig. 1) is



ଶ ൅ ݄௢ ൌ ܳଶ

2ܾ݃ଶ݄ଶ ൅݄൅ܪ

ܳ ሺ݉ଷ⁄ ሻݏ = volume rate of flow

݃ ൌ 9.81 ሺ݉ ݏଶ ⁄ ሻ = gravitational acceleration

ܾ ൌ ሺܻ െ 1826ሻ/90) = width of channel ሺ݉ሻ, where ܻ is your birth year

݄௢ ൌ ሺܯ ൅ 92.5ሻ/110ሻ = upstream depth ሺ݉ሻ, where ܯ is your birth month

ܪ ൌ ሺܦ ൅ 209ሻ/3000ሻ = height of bump ሺ݉ሻ, where ܦ is your birth day

݄ ሺ݉ሻ= depth of water above the bump

Figure 1. Definition sketch

Write a MATLAB program to find ݄ for to five significant figures using the following methods:

Bisection, Modified False Position, Newton Raphson, and Secant.

Request the user to choose the root‐finding method and a value of ܳ between 40 and 60 ft3


Also, ask whether the user wishes to run the program again.

Have the code plot the function in the vicinity of the root and include the value of the function at

the root.

Explain your algorithm in detail in a short report. Attach a copy of your MATLAB code and sample

results to your report.  Also, submit a copy of the m‐file to Moodle.

FSH Oct-2017

Sample output:

--- Bernoulli’s Equation Program ---

--- [1]: Bisection Method

--- [2]: Modified False-position Method

--- [3]: Newton-Raphson Method

--- [4]: Secant Method

--- Enter value of Q (40 >= Q >= 60 ft^3/s): 41

--- Enter root finding technique: 3

-- Newton-Raphson Method –

--- b (m) ..... 1.8

--- h_0 (m) ... 0.9

--- H (m) ..... 0.075

-- Q(m^3/s) ... 1.161

-- Iter ....... 5

-- h(m) ....... 0.81961

-- ea(%) ...... 2.002366e-005

--- Enter 0 to STOP, 1 to REPEAT : 0

Skills: Matlab and Mathematica, Report Writing

See more: simple java project coding report, simple matlab code zero forcing equalizer, rbf examples simple matlab code, matlab programs examples pdf, matlab programs examples, matlab report generator example pdf, project report on matlab, how to use matlab report generator, matlab report generator pdf, matlab report example, matlab codes pdf, matlab & mathematica, simple media player source code, simple website banner layout code, simple firefox plugin sourec code extension, free simple cart php source code, free simple puzzle game source code xna, wpf report code, write simple text based game code, simple matlab projects

About the Employer:
( 3 reviews ) East Brunswick, United States

Project ID: #15414286

4 freelancers are bidding on average $29 for this job


Hello Dear I'm mohamed saeed .Aerospace engineer . I have checked your hob and I'm ready to help you .I'ts advanced numerical solution using different methods Relevant Skills and Experience math Proposed Milestones More

$25 USD in 1 day
(31 Reviews)

hello! please see some works related with numerical methods and matlab assignments in the following link [login to view URL] also I have knowledge about fluid me More

$40 USD in 2 days
(37 Reviews)

A proposal has not yet been provided

$25 USD in 1 day
(0 Reviews)

I am experienced engineer worked a lot on matlab. I am sure i can help you out Relevant Skills and Experience mathematics. Matlab Proposed Milestones $25 USD - Complete project

$25 USD in 3 days
(0 Reviews)