diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /2975/CH24 | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '2975/CH24')
-rw-r--r-- | 2975/CH24/EX24.14w/Ex24_14w.sce | 23 | ||||
-rw-r--r-- | 2975/CH24/EX24.18w/Ex24_18w.sce | 23 | ||||
-rw-r--r-- | 2975/CH24/EX24.1w/Ex24_1w.sce | 20 | ||||
-rw-r--r-- | 2975/CH24/EX24.2w/Ex24_2w.sce | 22 |
4 files changed, 88 insertions, 0 deletions
diff --git a/2975/CH24/EX24.14w/Ex24_14w.sce b/2975/CH24/EX24.14w/Ex24_14w.sce new file mode 100644 index 000000000..e8dbe83a8 --- /dev/null +++ b/2975/CH24/EX24.14w/Ex24_14w.sce @@ -0,0 +1,23 @@ +//developed in windows 8 operating system 64bit
+//platform Scilab 5.4.1
+//example 24_14w
+
+clc;clear;
+//Given Data
+
+area=8*10^-3; //Area of cylinder (Unit: m^2)
+temperature_initial=300; //Initial temperature (Unit: Kelvin)
+volume_initial=2.4*10^-3; //Initaial volume (Unit: m^3)
+distance=0.1; //Distance covered by the piston when heated(Unit : m)
+force_constant=8000; //Force constant of the spring (Unit :N/m)
+init_pressure=1*10^5; //Initial Pressure (atmospheric pressure) (Unit: Pa)
+
+//Formula: (Force=spring constant X Distance )
+//Calculation
+
+final_pressure=init_pressure+(force_constant*distance/area); //Calculating final pressure (Unit : Pascal)
+volume_final=volume_initial+(area*distance); //Calculating final volume (Unit : m^3)
+
+temperature_final=final_pressure*volume_final*temperature_initial/(init_pressure*volume_initial); //Calculating final volume (Unit : Kelvin)
+
+disp(temperature_final,"The final temperatue is (Unit: Kelvin)");
diff --git a/2975/CH24/EX24.18w/Ex24_18w.sce b/2975/CH24/EX24.18w/Ex24_18w.sce new file mode 100644 index 000000000..d969bb713 --- /dev/null +++ b/2975/CH24/EX24.18w/Ex24_18w.sce @@ -0,0 +1,23 @@ +//developed in windows 8 operating system 64bit
+//platform Scilab 5.4.1
+//example 24_18w
+
+clc;clear;
+//Given Data
+
+temperature=300; //Temperature of the water vapour (Unit: Kelvin)
+volume=1; //Volume of the water vapour(Unit : m^3)
+molecular_weight_water=18; //Molecular weight of the water (Unit: g/mol)
+r=8.3; //Gas constant (Unit: J/mol-K)
+relative_humidity=50/100; //Relative humidity of the air (Unit: percentage)
+pressure=3.6*10^3; //Pressure of the water vapour (Unit: Pascal)
+
+//Formula: PV=nRT
+
+//Calculation
+
+mass_of_vapour=molecular_weight_water*pressure*volume/(r*temperature); //Calculation of mass of vapour (Unit: gram)
+
+amount_vapour=relative_humidity*mass_of_vapour; //Calculation of vapour after considering relative humidity (Unit : gram)
+
+disp(amount_vapour,"As the relative humidity is 50% , the amount of vapour present in 1 m^3 is (Unit : gram)");
diff --git a/2975/CH24/EX24.1w/Ex24_1w.sce b/2975/CH24/EX24.1w/Ex24_1w.sce new file mode 100644 index 000000000..b46f137aa --- /dev/null +++ b/2975/CH24/EX24.1w/Ex24_1w.sce @@ -0,0 +1,20 @@ +//developed in windows 8 operating system 64bit
+//platform Scilab 5.4.1
+//example 24_1w
+
+clc;clear;
+//Given Data
+
+volume=8*10^-3; //Volume of vessel at 300K and 200 kPa(Unit: m^3 )
+temp=300; //Temperature of the vessel (Unit: Kelvin)
+pressure_init=200*10^3; //Inital pressure of vessel (Unit : Pa)
+pressure_final=125*10^3; //Final pressure of vessel (Unit : Pa)
+r=8.3; //Gas constant (Unit J/mol-K)
+
+// Formula : PV=nRT
+
+// Calculation
+
+gas_leaked=(pressure_init-pressure_final)*volume*(1/(r*temp)); //Computation of leaked gas in terms of moles (Unit : moles)
+
+disp(gas_leaked,"The amount of the gas leaked assuming that the temperature remains constant is (Unit: moles)");
diff --git a/2975/CH24/EX24.2w/Ex24_2w.sce b/2975/CH24/EX24.2w/Ex24_2w.sce new file mode 100644 index 000000000..7533091e9 --- /dev/null +++ b/2975/CH24/EX24.2w/Ex24_2w.sce @@ -0,0 +1,22 @@ +//developed in windows 8 operating system 64bit
+//platform Scilab 5.4.1
+//example 24_2w
+
+clc;clear;
+//Given Data
+
+volume=2000*10^-6; //Volume of the vessel (Unit: m^3)
+r=8.3; //Gas Constant (Unit: J/mol-K)
+temperature=300; //Temperature of the vessel (Unit : Kelvin)
+mole_oxygen=0.1; //Moles of oxygen (Unit : mole)
+mole_CO2=0.2; //Moles of Carbon dioxide (Unit : mole)
+
+//Formula: PV=nRT
+
+//Calculation
+
+press_oxygen=mole_oxygen*temperature*r/volume; //Pressure of oxygem (Unit : Pascal)
+press_CO2=mole_CO2*temperature*r/volume; //Pressure of Carbon Dioxide (Unit : Pascal)
+total_pressure=press_oxygen+press_CO2; //Total pressure on the vessel (Unit : Pascal)
+
+disp(total_pressure,"The total pressure in the vessel is (Unit : Pa)");
|