blockIdealSource_m_flow

Declaration of an FMU that exports a mass flow source and sink

Extends from Buildings.Fluid.FMI.ExportContainers.PartialTwoPort (Partial block to be used as a container to export a thermofluid flow model with two ports).

Information

This example demonstrates how to export an FMU that sets the mass flow rate.

Parameters

TypeNameDefaultDescription
Booleanuse_p_in (from PartialTwoPort)true= true to use a pressure from connector, false to output Medium.p_default
Assumptions
BooleanallowFlowReversal (from PartialTwoPort)true= true to allow flow reversal, false restricts to design direction (inlet -> outlet)

Connectors

TypeNameDefaultDescription
Interfaces.Inletinlet (from PartialTwoPort)Fluid inlet
Interfaces.Outletoutlet (from PartialTwoPort)Fluid outlet
Modelica.Blocks.Interfaces.RealInputm_flow_inPrescribed mass flow rate

Revisions

  • September 24, 2015 by Michael Wetter:
    Changed assignment of pressure to a connect statement because the pressure can be conditionally removed.
  • November 3, 2014 by Michael Wetter:
    First implementation.