modelThreeWayValveSwitch

Switches between two circuits

Extends from BaseClasses.Partial3WayValve (Partial for 3-way valves).

Parameters

TypeNameDefaultDescription
Reall (from Partial3WayValve)0.001Valve leakage, minimum fraction of flow rate passing through ports a
Modelica.Units.SI.MassFlowRatem_flow_nominal (from Partial3WayValve)Nominal mass flow rate
BooleanallowFlowReversal (from Partial3WayValve)true= true to allow flow reversal
Modelica.Units.SI.Massm (from Partial3WayValve)m_flow_nominal*tauFluid content of the mixing valve
Modelica.Units.SI.MassFlowRatemFlowMin0.01Minimum outlet flowrate for mixing to start
Dynamics › Conservation equations
Modelica.Fluid.Types.DynamicsenergyDynamics (from LumpedVolumeDeclarations)Modelica.Fluid.Types.Dynamics.DynamicFreeInitialType of energy balance: dynamic (3 initialization options) or steady state
Modelica.Fluid.Types.DynamicssubstanceDynamics (from LumpedVolumeDeclarations)energyDynamicsType of independent mass fraction balance: dynamic (3 initialization options) or steady state
Modelica.Fluid.Types.DynamicstraceDynamics (from LumpedVolumeDeclarations)energyDynamicsType of trace substance balance: dynamic (3 initialization options) or steady state
Advanced › Dynamics
Modelica.Fluid.Types.DynamicsmassDynamics (from LumpedVolumeDeclarations)energyDynamicsType of mass balance: dynamic (3 initialization options) or steady state, must be steady state if energyDynamics is steady state
Initialization
Medium.AbsolutePressurep_start (from LumpedVolumeDeclarations)Medium.p_defaultStart value of pressure
Medium.TemperatureT_start (from LumpedVolumeDeclarations)Medium.T_defaultStart value of temperature
Medium.MassFraction[Medium.nX]X_start (from LumpedVolumeDeclarations)Medium.X_defaultStart value of mass fractions m_i/m
Medium.ExtraProperty[Medium.nC]C_start (from LumpedVolumeDeclarations)fill(0, Medium.nC)Start value of trace substances
Medium.ExtraProperty[Medium.nC]C_nominal (from LumpedVolumeDeclarations)fill(1E-2, Medium.nC)Nominal value of trace substances. (Set to typical order of magnitude.)
Dynamics
RealmSenFac (from LumpedVolumeDeclarations)1Factor for scaling the sensible thermal mass of the volume
Dynamics › Filter
Realtau (from Partial3WayValve)1Thermal time constant

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPort_aport_a1 (from Partial3WayValve)First fluid inlet
Modelica.Fluid.Interfaces.FluidPort_aport_a2 (from Partial3WayValve)Second fluid inlet
Modelica.Fluid.Interfaces.FluidPort_bport_b (from Partial3WayValve)Fluid outlet
Modelica.Blocks.Interfaces.BooleanInputswitchif true, the flow goes from leg a2 to leg b. Otherwise from leg a1

Components

TypeNameDefaultDescription
IDEAS.Fluid.MixingVolumes.MixingVolumevol (from Partial3WayValve)
IDEAS.Fluid.Interfaces.IdealSourceidealSource (from Partial3WayValve)
Modelica.Blocks.Sources.RealExpressionrealExpressionOutlet flow rate
Modelica.Blocks.Math.Productproduct
Modelica.Blocks.Math.BooleanToRealbooleanToReal

Revisions

  • March 26, 2018 by Filip Jorissen:
    Implemented valve leakage, see #782.
  • March 2014 by Filip Jorissen:
    Annex60 compatibility
  • January 2014, Dieter Patteeuw:
    First implementation