blob: dab25d43a11ef233afd2d05464dc2c53e0840407 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
clear;
clc;
disp('Example 1.2');
//Given values
P1 = 138; // initial pressure,[kN/m^2]
V1 = .112; //initial volume,[m^3]
P2 = 690; // final pressure,[kN/m^2]
Gama=1.4; // heat capacity ratio
// solution
// since gas is following, PV^1.4=constant,hence
V2 =V1*(P1/P2)^(1/Gama); // final volume, [m^3]
mprintf('\n The new volume of the gas is = %f m^3\n',V2)
//End
|