modelPartialModularPort_a
Base model for all modular models with multiple inlet ports and one outlet port
Information
This component transports fluid between its multiple inlet ports and
signle outlet port, 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 evaporators 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_outflowfor flow in design direction. -
port_a.h_outflow_ifor 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 = sum(ports_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.FluidPorts_a[nPorts] | ports_a | Fluid connectors a (positive design flow direction is from port_a to port_b) | |
| Modelica.Fluid.Interfaces.FluidPort_b | port_b | Fluid connector 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).