modelSISOBiFlow
Extends from ThermofluidStream.Utilities.DropOfCommonsPlus (Extend this to use 'dropOfCommons', 'instanceName', 'displayInstanceName' and 'displayParameters').
Information
Interface class for all components with one fore and one rear port and a massflow without a mass storage between.
This class already implements the equations that are common for such components, namly the conservation of mass, the intertance equation, as well as the clipping of p_out to p_min.
If p_out should be lower the p_min, the remaining pressure drop is added on the difference in inertial pressure r, basically accelerating or decelerating the massflow.
The component offers different initialization methods for the massflow, as well as several parameters used in the equations above.
The clipping of the massflow can be turned off (this should be done by the modeler as a final modificator while extending to hide this option from the enduser).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| String | instanceName (from DropOfCommonsPlus) | getInstanceName() | Instance name |
| Layout | |||
| Boolean | displayInstanceName (from DropOfCommonsPlus) | dropOfCommons.displayInstanceNames | = true, if instance name is displayed |
| Boolean | displayParameters (from DropOfCommonsPlus) | dropOfCommons.displayParameters | = true, if displaying parameters is enabled |
| Advanced | |||
| Utilities.Units.Inertance | L | dropOfCommons.L | Inertance |
| StateSelect | m_flowStateSelect | StateSelect.default | State select for mass flow rate |
| Boolean | clip_p_out | If true, set dr_corr to zero | |
| Medium.AbsolutePressure | p_min | dropOfCommons.p_min | Minimal steady-state output pressure |
| Initialization | |||
| InitializationMethods | initM_flow | ThermofluidStream.Utilities.Types.InitializationMethods.none | Initialization method for mass flow rate |
| SI.MassFlowRate | m_flow_0 | 0 | Initial value for mass flow rate |
| Utilities.Units.MassFlowAcceleration | m_acceleration_0 | 0 | Initial value for der(m_flow) |
| Advanced › Regularization | |||
| SI.MassFlowRate | m_flow_reg | dropOfCommons.m_flow_reg | Regularization threshold of mass flow rate |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Fore | fore | ||
| Rear | rear |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.MassFlowRate | m_flow | rear.m_flow | Mass flow rate |
| SI.Pressure | dp_fore | ||
| SI.Pressure | dp_rear | ||
| SI.Pressure | dr_corr_fore | ||
| SI.Pressure | dr_corr_rear | ||
| SI.Pressure | dr_corr |
Contents
| Name | Description |
|---|---|
| Medium model |