summaryrefslogtreecommitdiff
path: root/479/CH2/EX2.1
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /479/CH2/EX2.1
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '479/CH2/EX2.1')
-rwxr-xr-x479/CH2/EX2.1/Example_2_1.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/479/CH2/EX2.1/Example_2_1.sce b/479/CH2/EX2.1/Example_2_1.sce
new file mode 100755
index 000000000..2f010bdf9
--- /dev/null
+++ b/479/CH2/EX2.1/Example_2_1.sce
@@ -0,0 +1,18 @@
+//Chemical Engineering Thermodynamics
+//Chapter 2
+//P-V-T Relations
+
+//Example 2.1
+clear;
+clc;
+
+//Given
+m = 140;//m is the mass of N2 in Kg
+P = 4.052*(10^5);//P is the pressure of the system in Pa
+V = 30;//V is the volume of the system in m^3
+R = 8314.4;// R is the gas constant
+
+//To determine temperature required
+T = P*V/((m/28)*R);//T is the temperature of the system in K
+mprintf('Temperature of the system is %f K',T);
+//end \ No newline at end of file