Docsity

Sailboat - Solved Problems - Engineering Analysis Numerical Methods | ME 2004, Study notes of Mechanical Engineering

Toggle sidebar
bg1
Problem 17.10: Chapra
Description
The force on a sailboat mast can be represented by the following function:
f
(
z
)
=200
(
z
7+z
)
e
−2.5z/H
(lb/ft)
where z= the elevation above the deck and H = the height of the mast.
The total force F exerted on the mast is:
F=∫
0
H
f
(
z
)
dz
The line of action can also be determined by integration:
d=
∫
0
H
z f
(
z
)
dz
∫
0
H
f
(
z
)
dz
Objectives
Compute F and d with H= 30 ft using the following:
a) trapezoid rule for n=6
b) Simpsons’s 1/3 rule for n=6 (3 panels)
c) MATLAB’s ‘quad’ function
1
pf3

Partial preview of the text

Download Sailboat - Solved Problems - Engineering Analysis Numerical Methods | ME 2004 and more Study notes Mechanical Engineering in PDF only on Docsity!

Problem 17.10: Chapra

Description

The force on a sailboat mast can be represented by the following function:

f ( z )= 200 (

z

7 + z )

e

−2.5 z / H

(lb/ft)

where z= the elevation above the deck and H = the height of the mast.

The total force F exerted on the mast is:

F =∫

0 H

f ( z ) dz

The line of action can also be determined by integration:

d =

0 H

z f ( z ) dz

0 H

f (^ z )^ dz

Objectives

Compute F and d with H= 30 ft using the following:

a) trapezoid rule for n=

b) Simpsons’s 1/3 rule for n=6 (3 panels)

c) MATLAB’s ‘quad’ function

MATLAB Codes

%% sailBoat: Compute total force and line of action on a sail % % Input: H = Height of mast (ft) % % Output: F = Total force (lb) % d = Line of action (ft) %% --- define and examine forcing functions clc close all H = 30; % (ft) f = @(z) 200z./(7+z).exp(-2.5z/H); % (lb/ft) zf = @(z) z.f(z); z = linspace(0,H); subplot(2,1,1), plot(z,f(z)) xlabel('height, z (ft)'), ylabel('f (lb/ft)'), grid title('Wind force on a Sail') subplot(2,1,2), plot(z,zf(z)) xlabel('height, z (ft)'), ylabel('z*f (lb)'), grid %% --- total force Ftrap = my_trap(f,0,H,6); Fsimp = simpson(f,0,H,3); Fquad = quad(f,0,H); fprintf(' Total Force, F (lb) \n ---------------------- \n') fprintf(' Ftrap = %8.1f \n',Ftrap) fprintf(' Fsimp = %8.1f \n',Fsimp) fprintf(' Fquad = %8.1f \n',Fquad) %% --- line of action dtrap = my_trap(zf,0,H,6)/Ftrap; dsimp = simpson(zf,0,H,3)/Fsimp; dquad = quad(zf,0,H)/Fquad; fprintf('\n\n Line of Action, d (ft) \n ---------------------- \n') fprintf(' trap = %8.1f \n',dtrap) fprintf(' simp = %8.1f \n',dsimp) fprintf(' quad = %8.1f \n',dquad)