modelPassThroughMedium
To make medium connectors conditional
Extends from AixLib.Fluid.Interfaces.PartialTwoPort (Partial component with two ports).
Information
Model to make models extending the TwoPort-Model optional.
Idea is based on the model RealPassThrough of the standard library.
- January 06, 2020, by Fabian Wuellhorst:
Change extend to TwoPort instead of TwoPortInterface (see issue 833). - August 08, 2018, by Fabian Wuellhorst, Philipp Mehrfeld:
First implementation
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Assumptions | |||
| Boolean | allowFlowReversal (from PartialTwoPort) | true | = false to simplify equations, assuming, but not enforcing, no flow reversal |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Fluid.Interfaces.FluidPort_a | port_a (from PartialTwoPort) | Fluid connector a (positive design flow direction is from port_a to port_b) | |
| Modelica.Fluid.Interfaces.FluidPort_b | port_b (from PartialTwoPort) | Fluid connector b (positive design flow direction is from port_a to port_b) |