diff options
Diffstat (limited to '944/CH3/EX3.1')
-rwxr-xr-x | 944/CH3/EX3.1/example3_1_TACC.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/944/CH3/EX3.1/example3_1_TACC.sce b/944/CH3/EX3.1/example3_1_TACC.sce new file mode 100755 index 000000000..174d4cbda --- /dev/null +++ b/944/CH3/EX3.1/example3_1_TACC.sce @@ -0,0 +1,16 @@ +//example 3.1
+
+clear;
+clc;
+
+//given:
+V1=14;//initial volume of cylinder in m3
+V2=9;//final volume of cylinder in m3
+P=2000;//pressure during the operation in N/m2
+U=(-6000);//internal energy of the system in J
+
+//to find energy transfered in form of heat:
+W=-P*(V2-V1);//work done during the operation in J
+Q=U-W;//energy tranfered in form of heat in J
+printf("energy tranfered in form of heat is %f J",Q);
+
\ No newline at end of file |