blob: 3d6d4e2f5fd4aacf5555960821fd7d8e3c04b7a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
//Find the Amount of Heat required to raise the temperature to 400 Kelvin
//Example 27.2
clc;
clear;
V=0.2;//Volume of tank in m^3
p=1*10^5;//Pressure of Helium Gas in N/M^2
T1=300;//Initial Temperature of Helium Gas in Kelvin
T2=400;//Final Temperature of Helium Gas in Kelvin
R=8.31;//Universal Gas Constant in J/mol-K
n=int((p*V)/(R*T1));//Amount of moles of Helium Gas
Cv=3;//Molar Heat Capacity at Constant Volume
Q=n*Cv*(T2-T1);//Amount of Heat Required in calories
printf("The amount of Heat required=%d cal",Q);
|