modelPartial3WayValve

Partial for 3-way valves

Extends from IDEAS.Fluid.Interfaces.LumpedVolumeDeclarations (Declarations for lumped volumes).

Information

Description

3-way valve with temperature set point for mixing a cold and hot fluid to obtain outlet fluid at the desired temperature. If the desired temperature is higher than the hot fluid, no mixing will occur and the outlet will have the temperature of the hot fluid.

Inside the valve, the cold water flowrate is fixed with a pump component. The fluid content in the valve is equally split between the mixing volume and this pump. Without fluid content in the pump, this model does not work in all operating conditions.

Assumptions and limitations

  1. Correct connections of hot and cold fluid to the corresponding flowPorts is NOT CHECKED.
  2. The fluid content m of the valve has to be larger than zero
  3. There is an internal parameter mFlowMin which sets a minimum mass flow rate for mixing to start.

Model use

  1. Set medium and the internal fluid content of the valve (too small values of m could increase simulation times)
  2. Set mFlowMin, the minimum mass flow rate for mixing to start.
  3. Supply a set temperature at the outlet

Validation

None

Example (optional)

Examples of this model can be found in IDEAS.Thermal.Components.Examples.TempMixingTester and IDEAS.Thermal.Components.Examples.RadiatorWithMixingValve

Parameters

TypeNameDefaultDescription
Reall0.001Valve leakage, minimum fraction of flow rate passing through ports a
Modelica.Units.SI.MassFlowRatem_flow_nominalNominal mass flow rate
BooleanallowFlowReversaltrue= true to allow flow reversal
Modelica.Units.SI.Massmm_flow_nominal*tauFluid content of the mixing valve
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
Realtau1Thermal time constant

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPort_aport_a1First fluid inlet
Modelica.Fluid.Interfaces.FluidPort_aport_a2Second fluid inlet
Modelica.Fluid.Interfaces.FluidPort_bport_bFluid outlet

Components

TypeNameDefaultDescription
IDEAS.Fluid.MixingVolumes.MixingVolumevol
IDEAS.Fluid.Interfaces.IdealSourceidealSource

Revisions

  • October 2, 2019 by Filip Jorissen:
    Avoiding division by zero for zero flow rates when SteadyState. See #1063.
  • May 3, 2019 by Filip Jorissen:
    Propagated mSenFac. See #1018.
  • April 23, 2019 by Filip Jorissen:
    Using separate port for each connection to avoid algebraic loops. See #1019.
  • March 26, 2018 by Filip Jorissen:
    Implemented valve leakage, see #782.
  • March 2014 by Filip Jorissen:
    Initial implementation