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 |
This model is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. For details see
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | numberOfPortsSplit | 2 | Number of inlets(mixer) / outlets(splitter) |
| Initialization | |||
| SI.AbsolutePressure | p_start | 1e5 | Pressure |
| Boolean | useTemperatureStartValue | false | Use temperature instead of specific enthalpy |
| SI.SpecificEnthalpy | h_start | 300e3 | Specific enthalpy |
| SI.Temperature | T_start | 300 | Guess value of temperature |
| SI.MassFlowRate | m_flow_start | 1 | Mass flow rate trough outlet(mixer, negative!) / inlet(splitter) |
| SI.MassFlowRate | m_flowOpposite_start | -ones(numberOfPortsSplit)*m_flow_start/numberOfPortsSplit | Mass flow rate trough inlets(mixer) / outlets(splitter, negative!) |
| Initialization › Initial equations in case of volume > 0 | |||
| Boolean | initializeSteadyMassBalance | true | ma=sum(mb) |
| Boolean | initializeSteadyEnthalpyBalance | true | der(h)=0, may be too much in case of mixer |
| Boolean | initializeFixedPressure | false | p=p_start |
| Boolean | initializeFixedEnthalpy | false | h=h_start |
| Volume | |||
| Boolean | hasVolume | false | |
| SI.Volume | V | 0.1 | |
| Pressure loss | |||
| Boolean | hasPressureDrop | false | may be necessary in case of a splitter |
| Modelica.Fluid.Types.HydraulicResistance | resistanceHydraulic | 2 | Hydraulic resistance |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| SiemensPower.Interfaces.FluidPort_a | portMix | inlet(splitter) / outlet(mixer) | |
| SiemensPower.Interfaces.FluidPorts_b[numberOfPortsSplit] | portsSplit | outlets(splitter) / inlets(mixer) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.SpecificEnthalpy | h | ||
| SI.Pressure | p | ||
| SI.Density | d | ||
| SI.MassFlowRate | m_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)