Changes between Initial Version and Version 2 of Ticket #5104


Ignore:
Timestamp:
2018-09-01T10:43:35Z (6 years ago)
Author:
Vitalij Ruge
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5104

    • Property Status newaccepted
  • Ticket #5104 – Description

    initial v2  
    1212In 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
    1313
    14 - positiveMax(cref, eps) = cref if variable(cref).min >= 0
    15 - positiveMax(-cref, eps) = 0 if variable(cref).max <= 0
     14- 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
    1616
    1717These additional optimizations would allows to remove unnecessary positiveMax function calls, hence eliminating unnecessary hard nonlinearities from the model equations.