From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 3856/CH5/EX5.1/Ex5_1.sce | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 3856/CH5/EX5.1/Ex5_1.sce (limited to '3856/CH5/EX5.1/Ex5_1.sce') diff --git a/3856/CH5/EX5.1/Ex5_1.sce b/3856/CH5/EX5.1/Ex5_1.sce new file mode 100644 index 000000000..60dd2ed74 --- /dev/null +++ b/3856/CH5/EX5.1/Ex5_1.sce @@ -0,0 +1,25 @@ +//Calculate the Entropy change when Ideal gas are expand to Isothermaly ,Estimate the probability that the gas will contract spontaneously from the final volume to initial volume + +//Example 5.1 + +clc; + +clear; + +n=2; //Number of moles of gas in mol + +R=8.314; //Gas consant in J K^-1 mol^-1 + +V2=2.4; //final volume of the gas in L + +V1=1.5; //initial volume of the gas in L + +delS=n*R*log(V2/V1); //Entropy change in J K^-1 + +printf("Entropy change = %.1f J K^-1",delS); + +Kb=1.381*10^-23; //Boltzman's constant in J K^-1 + +r=exp(-delS/Kb); //probability for spontaneous contraction=W1/W2 (Probability for spontaneous contraction is zero butit must be with the aid of external force) + +printf("\nProbability for spontaneous contraction = %.0f",r); -- cgit