Pressure Source (2P)
Generate constant pressure differential
Library
Two-Phase Fluid/Sources
Description
The Pressure Source (2P) block generates a constant pressure differential in a two-phase fluid network branch. The source has two inlets, labeled A and B, with independently specified cross-sectional areas. By default, the source does isentropic work on the fluid, though the block provides the option to ignore this work.
The source is ideal. In other words, it maintains the specified pressure differential regardless of the mass flow rate produced through its ports. In addition, because the source is isentropic, there is no viscous friction between the ports and no heat exchange with the environment. Use this block to model an idealized pump or compressor or to set a boundary condition in a model.
Mass Balance
The volume of fluid in the source is considered negligible and is ignored in a model. There is no fluid accumulation between the ports and the sum of all mass flow rates into the source must therefore equal zero:
where denotes the mass flow rate into the source through a port. The block accepts as input the mass flow rate at port A. The flow is directed from port A to port B when the specified value is positive.
Energy Balance
By default, the source maintains the specified flow rate by performing isentropic work on the incoming fluid, though the block provides the option to ignore this term. The rate at which the source does work, if considered in the model, must equal the sum of the energy flow rates through the ports:
where ϕ denotes the energy flow rate into the source through a port or by means of work. The energy flow rate due to work is equal to the power generated by the source. Its value is calculated from the specific total enthalpies at the ports:
The specific total enthalpy h is defined as:
where the asterisk denotes a port (A or B) and:
u is specific internal energy.
p is pressure.
S is flow area.
The specific internal energy in the equation is obtained from the tabulated data of the Two-Phase Fluid Properties (2P) block. Its value is uniquely determined from the constraint that the work done by the source is isentropic. The specific entropy, a function of specific internal energy, must then have the same value at ports A and B:
where s is specific entropy. If the Power
added parameter is set to None
, the specific total
enthalpies at the ports have the same value () and the work done by the source reduces to zero ().
Variables
To set the priority and initial target values for the block variables prior to simulation, use the Initial Targets section in the block dialog box or Property Inspector. For more information, see Set Priority and Initial Target for Block Variables.
Nominal values provide a way to specify the expected magnitude of a variable in a model. Using system scaling based on nominal values increases the simulation robustness. Nominal values can come from different sources, one of which is the Nominal Values section in the block dialog box or Property Inspector. For more information, see Modify Nominal Values for a Block Variable.
Ports
Conserving
Parameters
Extended Capabilities
Version History
Introduced in R2015b