summaryrefslogtreecommitdiff
path: root/3856/CH4/EX4.1
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3856/CH4/EX4.1
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 '3856/CH4/EX4.1')
-rw-r--r--3856/CH4/EX4.1/Ex4_1.sce37
-rw-r--r--3856/CH4/EX4.1/Ex4_1.txt3
2 files changed, 40 insertions, 0 deletions
diff --git a/3856/CH4/EX4.1/Ex4_1.sce b/3856/CH4/EX4.1/Ex4_1.sce
new file mode 100644
index 000000000..2f0628268
--- /dev/null
+++ b/3856/CH4/EX4.1/Ex4_1.sce
@@ -0,0 +1,37 @@
+//Calculate the value of work done if the expansion is carried out against a vacuum ,against a constant external pressure of 1.00 atm and reversibly
+
+//Example 4.1
+
+clc;
+
+clear;
+
+n=0.850; //Number of mole of gas in mol
+
+R1=0.08206; //Gas constant in L atm K^-1 mol^-1
+
+T=300; //Temperature in K
+
+P1=15.0; //Initial pressure in atm
+
+P2=1.00; //Final pressure in atm
+
+Pex=0; //Pressure in vaccum
+
+V1=(n*R1*T)/P1; //Initial volume
+
+V2=(n*R1*T)/P2; //Final volume
+
+w1=-Pex*(V2-V1)*101.3; //Work done against vaccum in J
+
+printf("(a)Work done if the expansion is carried out against a vaccum = %.0f J",w1);
+
+w2=-P2*(V2-V1)*101.3; //Work done against a constant external pressure in J
+
+printf("\n(b)Value of work done if the expansion is carried out against a constant external pressure = %.2f*10^3 J",w2*10^-3);
+
+R2=8.314; //Gas constant in J K^-1 mol^-1
+
+w3=(-n*R2*T)*log((P1/P2)); //Work done for an isothermal,reversible process in J
+
+printf("\n(c)Work done if the expansion is carried out for an isothermal,reversible process = %.2f*10^3 J",w3*10^-3);
diff --git a/3856/CH4/EX4.1/Ex4_1.txt b/3856/CH4/EX4.1/Ex4_1.txt
new file mode 100644
index 000000000..0965cb49a
--- /dev/null
+++ b/3856/CH4/EX4.1/Ex4_1.txt
@@ -0,0 +1,3 @@
+ (a)Work done if the expansion is carried out against a vaccum = -0 J
+(b)Value of work done if the expansion is carried out against a constant external pressure = -1.98*10^3 J
+(c)Work done if the expansion is carried out for an isothermal,reversible process = -5.74*10^3 J \ No newline at end of file