summaryrefslogtreecommitdiff
path: root/2975/CH25/EX25.4w/Ex25_4w.sce
blob: 36e6f815e1f6e871531e763a9ce7997a3cccd2c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//developed in windows 8 operating system 64bit
//platform Scilab 5.4.1
//example 25_4w

clc;clear;
//Given Data

mass_water=100;     //Mass of water (Unit:g)
latent_heat_water=21*10^5;      //Latent heat of vaporization of water at 0 degree centigrade (Unit: J/kg)
latent_heat_ice=3.36*10^5;      //Latent heat of fusion of ice (Unit : J/kg)

//Formula mL2=(M-m)L1

//Calculation
mass_ice=mass_water*latent_heat_water/(latent_heat_water+latent_heat_ice);      //Calculation of the mass of the ice formed if no water is left in the vessel (Unit : g)

disp(mass_ice,"Mass of the ice formed if no water is left in the vessel (Unit: gram)");