blockResistanceVolume

Declaration of an FMU that exports a flow resistance and 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 flow resistance and a control volume. The FMU has an instance of Buildings.Fluid.FixedResistances.PressureDrop and 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

TypeNameDefaultDescription
Booleanuse_p_in (from PartialTwoPort)true= true to use a pressure from connector, false to output Medium.p_default
Modelica.Units.SI.VolumeV1Volume
Modelica.Units.SI.MassFlowRatem_flow_nominal0.01Nominal mass flow rate
Modelica.Units.SI.PressureDifferencedp_nominal100Nominal pressure drop
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

Components

TypeNameDefaultDescription
Modelica.Blocks.Sources.RealExpressiondpComPressure drop of the component

Revisions

  • January 22, 2016, by Michael Wetter:
    Corrected type declaration of pressure difference. This is for #404.
  • November 8, 2014 by Michael Wetter:
    First implementation.