Pressure Relief Valve (2P)
Libraries:
Simscape /
Fluids /
Two-Phase Fluid /
Valves & Orifices /
Pressure Control Valves
Description
The Pressure Relief Valve (2P) block models a pressure-controlling relief valve in a
two-phase fluid network. The valve opens when the pressure exceeds the set pressure.
Specify the pressure differential that opens the valve in the Set pressure
specification parameter, which can be the pressure difference between
ports A and B or the gauge pressure at port
A. When you set Set pressure control to
Controlled
, the set pressure varies according to the
input signal at port Ps.
Fluid properties inside the valve are calculated from inlet conditions. There is no heat exchange between the fluid and the environment, and therefore phase change inside the valve only occurs due to a pressure drop or a propagated phase change from another part of the model.
A number of block parameters are based on nominal operating conditions, which correspond to the valve rated performance, such as a specification on a manufacturer datasheet.
Pressure Control
The valve opens when the pressure in the valve, pcontrol, exceeds the Set pressure differential, pset. The valve is fully open when the control pressure reaches the end of the Pressure regulation range, prange.
When you set Set pressure control to
Constant
, the opening fraction of the valve,
λ, is expressed as:
where:
fleak is the Closed valve leakage as a fraction of nominal flow.
pcontrol is the control pressure, which depends on the Set pressure specification parameter.
When you set Set pressure specification to
Pressure differential
, the control pressure is PA ̶ pB.When you set Set pressure specification to
Gauge pressure at port A
, the control pressure is the difference between the pressure at port A and atmospheric pressure.
When you set Set pressure control to
Controlled
, the valve opening fraction is:
where ps is the signal at port Ps. If the control pressure exceeds the valve pressure regulation range, the valve opening fraction is 1.
The mass flow rate depends on the pressure differential, and therefore the open area of the valve. It is calculated as:
where:
Δp is the pressure drop over the valve, pA ̶ pB.
Δplam is the pressure transition threshold between laminar and turbulent flow, which is calculated from the Laminar flow pressure ratio, Blam:
is the Nominal mass flow rate at maximum opening.
Δpnom is the Nominal pressure drop rate at maximum opening.
vnom is the nominal inlet specific volume. This value is determined from the fluid properties tabulated data based on the Nominal inlet specific enthalpy and Nominal inlet pressure parameters.
vin is the inlet specific volume.
Fluid Specific Volume Dynamics
When the fluid at the valve inlet is a liquid-vapor mixture, the block calculates the specific volume as:
where:
xdyn is the inlet vapor quality. The block applies a first-order lag to the inlet vapor quality of the mixture.
vliq is the liquid specific volume of the fluid.
vvap is the vapor specific volume of the fluid.
If the inlet fluid is liquid or vapor, vin is the respective liquid or vapor specific volume.
If the inlet vapor quality is a liquid-vapor mixture, a first-order time lag is applied:
where:
xdyn is the dynamic vapor quality.
xin is the current inlet vapor quality.
τ is the Inlet phase change time constant.
If the inlet fluid is a subcooled liquid or superheated vapor, xdyn is equal to xin.
Mass Balance
Mass is conserved in the valve:
where:
is the mass flow rate at port A.
is the mass flow rate at port B.
Energy Balance
Energy is conserved in the valve:
where:
ΦA is the energy flow at port A.
ΦB is the energy flow at port B.
Assumptions and Limitations
The block does not model pressure recovery downstream of the valve.
There is no heat exchange between the valve and the environment.
The block does not model choked flow.
Ports
Conserving
Input
Parameters
Extended Capabilities
Version History
Introduced in R2021a