modelM_flowMultiplier
Extends from Modelica.Fluid.Interfaces.PartialTwoPort.
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
| Type | Name | Default | Description |
| Real | f | | multiplier: port_a.m_flow=f*port_b.m_flow |
| Advanced |
| Medium.MassFlowRate | m_flow_start | system.m_flow_start | Guess value of m_flow = port_a.m_flow |
| Medium.MassFlowRate | m_flow_small | system.m_flow_small | Small mass flow rate for regularization of zero flow |
| Advanced › Diagnostics |
| Boolean | show_T | false | = true, if temperatures at port_a and port_b are computed |
| Boolean | show_V_flow | false | = true, if volume flow rate at inflowing port is computed |
Components
| Type | Name | Default | Description |
| Modelica.Units.SI.VolumeFlowRate | V_flow | port_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.Temperature | port_a_T | Modelica.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.Temperature | port_b_T | Modelica.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
| Name | Description |
| Medium | Medium 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.