- As you are already measuring the pressure and temperature at specific nodes in the network, you could calculate the density using the relationship provided by Boyle's law for ideal gases. The relationship is described by the expression - Density = Pressure/(Temperature*Gas constant). The gas constant value can be the same as that specified in the 'Gas Properties' block in the model.
- Alternatively, in MATLAB R2017, a new block called 'Thermodynamic Properties Sensor (G)' has been introduced that allows you to determine the gas density. You could therefore consider upgrading to MATLAB R2017a to use that block.
How can I measure Gas Density in a Simulink model?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MathWorks Support Team
el 8 de Mzo. de 2017
Respondida: MathWorks Support Team
el 14 de Mzo. de 2017
I'm modelling a gas network in Simulink using some Simscape components. I'm measuring the mass flow, temperature and pressure at different nodes in the network. As the pressure and temperature vary inside the network, I know that the density may vary too.
I'd like to know how I can measure the density of the gas at a particular node in the gas network (rather than an assumed constant).
Respuesta aceptada
MathWorks Support Team
el 8 de Mzo. de 2017
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Gas Models en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!