modelIdealSource

Base class for pressure and mass flow source with optional power input

Extends from IDEAS.Fluid.Interfaces.PartialTwoPortTransport.

Information

Model of a fictitious pipe that is used as a base class for a pressure source or to prescribe a mass flow rate.

Note that for fans and pumps with dynamic balance, both the heat and the flow work are added to the volume of air or water. This simplifies the equations compared to adding heat to the volume, and flow work to this model.

Typically either control_m_flow or control_dp should be true to avoid a singular system. If control_m_flow = true, then the mass flow rate is set to the value of the input connector m_flow_in. Otherwise, this model does not specify the mass flow rate. Similarly, if control_dp = true, the head is equal to the value of the input connector dp_in. Otherwise, this model does not specify the head.

Parameters

TypeNameDefaultDescription
Booleancontrol_m_flowif true, then the mass flow rate is equal to the value of m_flow_in
Booleancontrol_dpnot control_m_flowif true, then the head is equal to the value of dp_in

Components

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputm_flow_inPrescribed mass flow rate
Modelica.Blocks.Interfaces.RealInputdp_inPrescribed pressure difference port_a.p-port_b.p

Revisions

  • May 4, 2017, by Filip Jorissen:
    Implemented option to set control_dp independently from control_m_flow. This is for #770.
  • March 2, 2017, by Filip Jorissen:
    Implemented simplification when allowFlowReversal=false. This is for #673.
  • March 20, 2016, by Michael Wetter:
    Corrected documentation for dp_in.
  • January 22, 2016, by Michael Wetter:
    Added units to the signal connectors. This is for #404.
  • October 8, 2013, by Michael Wetter:
    Removed parameter show_V_flow.
  • May 25, 2011 by Michael Wetter:
    Removed the option to add power to the medium, as this is dealt with in the volume that is used in the mover model.
  • July 27, 2010 by Michael Wetter:
    Redesigned model to fix bug in medium balance.
  • April 13, 2010 by Michael Wetter:
    Made heat connector optional.
  • March 23, 2010 by Michael Wetter:
    First implementation.