modelM_flowMultiplier

Extends from Modelica.Fluid.Interfaces.PartialTwoPort (Partial component with two ports).

Information

Overview

The model multiplies the mass flow rate and enthalpy of a medium at constant pressure and temperature.

Example Results

BaseLib.Examples.Multiplier_test

Parameters

TypeNameDefaultDescription
Realfmultiplier: port_a.m_flow=f*port_b.m_flow
Assumptions
BooleanallowFlowReversal (from PartialTwoPort)system.allowFlowReversal= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
Advanced
Medium.MassFlowRatem_flow_startsystem.m_flow_startGuess value of m_flow = port_a.m_flow
Medium.MassFlowRatem_flow_smallsystem.m_flow_smallSmall mass flow rate for regularization of zero flow
Advanced › Diagnostics
Booleanshow_Tfalse= true, if temperatures at port_a and port_b are computed
Booleanshow_V_flowfalse= true, if volume flow rate at inflowing port is computed

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPort_aport_a (from PartialTwoPort)Fluid connector a (positive design flow direction is from port_a to port_b)
Modelica.Fluid.Interfaces.FluidPort_bport_b (from PartialTwoPort)Fluid connector b (positive design flow direction is from port_a to port_b)

Components

TypeNameDefaultDescription
Modelica.Fluid.Systemsystem (from PartialTwoPort)System wide properties
Modelica.Units.SI.VolumeFlowRateV_flowport_a.m_flow/Modelica.Fluid.Utilities.regStep(port_a.m_flow, Medium.density(state_a), Medium.density(state_b), m_flow_small*f)Volume flow rate at inflowing port (positive when flow from port_a to port_b)
Medium.Temperatureport_a_TModelica.Fluid.Utilities.regStep(port_a.m_flow, Medium.temperature(state_a), Medium.temperature(Medium.setState_phX(port_a.p, port_a.h_outflow, port_a.Xi_outflow)), m_flow_small*f)Temperature close to port_a, if show_T = true
Medium.Temperatureport_b_TModelica.Fluid.Utilities.regStep(port_b.m_flow, Medium.temperature(state_b), Medium.temperature(Medium.setState_phX(port_b.p, port_b.h_outflow, port_b.Xi_outflow)), m_flow_small)Temperature close to port_b, if show_T = true

Contents

NameDescription
MediumMedium in the component

Revisions

  • April 01, 2014 by Moritz Lauster:
    Renamed
  • April 10, 2013  by Ole Odendahl:
    Formatted documentation appropriately
  • November, 2011  by Peter Matthes:
    Model rewritten to work with MSL 3.2.
  • by Alexander Hoh:
    Implemented.