modelThreeWayValve

Three way valve

Information

## Copyright © EDF 2002 - 2026  
## ThermoSysPro Version 4.2  
This component model is documented in Sect. 13.9 of the ThermoSysPro book.   

# Three way valve   
   
The three-way valve splits the fluid in two directions. When the valve is fully open, the fluid moves in one direction, and when it is fully closed, it moves in the other direction. When it is partially open, a fraction of the fluid moves in one direction and the rest in the other. For water/steam, the flow regime is single-phase or homogeneous two-phase flow.  


## Modelica component model  

The equations mentioned below are implemented in the component *ThreeWayValve*, located in the *WaterSteam.PressureLosses* sub-library.  

The *ThreeWayValve* is composed of two [control valves](modelica://ThermoSysPro.WaterSteam.PressureLosses.ControlValve), a [pipe pressure loss](modelica://ThermoSysPro.WaterSteam.PressureLosses.PipePressureLoss), a VolumeA, a Constant and an Add block. <!-- TODO -->  
This component has 4 connectors:  
- C1: fluid inlet,  
- C2: fluid outlet,  
- C3: fluid outlet,  
- Ouv: valve opening.  
   
![modelica://ThermoSysPro/UsersGuide/Documentation/ThermoSysPro.WaterSteam.PressureLosses.ThreeWayValve.svg](modelica://ThermoSysPro/UsersGuide/Documentation/ThermoSysPro.WaterSteam.PressureLosses.ThreeWayValve.svg)  

## Nomenclature  

See [control valve](modelica://ThermoSysPro.WaterSteam.PressureLosses.ControlValve) and [pipe pressure loss](modelica://ThermoSysPro.WaterSteam.PressureLosses.PipePressureLoss).  

## Governing equations  

See [control valve](modelica://ThermoSysPro.WaterSteam.PressureLosses.ControlValve) and [pipe pressure loss](modelica://ThermoSysPro.WaterSteam.PressureLosses.PipePressureLoss).  

## References   
   
El Hefni, Baligh and Bouskela, Daniel (2019). [Modeling and Simulation of Thermal Power Plants with ThermoSysPro](https://link.springer.com/book/10.1007/978-3-030-05105-1), sect. 13.9. Springer Nature Switzerland AG.

Parameters

TypeNameDefaultDescription
ThermoSysPro.Units.xSI.CvCvmax18005.42Valve 1 max CV [USG/min]
ThermoSysPro.Units.xSI.CvCvmax28005.42Valve 2 max CV [USG/min]
Real[:,2]caract1[0, 0; 1, Cvmax1]Valve 1 - Position vs. Cv [USG/min] characteristics (active if mode_caract1=true)
Real[:,2]caract2[0, 0; 1, Cvmax2]Valve 2 - Position vs. Cv [USG/min] characteristics (active if mode_caract2=true)
Integermode_caract10Valve 1 - 0:linear characteristics - 1:characteristics is given by caract1[]
Integermode_caract20Valve 2 - 0:linear characteristics - 1:characteristics is given by caract2[]
Units.SI.VolumeV1Three way valve volume
Booleancontinuous_flow_reversalfalsetrue: continuous flow reversal - false: discontinuous flow reversal
Integerfluid11: water/steam - 2: C3H3F5
Units.SI.Densityp_rho0If > 0, fixed fluid density
Integermode0IF97 region. 1:liquid - 2:steam - 4:saturation line - 0:automatic

Connectors

TypeNameDefaultDescription
ThermoSysPro.InstrumentationAndControl.Connectors.InputRealOuv
Connectors.FluidInletIC1
Connectors.FluidOutletIC2
Connectors.FluidOutletIC3

Components

TypeNameDefaultDescription
ThermoSysPro.WaterSteam.PressureLosses.ControlValveValve1
ThermoSysPro.WaterSteam.PressureLosses.ControlValveValve2
ThermoSysPro.InstrumentationAndControl.Blocks.Sources.ConstanteConstante1
ThermoSysPro.InstrumentationAndControl.Blocks.Math.AddAdd1
ThermoSysPro.WaterSteam.Volumes.VolumeAVolumeA1
ThermoSysPro.WaterSteam.PressureLosses.PipePressureLossPerteDP1

Revisions

Author  

Daniel Bouskela