How can I measure Gas Density in a Simulink model?

4 ビュー (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2017 年 3 月 8 日
回答済み: MathWorks Support Team 2017 年 3 月 14 日
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). 
 

採用された回答

MathWorks Support Team
MathWorks Support Team 2017 年 3 月 8 日
  • 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.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGas Models についてさらに検索

製品


リリース

R2016b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by