blob: 91b6f135f5a03f65b8bd41c8294f5c22f179d6f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//Engineering and Chemical Thermodynamics
//Example 2.1
//Page no :33
clear ; clc
z1 = 10 ; //[m]
z2 = 0 ; //[m],Taking ground as state 2,reference
v1 = 0 ;
//From conservation of total energy we get
// (1/2*m*v2^2-1 / 2*m*v1^2)+(m*g*z2 - m*g*z1) = 0
// 1/2*m*v2^2 - m*g*z1 = 0
v2 = sqrt(2 * 9.8 * z1) ; //[m/s]
disp(" Example: 2.1 Page no : 33") ;
printf('\n Final velocity = %g (m/s) ',v2);
|