diff options
Diffstat (limited to '3843/CH3/EX3.5/Ex3_5.sce')
-rw-r--r-- | 3843/CH3/EX3.5/Ex3_5.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/3843/CH3/EX3.5/Ex3_5.sce b/3843/CH3/EX3.5/Ex3_5.sce new file mode 100644 index 000000000..84f7c2ab9 --- /dev/null +++ b/3843/CH3/EX3.5/Ex3_5.sce @@ -0,0 +1,16 @@ +// Example 3_5
+clc;funcprot(0);
+// Given data
+m=100;// kg
+d=3;// m
+V=0.002;// m^3
+P_gage=100;// The gage pressure in kPa
+g=9.81;// m/s^2
+
+// Calculation
+F=m*g;// N
+W=-(F)*(d);// J
+P_abs=200;// The absolute pressure in kPa
+W_p=P_abs*10^3*V;// The work done on the system in J
+W_net=W+W_p;// The net work done in J
+printf("\nThe net work done,W_net=%4.0f J",W_net);
|