Replies: 3 comments 4 replies
-
There are two separate class objects for Gas and GasMixture because a different correlation is used for the gas mixture viscosity. Having two separate classes made it easier to separate the gas mixture code from the single gas component code. Regarding your component and material stream idea, do you have any examples of such an approach?
The GasMixture class uses the properties of the individual Gas components to calculate the molecular weight of the mixture and the viscosity of the mixture. Each gas component can have different temperatures and pressures. The example below has hydrogen gas at 823 K and nitrogen gas at 773 K. Are you suggesting that the temperature and pressure of the mixture should also be calculated? Or are you suggesting that the user define the temperature and pressure of the mixture? import chemics as cm
gas1 = cm.Gas('H2', 823)
gas2 = cm.Gas('N2', 773)
gas_mixture = cm.GasMixture([gas1, gas2], [0.85, 0.15]) |
Beta Was this translation helpful? Give feedback.
-
Yes, almost all process simulator use this concept for example Aspen plus, Aspen Hysys, Pro/II, Symmetry, DWSIM, etc... For example in DWSIM which is an open source process simulator see: https://www.youtube.com/watch?v=MSo76MJUdlQ
or in Aspen Hysys
|
Beta Was this translation helpful? Give feedback.
-
It seems coolprop is the closest to what I said. See: https://tahircpe.github.io/Material_Stream_Class/ |
Beta Was this translation helpful? Give feedback.
-
Few suggestions and questions:
Why there is a gas and gas mixture? What if chemics use, component and material stream concept? A material stream can accept composition, temperature, pressure, flowrate.
The current implementation uses GasMixture which is like a material stream, but temperature and pressure are set for Gas (actually a component). What does happen if a GasMixture contains gases with different temperatures and pressures?
Beta Was this translation helpful? Give feedback.
All reactions