Opened 8 years ago

Closed 7 years ago

#4046 closed defect (fixed)

nonlinear systems around external functions

Reported by: j.schulz@… Owned by: Patrick Täuber
Priority: high Milestone: Future
Component: Backend Version: v1.9.4-v1.9.x
Keywords: NLS, external function Cc: c.schulze@…, Francesco Casella

Description

In the tester an external function is called. One input of the function is not given; therefore OpenModelica has to iterate this one input to match the corresponding output. However, OpenModelica introduces one residual equation per each output instead of just one residual equation.

Please also note/cf. #2888 (nonlinear systems around external functions)

Attachments (1)

FalseIterationsNLS.zip (1.7 KB ) - added by j.schulz@… 8 years ago.
example package

Download all attachments as: .zip

Change History (4)

by j.schulz@…, 8 years ago

Attachment: FalseIterationsNLS.zip added

example package

comment:1 by Christian Schulze <c.schulze@…>, 8 years ago

Cc: c.schulze@… added

comment:2 by Patrick Täuber, 7 years ago

Owner: changed from Lennart Ochel to Patrick Täuber
Status: newaccepted

comment:3 by Patrick Täuber, 7 years ago

Cc: Francesco Casella added
Resolution: fixed
Status: acceptedclosed

Fixed in dc91086.

Instead of 8 residuals there is now only one residual equation:

10:  (NONLINEAR) index:1 jacobian: false
crefs: p
        8: ($TMP_pureComponentProperties__pTnc8.p_s, delta_hv, delta_hd, h_i) := pureComponentProperties_pTnc(p, T, 5);

        9: $TMP_pureComponentProperties__pTnc8.p_s - p_s (RESIDUAL)
Note: See TracTickets for help on using tickets.