modelPortsAThroughPortB
Model to connect fluid port bus ports_a to single port port_b
Extends from PartialModularPort_a (Base model for all modular models with multiple inlet ports and one outlet port).
Information
This component transports fluid between its multiple inlet and single
outlet ports, without storing mass or energy. Therefore, all inlet
ports ports_a[i] are simply connected with the outlet
port port_b.
Implementation
This component is required to connect models extending from
PartialModularPort_b or
PartialModularPort_ab with, for example, boundary models
prestended in AixLib.Fluid.Sources. These
models are not directly connectable because the models presented in
AixLib.Fluid.Sources need undefined port sizes and that does not hold
for models extending from PartialModularPort_b or
PartialModularPort_ab.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| General › Modular approach | |||
| Integer | nVal | 1 | Number of valves - each valve will be connected to an individual port_b |
| Modular approach | |||
| Integer | nPorts (from PartialModularPort_a) | 1 | Number of outlet ports |
| Assumptions › General | |||
| Boolean | allowFlowReversal (from PartialModularPort_a) | true | = false to simplify equations, assuming, but not enforcing, no flow reversal |
| Advanced › Initialisation medium | |||
| Modelica.Units.SI.PressureDifference | dp_start (from PartialModularPort_a) | 1e5 | Guess value of pressure difference for subcomponents |
| Medium.MassFlowRate | m_flow_start (from PartialModularPort_a) | 0.5*m_flow_nominal | Guess value of m_flow = sum(ports_a.m_flow) |
| Advanced › Numeric limitations | |||
| Modelica.Units.SI.PressureDifference | dp_nominal (from PartialModularPort_a) | 7.5e5 | Pressure drop at nominal conditions |
| Medium.MassFlowRate | m_flow_nominal (from PartialModularPort_a) | 0.1 | Nominal mass flow rate |
| Medium.MassFlowRate | m_flow_small (from PartialModularPort_a) | 1e-6*m_flow_nominal | Small mass flow rate for regularization of zero flow |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Fluid.Interfaces.FluidPorts_a[nPorts] | ports_a (from PartialModularPort_a) | Fluid connectors a (positive design flow direction is from port_a to port_b) | |
| Modelica.Fluid.Interfaces.FluidPort_b | port_b (from PartialModularPort_a) | Fluid connector b (positive design flow direction is from port_a to port_b) |
Revisions
- October 16, 2017, by Mirko Engelpracht, Christian Vering:
First implementation (see issue 457).