Càlcul d'un exemple concret amb HGS - fme-mmt/rocket GitHub Wiki
#HGS 1.3 By Arnau Miro, Pau Manent and Manel Soria LOP, ETSEIAT UPC
Properties
properties of a mixture of gases For any issues with the code see the documentation manual.
Usage
[Cp,Cv,MM,Rg,gamma,a,H,G,S]=hgsprop(species,n,T,P)
Inputs
species
: Cell array with the species of the mixturen
: Vector for the number of mols of the speciesT
[K]: Temperature of the mixturep
[bar]: ressure of the mixture
Output
Cp
[kJ/molK]: Heat coef at constant pressureCv
[kJ/molK]: Heat coef at constant volumeMM
[g/mol]: Molar mass of the mixtureRg
[kJ/kgK]: Gas constant of the mixturegamma
: Gamma coef of the mixturea
[m/s]: Sound speed of the mixtureH
[kJ]: Enthalpy of the mixtureG
[kJ]: Gibbs free energy of the mixtureS
[kJ/K]: Entropy of the mixture
See also hgseq
, hgsisentropic
, hgssingle
, hgsTp
This code is part of the HGS TOOLBOX
OpenLLOP, UPC-ETSEIAT 2014-2015
[Cp,Cv,MM,Rg,gamma,a,H,G,S]=hgsprop({'O2','N2'},[2 4],2700,8)
Cp =
0.0377
Cv =
0.0294
MM =
29.3419
Rg =
0.2834
gamma =
1.2827
a =
990.6580
H =
499.0400
G =
-3.6607e+03
S =
1.5406