summaryrefslogtreecommitdiff
path: root/3689/CH6/EX6.14
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3689/CH6/EX6.14
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3689/CH6/EX6.14')
-rw-r--r--3689/CH6/EX6.14/6_14.sce27
1 files changed, 27 insertions, 0 deletions
diff --git a/3689/CH6/EX6.14/6_14.sce b/3689/CH6/EX6.14/6_14.sce
new file mode 100644
index 000000000..3763f93e9
--- /dev/null
+++ b/3689/CH6/EX6.14/6_14.sce
@@ -0,0 +1,27 @@
+////
+//Variable Declaration
+beta = 2.04e-4 //Thermal exapansion coefficient, /K
+kapa = 45.9e-6 //Isothermal compressibility, /bar
+T = 298.15 //Std. Temperature, K
+R = 8.206e-2 //Ideal gas constant, atm.L/(mol.K)
+T1 = 320.0 //Temperature, K
+Pi = 1.0 //Initial Pressure, bar
+V = 1.00 //Volume, m3
+a = 1.35 //van der Waals constant a for nitrogen, atm.L2/mol2
+P0 =1
+//Calculations
+dUbydV=(beta*T1-kapa*P0)/kapa
+;Pf=(beta*T1-kapa*P0)/kapa
+;
+dVT = V*kapa*(Pf-Pi)
+dVbyV = dVT*100/V
+Vm = Pi/(R*T1)
+dUbydVm = a/(Vm**2)
+
+//Results
+printf("\n dUbydV = %4.2e bar",dUbydV)
+
+printf("\n dVbyV = %4.3f percent",dVbyV)
+
+printf("\n dUbydVm = %4.0e atm",dUbydVm)
+