blob: 61d26a3c24b758beb484e3657623794a9163b3b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
clear;
clc;
printf("\t\t\tProblem Number 6.21\n\n\n");
// Chapter 6: The Ideal Gas
// Problem 6.21 (page no. 264)
// Solution
//data
T2=100+273; //Celsius temperature converted to Kelvin //final temperature
T1=20+273; //Celsius temperature converted to Kelvin //initial temperature
cv=0.7186; //specific heat at constant volume //kJ/kg*K
//Now,
deltas=cv*log(T2/T1); //change in entropy //Unit:kJ/kg*K
//For 0.2 kg,
deltaS=(0.2)*deltas; //The change in enthalpy in kJ/K
printf("For 0.2 kg of air,The change in enthalpy is %f kJ/K\n",deltaS);
|