summaryrefslogtreecommitdiff
path: root/1247/CH1/EX1.1/example1_1.sce
blob: 4231398f6472d941bd66e0c6ac56a3f91a3d523f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
clear;
clc;

// Stoichiometry
// Chapter 1
// Dimensions and Units


// Example 1.1
// Page 12
printf("Example 1.1, Page 12 \n \n");

// solution

// Using conversion factors from table 1.3 (Pg 9)
q1 = 75 // [gallon/min] (volumetric flow rate)
q2 = 75/(60*.219969) // [dm^3/s]
row = 0.8 // [kg/dm^3]
q3 = q2*row // [kg/s] (mass flow rate)
printf("mass flow rate = "+string(q3)+" [kg/s] \n")