MATLAB: Gas containment with output

chamberoutpur orificeSimscape Fluidssimulink

Hello, I'm modelling gas flow system and what is quite strange that SimHydraulic doesn't have any container with output: constant volume chamber has just input port. Maybe it is possible to construct with simulink blocks some chamber (like constant volume chanber), but with output orifice? Or maybe it is possible to use other blocks (even I couldnt find any) to use instead?

Best Answer

SimHydraulics is not designed for modelling gas flow systems, only (hydraulic) fluids. You can use the Simscape pneumatic foundation library instead. Note that it uses the ideal gas law approximation. More details are available in the documentation.
HTH,
Arnaud