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 /629/CH4/EX4.2 | |
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 '629/CH4/EX4.2')
-rw-r--r-- | 629/CH4/EX4.2/ex4_2.txt | 2 | ||||
-rw-r--r-- | 629/CH4/EX4.2/example4_2.sce | 12 |
2 files changed, 14 insertions, 0 deletions
diff --git a/629/CH4/EX4.2/ex4_2.txt b/629/CH4/EX4.2/ex4_2.txt new file mode 100644 index 000000000..f82815e54 --- /dev/null +++ b/629/CH4/EX4.2/ex4_2.txt @@ -0,0 +1,2 @@ +
+The gage pressure on the piston, p = 11.0 kPa, gage.
\ No newline at end of file diff --git a/629/CH4/EX4.2/example4_2.sce b/629/CH4/EX4.2/example4_2.sce new file mode 100644 index 000000000..d53b32650 --- /dev/null +++ b/629/CH4/EX4.2/example4_2.sce @@ -0,0 +1,12 @@ +clear
+clc
+//Example 4.2 APPLICATION OF EULER’S EQUATION TO ACCELERATION OF A FLUID
+g=9.81; //[m/s^2]
+az=100; //acceleration in z direction [m/s^2]
+rho=10^3; //[kg/m^3]
+//Integrating, d(p+g*rho*z)/dz=-rho*az
+//(p2+rho*g*z2)-(p1+rho*g*z1)=-rho*az*(z2-z1)
+delz=0.1; //delz=z2-z1,[m]
+p2=0;
+p1=(p2+rho*(g+az)*delz)/10^3 //[kPa]
+printf("\nThe gage pressure on the piston, p = %.1f kPa, gage.\n",p1)
\ No newline at end of file |