modelPartialModularPort_b
Base model for all modular models with one inlet port and multiple outlet ports
Information
This component transports fluid between its single inlet port and
multiple outlet ports, without storing mass or energy. Energy may be
exchanged with the environment though, for example, in the form of
work. PartialModularPort_a is intended as base class for
devices like modular expansion valves that are used, for example, in
modular heat pumps.
Three equations need to be added by an extending class using this component:
- The momentum balance specifying the relationship between the
pressure drops
dp_iand the mass flow ratesm_flow_iif these variables are introduced by the modeller -
port_b.h_outflow_ifor flow in design direction. -
port_a.h_outflowfor flow in reverse direction.
Moreover, appropriate values shall be assigned to the following parameters:
-
dp_startfor a guess of the pressure drop -
m_flow_smallfor regularization of zero flow. -
dp_nominalfor nominal pressure drop. -
m_flow_nominalfor nominal mass flow rate.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modular approach | |||
| Integer | nPorts | 1 | Number of outlet ports |
| Assumptions › General | |||
| Boolean | allowFlowReversal | true | = false to simplify equations, assuming, but not enforcing, no flow reversal |
| Advanced › Initialisation medium | |||
| Modelica.Units.SI.PressureDifference | dp_start | 1e5 | Guess value of pressure difference for subcomponents |
| Medium.MassFlowRate | m_flow_start | 0.5*m_flow_nominal | Guess value of m_flow = port_a.m_flow |
| Advanced › Numeric limitations | |||
| Modelica.Units.SI.PressureDifference | dp_nominal | 7.5e5 | Pressure drop at nominal conditions |
| Medium.MassFlowRate | m_flow_nominal | 0.1 | Nominal mass flow rate |
| Medium.MassFlowRate | m_flow_small | 1e-6*m_flow_nominal | Small mass flow rate for regularization of zero flow |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Fluid.Interfaces.FluidPort_a | port_a | Fluid connector a (positive design flow direction is from port_a to port_b) | |
| Modelica.Fluid.Interfaces.FluidPorts_b[nPorts] | ports_b | Fluid connectors b (positive design flow direction is from port_a to port_b) |
Contents
| Name | Description |
|---|---|
Revisions
- October 16, 2017, by Mirko Engelpracht, Christian Vering:
First implementation (see issue 457).