From a vibration measurement on a machine, the damping ratio and undamped vibration frequency are calculated as 0.36 and 24 Hz, respectively. Vibration magnitude is 1.2 and phase angle is -42 o . Write the MATLAB code to plot the graph of the vibration signal. Graph Plotting: Graph Plotting Example 7: ) 73 . 0 t 7 . 140 cos( e 2 . 1 ) t ( y t 3 . 54 Given: =0.36 ω 0 =24*2*π (rad/s) A=1.2 Φ=-42*π/180 (rad)=- 0.73 rad ω 0 =150.796 rad/s ω -σ 3 . 54 796 . 150 * 36 . 0 0 s / rad 7 . 140 36 . 0 1 * 796 . 150 1 2 2 0 2 0 2 0 α 0 cos s 0416 . 0 796 . 150 1415 . 3 * 2 2 T 0 0 s 002 . 0 20 0416 . 0 20 T t 0 s 1155 . 0 36 . 0 0416 . 0 T t 0 s
27
Embed
From a vibration measurement on a machine, the damping ratio and undamped vibration frequency are calculated as 0.36 and 24 Hz, respectively. Vibration.
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
From a vibration measurement on a machine, the damping ratio and undamped vibration frequency are calculated as 0.36 and 24 Hz, respectively. Vibration magnitude is 1.2 and phase angle is -42o. Write the MATLAB code to plot the graph of the vibration signal.
clc, clearx=[1 1]; xe=[0.01 0.01];niter1= 5; niter2=50;fe=transpose(abs(fe));kerr=1;for n=1:niter2x%-----Error equations------------------------a(1,1)=2*cos(2*x(1))-3;a(1,2)=3*x(2)^2;a(2,1)=2*x(1);a(2,2)=2*x(2)+1;b(1)=-(sin(2*x(1))+x(2)^3-3*x(1)+1);b(2)=-(x(1)^2+x(2)^2+x(2)-1);%-------------------------------------------------------bb=transpose(b);eps=inv(a)*bb;x=x+transpose(eps); if n>niter1 if abs(eps)<xe kerr=0; break else display ('Roots are not found') end endend
Solution of system of nonlinear equations:
16)1b(a2
11b2)1a(323
22
How do you calculate a and b, which satisfy given equations by computer?
clc, clearx=[1 1]; xe=[0.01 0.01];niter1= 5; niter2=50;fe=transpose(abs(fe));kerr=1;for n=1:niter2x%-----Error equations------------------------a(1,1)=6*x(1);a(1,2)=4*x(2);a(2,1)=6*x(1)^2;a(2,2)=2*(x(2)-1);b(1)=-(3*(x(1)^2-1)+2*x(2)^2-11);b(2)=-(2*x(1)^3+(x(2)-1)^2-16);%-------------------------------------------------------bb=transpose(b);eps=inv(a)*bb;x=x+transpose(eps); if n>niter1 if abs(eps)<xe kerr=0; break else display ('Roots are not found') end endend
Lagrange Interpolation:
Example:The temperature (T) of a medical cement increases continuously as the solidification time (t) increases. The change in the cement temperature was measured at specific instants and the measured temperature values are given in the table. Find the cement temperature at t=36 (sec).
68*)1555)(555(
)15t)(5t(43*
)5515)(515()55t)(5t(
30*)555)(155()55t)(15t(
)t(T
C51.6168*)1555)(555()1536)(536(
43*)5515)(515()5536)(536(
30*)555)(155(
)5536)(1536()t(T o
Lagrange Interpolation:
Example:The buckling tests were performed in order to find the critical buckling loads of a clamped-pinned steel beams having different thicknesses. The critical buckling loads obtained from the experiments are given in the table. Find the critical buckling load Pcr (N) of a steel beam with 0.8 mm thickness.
The x and y coordinates of three points on the screen, which were clicked by a CAD user are given in the figure. Find the y value of the curve obtained from these points at x=50.
a) Trapezoidal rule: Divide into for equal sections between 0.5 and 1. 125.04
5.01h
2f
fff2f
hI 4321
0TR
k θ f
0 0.5 0.6205
1 0.625 0.6411
2 0.75 0.6337
3 0.875 0.5996
4 1 0.5403
25403.0
5996.06337.06411.02
6205.0125.0ITR
3072.0ITR
Simpson’s Rule:
43210S ff4f2f4f3h
I
b) Simpson’s rule:
5403.05996.0*46337.0*26411.0*46205.03125.0
IS
3085.0IS
using Matlab
>>syms tet
>>I=int(sqrt(tet)*cos(tet),0.5,1);vpa(I,5)
I=0.30796
Lagrange Interpolation + Simpson’s Rule:
For a steel plate weighing 10 N and has a thickness 3 mm, the the coordinates of some points shown in the figure were measured (in cm) by a Coordinate Measuring Machine (CMM). How do you calculate the intensity of the steel by fitting a curve, which passes through these points. ?
)cm(V)kg(m3
a) Manual calculation:
The volume of the part is calculated by using its surface area and 0.3 cm thickness value. The simpson’s rule is used for area calculation. The x axis must be divided in equal segments in this method. Since the points are not equally spaced on the x axis, the necessary y values should be calculated at suitable x values.
x y
0 5
2.5 7.8
3.7 9.3
4 10
If we divide the interval 0-4 into four equal sections using the increment ∆x=1 , we can obtain the y values for x=1, x=2 and x=3.
10*)7.34)(5.24)(04()7.3x)(5.2x)(0x(
3.9*)47.3)(5.27.3)(07.3(
)4x)(5.2x)(0x(
8.7*)45.2)(7.35.2)(05.2(
)4x)(7.3x)(0x(5*
)40)(7.30)(5.20()4x)(7.3x)(5.2x(
y
Example:
10*)7.34)(5.24)(04()7.31)(5.21)(01(
3.9*)47.3)(5.27.3)(07.3(
)41)(5.21)(01(
8.7*)45.2)(7.35.2)(05.2(
)41)(7.31)(01(5*
)40)(7.30)(5.20()41)(7.31)(5.21(
)1(y
Lagrange Interpolation + Simpson’s Rule:
763.6)1(y
10*)7.34)(5.24)(04()7.32)(5.22)(02(
3.9*)47.3)(5.27.3)(07.3(
)42)(5.22)(02(
8.7*)45.2)(7.35.2)(05.2(
)42)(7.32)(02(5*
)40)(7.30)(5.20()42)(7.32)(5.22(
)2(y
4969.7)2(y
10*)7.34)(5.24)(04()7.33)(5.23)(03(
3.9*)47.3)(5.27.3)(07.3(
)43)(5.23)(03(
8.7*)45.2)(7.35.2)(05.2(
)43)(7.33)(03(5*
)40)(7.30)(5.20()43)(7.33)(5.23(
)3(y
2323.8)3(y
x y
0 5
1 6.763
2 7.4969
3 8.2323
4 10
Lagrange Interpolation + Simpson’s Rule:
b) With computer:
For calculation with computer, MATLAB code is arranged to find the y values for x=1, x=2 and x=3 and the code Lagr.I is run.
The area of the plate can be calculated by using Simpson’s rule. Then, the density of the steel can be calculated as mentioned before.
A stationary car starts to move with the acceleration given below
1t
)tsin(1a
2
3
Find the speed of the car at the end of 10 seconds
a) Manually
b) With computer
0 2 4 6 8 10 120
0.2
0.4
0.6
0.8
1
1.2
1.4
Zaman (s)
İvm
e m
/s2
a)
10
010t
v
0
t
0
dtavdtadvdtdv
a
1t
)tsin(1a
2
3
5.24
010n
abth
k t f0 0 1
1 2.5 0.40216
2 5 0.0753
3 7.5 0.2358
4 10 0.18178
4n,1t
)tsin(1f
2
3
43210 ff4f2f4f3h
Iv
s/m236.318178.02358.0*40753.0*240216.0*4135.2
Iv
b) With computer
using Matlab>>syms t>>I=int((1+sin(t)^3)/sqrt(t^2+1),0,10);vpa(I,5)
Simpson’s Rule:
Find the intersection area of the curves y=x2+2 ile y=3x .
2xy 2
x3y
2xx3 2
02x3x2
Roots
2x1x
2
1
a2ac4bb
x2
2,1
2
1
2 ?dx2xx3
k x f0 1 0
1 1.25 0.1875
2 1.5 0.25
3 1.75 0.1875
4 2 0
43210 ff4f2f4f3h
IA
2br16667.001875.0*425.0*21875.0*40325.0
IA
using Matlab>>syms x>>I=int(3*x-x^2-2,1,2);vpa(I,5)
>> roots([1 -3 2])
System of linear equations:
05uzwz612w3u9z3w
How do you calculate u,w and z with computer?
5zwu12z6w3
9z3wu
5129
zwu
111630311
5129
111630311
zwu 1
With Matlabclc;cleara=[-1 1 -3;0 3 -6;1 1 1];b=[9;12;5];c=inv(a)*b 3z
10w8u
System of linear equations:
As a result of the equilibrium conditions, the equations given below are obtained for a truss system. How do you calculate the member forces FJD, FFD, FCD and FFC if FCK=6.157 kN and FCB=-3.888 kN are known?