summaryrefslogtreecommitdiff
path: root/2762/CH1/EX1.4.1/1_4_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '2762/CH1/EX1.4.1/1_4_1.sce')
-rwxr-xr-x2762/CH1/EX1.4.1/1_4_1.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/2762/CH1/EX1.4.1/1_4_1.sce b/2762/CH1/EX1.4.1/1_4_1.sce
new file mode 100755
index 000000000..c8952e7eb
--- /dev/null
+++ b/2762/CH1/EX1.4.1/1_4_1.sce
@@ -0,0 +1,20 @@
+//Transport Processes and Seperation Process Principles
+//Chapter 1
+//Example 1.4-1
+//Introduction to engineering principles and units
+//given data
+//calculation of gas constant R
+//Assuming standard conditions
+p=14.7; //atmospheric pressure in psia
+v=359;//volume in feet cube
+n=1;//number of moles in lb mol
+t=492;//temp in degree R
+r=(p*v)/(n*t);//gas constant unit: (feet*feet*feet*psia)/(lb mol*degree R)
+mprintf("the gas constant in given units %f (ft3.psia/lb mol deg R)",r);
+//calculation in SI units
+P=101325;//pressure in pascals
+V=22.414;//volume in meter cube
+N=1;//moles in kg mol
+T=273.15;//temperature in kelvin
+R=(P*V)/(N*T);//gas constant unit:
+mprintf(" the gas constant in SI units %f (m3*Pa)/(kg mol K)",R);