Trace Gas Source (MA)
R2026bInject or extract trace gas at a constant or time-varying rate
Libraries:
Simscape /
Foundation Library /
Moist Air /
Sources /
Moisture & Trace Gas Sources
Description
The Trace Gas Source (MA) block represents a constant or time-varying source or sink of trace gas for the connected moist air volume. A positive or negative trace gas mass flow rate causes trace gas levels to increase or decrease, respectively.
For a time-varying source, two physical signal input ports, M and T, supply the mass flow rate and temperature values, respectively. Alternatively, you can specify constant mass flow rate and temperature as block parameters.
The energy associated with the added or removed trace gas is
where:
is the trace gas mass flow rate specified by the input physical signal at port M or by the Trace gas mass flow rate parameter.
hg is the trace gas specific enthalpy.
Tspecified is the temperature of added trace gas, as specified by the input physical signal at port T or by the block parameters. The block uses this value to evaluate the specific enthalpy of the added trace gas only. The specific enthalpy of removed trace gas is based on the temperature of the connected moist air volume.
Ts is the temperature at port S, which is the same as the temperature of the connected moist air volume.
Port S is a moist air source conserving port. Connect this port to port S of a block with finite moist air volume to add or remove trace gas through that block. For more information, see Using Moisture and Trace Gas Sources.
Examples
Ports
Input
Conserving
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"fl_lib/Moist Air/Sources/Moisture & Trace Gas Sources/Trace Gas Source (MA)"
Example: add_block("fl_lib/Moist Air/Sources/Moisture & Trace Gas Sources/Trace Gas Source (MA)","myModel/myBlock",MakeNameUnique="on")
For information about programmatic access to individual block parameters, see the Programmatic Use section of parameter descriptions on this page.


