summaryrefslogtreecommitdiff
path: root/2339/CH3/EX3.7.1/Ex3_7.sce
blob: 861165d338d28046ab637f22aa60ec144a29db73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
clc
clear

//Inputs
//The Values in the program are as follows:
//Temperature in Celcius converted to Kelvin(by adding 273)
//Pressure in bar converted to kPa (by multiplying 100)
//Volume in m^3
//Value of R,Cp and Cv in kJ/kg K
n=1.3;
m=1;
T1=300;
T2=200;
W=90;
Ro=8.3143;
R=((n-m)*W)/((T1-T2)*m);
M=Ro/R;
printf('The molecular mass of gas is: %3.1f kg/kg mole',M);
printf('\n');