modelThreeWayValve

Container class for three-way valves

Extends from Buildings.Fluid.Interfaces.LumpedVolumeDeclarations, Buildings.Fluid.Actuators.BaseClasses.ValveParameters.

Information

This is a container class for three-way valve models from Buildings.Fluid.Actuators.Valves.

The parameter typCha allows configuring the model by selecting the valve characteristic to be used based on the enumeration Buildings.Fluid.HydronicConfigurations.Types.ValveCharacteristic.

The default setting for the ratio of the Kvs coefficient between the bypass branch and the direct branch is fraK=1.0, see Buildings.Fluid.HydronicConfigurations.UsersGuide.ControlValves for the justification.

Parameters

TypeNameDefaultDescription
Buildings.Fluid.Actuators.Valves.Data.GenericflowCharacteristics1Table with flow characteristics for direct flow path at port_1
Buildings.Fluid.Actuators.Valves.Data.GenericflowCharacteristics3Table with flow characteristics for bypass flow path at port_3
RealR50Rangeability, R=50...100 typically
Realdelta00.01Range of significant deviation from equal percentage law
RealfraK1.0Fraction Kv(port_3→port_2)/Kv(port_1→port_2)
Reall{0.0001, 0.0001}Valve leakage, l=Kv(y=0)/Kv(y=1)
Configuration
Buildings.Fluid.HydronicConfigurations.Types.ValveCharacteristictypChaBuildings.Fluid.HydronicConfigurations.Types.ValveCharacteristic.EqualPercentageValve characteristic
Nominal condition
Modelica.Units.SI.PressureDifference[2]dpFixed_nominal{0, 0}Nominal pressure drop of pipes and other equipment in flow legs at port_1 and port_3
Modelica.Units.SI.PressureDifferencedp3Valve_nominaldpValve_nominal/fraK^2Bypass branch valve pressure drop at design conditions
Modelica.Units.SI.PressureDifferencedp3Fixed_nominaldpFixed_nominal[2]Bypass branch fixed pressure drop at design conditions
Modelica.Units.SI.PressureDifferencedp3_nominaldp3Valve_nominal + dp3Fixed_nominalBypass branch total pressure drop at design conditions
Pressure-flow linearization
RealdeltaM0.02Fraction of nominal flow rate where linearization starts, if y=1
Advanced
Booleanlinearized{false, false}= true, use linear relation between m_flow and dp for any flow rate
Booleanfrom_dptrue= true, use m_flow = f(dp) else dp = f(m_flow)
Modelica.Fluid.Types.PortFlowDirectionportFlowDirection_1Modelica.Fluid.Types.PortFlowDirection.BidirectionalFlow direction for port_1
Modelica.Fluid.Types.PortFlowDirectionportFlowDirection_2Modelica.Fluid.Types.PortFlowDirection.BidirectionalFlow direction for port_2
Modelica.Fluid.Types.PortFlowDirectionportFlowDirection_3Modelica.Fluid.Types.PortFlowDirection.BidirectionalFlow direction for port_3
BooleanverifyFlowReversalfalse=true, to assert that the flow does not reverse when portFlowDirection_* does not equal Bidirectional
Dynamics › Nominal condition
Modelica.Units.SI.Timetau10Time constant at nominal flow for dynamic energy and momentum balance
Dynamics › Time needed to open or close valve
Booleanuse_strokeTimetrueSet to true to continuously open and close valve
Modelica.Units.SI.TimestrokeTime120Time needed to open or close valve
Modelica.Blocks.Types.InitinitModelica.Blocks.Types.Init.InitialOutputType of initialization (no init/steady state/initial state/initial output)
Realy_start1Initial position of actuator

Components

TypeNameDefaultDescription
Modelica.Units.SI.MassFlowRatem1_flowport_1.m_flowMass flow rate in direct branch
Modelica.Units.SI.MassFlowRatem2_flow-1*port_2.m_flowMass flow rate in common branch
Modelica.Units.SI.MassFlowRatem3_flowport_3.m_flowMass flow rate in bypass branch
Modelica.Units.SI.PressureDifferencedp1port_1.p - port_2.pPressure drop across direct branch
Modelica.Units.SI.PressureDifferencedp3port_3.p - port_2.pPressure drop across bypass branch
Modelica.Fluid.Interfaces.FluidPort_aport_1First port, typically inlet
Modelica.Fluid.Interfaces.FluidPort_bport_2Second port, typically outlet
Modelica.Fluid.Interfaces.FluidPort_aport_3Third port, can be either inlet or outlet
Buildings.Controls.OBC.CDL.Interfaces.RealInputyInput control signal
Buildings.Controls.OBC.CDL.Interfaces.RealOutputy_actualActual actuator position
Actuators.Valves.ThreeWayEqualPercentageLinearvalEquLinThree-way valve with equal percentage and linear characteristics
Actuators.Valves.ThreeWayLinearvalLinLinThree-way valve with linear characteristics
Actuators.Valves.ThreeWayTablevalTabThree-way valve with table-specified characteristics

Revisions

  • June 30, 2022, by Antoine Gautier:
    First implementation.