Pressure Source (MA)
R2026bGenerate constant or time-varying pressure differential
Libraries:
Simscape /
Foundation Library /
Moist Air /
Sources
Description
The Pressure Source (MA) block represents an ideal mechanical energy source in a moist air network. The source can maintain a constant pressure differential across its ports regardless of the flow rate through the source. There is no flow resistance and no heat exchange with the environment.
Ports A and B represent the source inlet and outlet. The input physical signal at port P specifies the pressure differential. Alternatively, you can specify a constant pressure differential as a block parameter. A positive pressure differential causes the pressure at port B to be greater than the pressure at port A.
The equations describing the source use these symbols.
| cp | Specific heat at constant pressure |
| h | Specific enthalpy |
| ht | Specific total enthalpy |
| Mass flow rate (flow rate associated with a port is positive when it flows into the block) | |
| p | Pressure |
| ρ | Density |
| R | Specific gas constant |
| s | Specific entropy |
| T | Temperature |
| Φwork | Power delivered to the moist air flow through the source |
Subscripts A and B indicate the appropriate port. Subscripts a,
w, d, and g indicate the
properties of dry air, water vapor, water droplets, and trace gas, respectively.
Mass balance:
Energy balance:
If the source performs no work (Power added parameter is set to
None), then .
If the source is isentropic (Power added parameter is set to
Isentropic), then
where
The mixture-specific enthalpies, hA = h(TA) and hB = h(TB), are constrained by the isentropic relation, that is, there is no change in entropy:
The quantity specified by the Pressure differential parameter of the source is
Assumptions and Limitations
There are no irreversible losses.
There is no heat exchange with the environment.
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/Pressure Source (MA)"
Example: add_block("fl_lib/Moist Air/Sources/Pressure 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.

