Professional Documents
Culture Documents
//Chapter 2
//First Law of Thermodynamics
//Example 2
clear;
clc;
//Given
T = 298; //temperature in K
P = 101; //pressure in kPa
n_iron = 2; //moles of iron reacted
Q = -831.08; //heat liberated in kJ
R = 8.314; //ideal gas constant
//To find heat liberated work done and change in internal energy
mprintf('Heat liberated during the reaction is %f kJ',Q);
n_oxygen = 1.5; //moles of oxygen reacted
//end