summaryrefslogtreecommitdiff
path: root/3831/CH5/EX5.5/Ex5_5.sce
blob: 02aa4388a7616a9bb1f28007056ab881307e7dc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Example 5_5
clc;funcprot(0);
// Given data
V_2=0.0400;// m^3
T_1=20.0;// °C
p_1=0.0100;// MPa
Q_12=0.100;// kJ
V_1=0.0100;// m^3
R=0.208;// kJ/kg.K
c_v=0.315;// kJ/kg.K

// Calculation
m=((p_1*10^3)*V_1)/(R*(T_1+273.15));// kg
T_2=T_1+(Q_12/(m*c_v));// K
p_2=(m*R*(T_2+273.15))/V_2;// kPa
printf('\nThe pressure and temperature inside the box after the balloon bursts p_2=%1.2f kPa and T_2=%3.0f°C',p_2,T_2);