Main Content


Gas mass flow rate and pressure source blocks

This library contains sources for the gas domain. For information on how to connect physical signal inputs of these blocks to Simulink® sources or other Simulink blocks, see Connecting Simscape Diagrams to Simulink Sources and Scopes.

Simscape Blocks

Controlled Mass Flow Rate Source (G)Generate time-varying mass flow rate
Controlled Pressure Source (G)Generate time-varying pressure differential
Controlled Volumetric Flow Rate Source (G)Generate time-varying volumetric flow rate
Mass Flow Rate Source (G)Generate constant mass flow rate
Pressure Source (G)Generate constant pressure differential
Volumetric Flow Rate Source (G)Generate constant volumetric flow rate


Modeling Gas Systems

Steps and guidelines for gas system modeling.

Simple Gas Model

This example shows how to create a simple open-loop gas network and set boundary conditions.

Change Flow Boundary Conditions

This example shows how to change the gas flow boundary conditions without affecting temperature.