modelSplitterMixer

Splitter/mixer with N ports

Information

This splitter/mixer hasa variable number N of ports. It can be an ideal splitter/mixer (hasVolume=false and hasPressureDrop=false) or can be modeled with a volume and/or pressure losses in the N outlets/inlets.

In case of using this component as a mixer you must use the portsSplit[numberOfPortsSplit] as inlets and portMix as the outlet.

Author: Haiko Steuer SCD
Checked by:
Protection class: free
Used Dymola version: 6.1
Copyright © 2007 Siemens AG, PG EIP12 , All rights reserved.

This model is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. For details see

Parameters

TypeNameDefaultDescription
IntegernumberOfPortsSplit2Number of inlets(mixer) / outlets(splitter)
Initialization
SI.AbsolutePressurep_start1e5Pressure
BooleanuseTemperatureStartValuefalseUse temperature instead of specific enthalpy
SI.SpecificEnthalpyh_start300e3Specific enthalpy
SI.TemperatureT_start300Guess value of temperature
SI.MassFlowRatem_flow_start1Mass flow rate trough outlet(mixer, negative!) / inlet(splitter)
SI.MassFlowRatem_flowOpposite_start-ones(numberOfPortsSplit)*m_flow_start/numberOfPortsSplitMass flow rate trough inlets(mixer) / outlets(splitter, negative!)
Initialization › Initial equations in case of volume > 0
BooleaninitializeSteadyMassBalancetruema=sum(mb)
BooleaninitializeSteadyEnthalpyBalancetrueder(h)=0, may be too much in case of mixer
BooleaninitializeFixedPressurefalsep=p_start
BooleaninitializeFixedEnthalpyfalseh=h_start
Volume
BooleanhasVolumefalse
SI.VolumeV0.1
Pressure loss
BooleanhasPressureDropfalsemay be necessary in case of a splitter
Modelica.Fluid.Types.HydraulicResistanceresistanceHydraulic2Hydraulic resistance

Connectors

TypeNameDefaultDescription
SiemensPower.Interfaces.FluidPort_aportMixinlet(splitter) / outlet(mixer)
SiemensPower.Interfaces.FluidPorts_b[numberOfPortsSplit]portsSplitoutlets(splitter) / inlets(mixer)

Components

TypeNameDefaultDescription
SI.SpecificEnthalpyh
SI.Pressurep
SI.Densityd
SI.MassFlowRatem_flowFromPortMix
SI.MassFlowRate[numberOfPortsSplit]m_flowFromPortsSplit

Revisions

  • Feb 2009 adapted for stream connector by Haiko Steuer
  • November 2007, generalized for other media
  • June 2007 by Haiko Steuer (for water/steam)