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
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | use_p_in (from PartialTwoPort) | true | = true to use a pressure from connector, false to output Medium.p_default |
| Assumptions | |||
| Boolean | allowFlowReversal (from PartialTwoPort) | true | = true to allow flow reversal, false restricts to design direction (inlet -> outlet) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.Inlet | inlet (from PartialTwoPort) | Fluid inlet | |
| Interfaces.Outlet | outlet (from PartialTwoPort) | Fluid outlet | |
| Modelica.Blocks.Interfaces.RealInput | m_flow_in | Prescribed mass flow rate |
Revisions
-
September 24, 2015 by Michael Wetter:
Changed assignment of pressure to aconnectstatement because the pressure can be conditionally removed. -
November 3, 2014 by Michael Wetter:
First implementation.