Changes between Initial Version and Version 2 of Ticket #5104
- Timestamp:
- 2018-09-01T10:43:35Z (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #5104
- Property Status new → accepted
-
Ticket #5104 – Description
initial v2 12 12 In fact, when dealing with components without flow reversal, not only the fluid never flows out of the inlet, hence inlet.m_flow.min = 0, but also the fluid never flows in the outlet, hence outlet.m_flow.max = 0. This fact can be stated by setting the max attribute of the outlet port mass flow rate to zero. If this property holds, then 13 13 14 - positiveMax(cref, eps) = cref if variable(cref).min >= 0 15 - positiveMax(-cref, eps) = 0 if variable(cref).max <= 014 - positiveMax(cref, eps) = cref if variable(cref).min >= 0 // test: positiveMax(1, eps) = 1 15 - positiveMax(-cref, eps) = cref if variable(cref).max <= 0 // test: positiveMax(-(-1), eps) = 1 16 16 17 17 These additional optimizations would allows to remove unnecessary positiveMax function calls, hence eliminating unnecessary hard nonlinearities from the model equations.