blob: 1120a49a0f349b67cee9376a8bcb50f2cdc61ddd (
plain)
1
2
3
4
5
6
7
8
|
clc
YA=0.5//mole fraction of oxygen
YB=0.5//mole fraction of nitrogen
R=8.314//universal gas constant
deltasMix=-R*((YA*log(YA))+(YB*log(YB)))//molar entropy change associated with mixing of non identical gases
mprintf("deltasMix=%fper mol of mixture",deltasMix)//ans vary due to roundoff error
|