AixLib.Fluid.BaseClasses.MassFlowRateMultiplier

# .AixLib.Fluid.BaseClasses.MassFlowRateMultiplier

Model that multiplies the mass flow rate

## Information

This model multiplies the mass flow rate so that `0 = port_b.m_flow + gain * port_a.m_flow` where `gain > 0` is either equal to the input variable `u` if `use_input` is set to `true`, or equal to the parameter `k` if `use_input` is set to `false`.

The specific enthalpy, the species concentration and the trace substance concentration remain unchanged. Therefore, this model does not conserve mass or energy. It is used in AixLib.Fluid.Geothermal.Borefields.BaseClasses.PartialBorefield and also in the Buildings library to avoid having to instantiate circuits in parallel, with each having the same mass flow rate and temperatures.

## Revisions

- January 11, 2023, by Antoine Gautier:
  Added option to use input connector as multiplier factor.
  This is for #1684.
- March 27, 2013, by Michael Wetter:
  Changed implementation to extend from `Modelica.Fluid`.
- June 27, 2012, by Michael Wetter:
  First implementation.

Generated at 2026-05-09T18:18:56Z by OpenModelicaOpenModelica 1.26.7 using GenerateDoc.mos