diff options
Diffstat (limited to '557/CH2/EX2.2/2.sce')
-rwxr-xr-x | 557/CH2/EX2.2/2.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/557/CH2/EX2.2/2.sce b/557/CH2/EX2.2/2.sce new file mode 100755 index 000000000..863795a57 --- /dev/null +++ b/557/CH2/EX2.2/2.sce @@ -0,0 +1,15 @@ +clc ;funcprot(0);
+//Example 2.2
+
+//Initializing the variables
+p1 = 22.4*10^3;//Initial Pressure
+z1 = 11000;//Initial Height
+z2 = 15000;//final Height
+g = 9.81;//Acceleration due to gravity
+R = 287; //Gas Constant
+T = 273-56.6;//Temperature
+
+//Calculations
+p2 = p1*exp(-g*(z2-z1)/(R*T));
+rho2=p2/(R*T);
+disp(rho2,"Final Density (kg/m3) :",p2/1000,"Final Pressure (kN/m2):");
|