blockMixingVolume
Declaration of an FMU that exports a control volume
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 with a control volume. The FMU has an instance of Buildings.Fluid.MixingVolumes.MixingVolume.
The mass dynamics has been set to
massDynamics=Modelica.Fluid.Types.Dynamics.SteadyState.
See the
user's guide
for the rationale.
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 |
| Modelica.Units.SI.Volume | V | 1 | Volume |
| Modelica.Units.SI.MassFlowRate | m_flow_nominal | 0.01 | Nominal mass flow rate |
| 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 |
Revisions
-
November 21, 2014 by Michael Wetter:
First implementation.