Opened 10 years ago

Closed 10 years ago

Last modified 7 years ago

#2888 closed defect (fixed)

nonlinear systems around external functions

Reported by: c.schulze@… Owned by: Willi Braun
Priority: high Milestone: 1.9.4
Component: Backend Version: trunk
Keywords: NLS, external function Cc: Willi Braun, Lennart Ochel

Description

In the tester an external function is called. The inputs of the function are given. Nevertheless OpenModelica puts a nonlinear system around the function to iterate the outputs.

Attachments (1)

FalseIterationVar.zip (1.5 KB ) - added by c.schulze@… 10 years ago.
example package

Download all attachments as: .zip

Change History (8)

by c.schulze@…, 10 years ago

Attachment: FalseIterationVar.zip added

example package

comment:1 by Martin Sjölund, 10 years ago

Cc: Willi Braun Lennart Ochel added

comment:2 by Martin Sjölund, 10 years ago

The non-linear system looks like this:

    <nonlinear indexNonlinear="1">
      <defines name="h_i[3]" />
      <defines name="h_i[2]" />
      <defines name="delta_hv" />
      <defines name="h_i[1]" />
      <defines name="h_i[5]" />
      <defines name="h_i[4]" />
      <defines name="delta_hd" />
      <defines name="p_s" />
      <eq index="15"/>
      <eq index="16"/>
      <eq index="17"/>
      <eq index="18"/>
      <eq index="19"/>
      <eq index="20"/>
      <eq index="21"/>
      <eq index="22"/>
      <eq index="23"/>
    </nonlinear>

These are all outputs of the call in the flat Modelica:

(p_s, delta_hv, delta_hd, h_i) = FalseIterationVar.pureComponentProperties_pTnc(p, T, nc)

So not only is a non-linear solver used; it also calls the external function 9 times for each iteration of the NLS solver.

comment:3 by Lennart Ochel, 10 years ago

Owner: changed from somebody to Willi Braun
Status: newassigned

comment:4 by Willi Braun, 10 years ago

Status: assignedaccepted

comment:5 by Willi Braun, 10 years ago

Resolution: fixed
Status: acceptedclosed

fixed in r22773.

comment:6 by Dietmar Winkler, 9 years ago

Milestone: Futurepre1.9.4

It doesn't make sense to keep closed ticket in the "Future" milestone that were simply forgotten to assign to the correct milestone in the past.

comment:7 by Martin Sjölund, 7 years ago

Milestone: pre1.9.41.9.4

Removing the pre1.9.4 milestone in favor of 1.9.4.

Note: See TracTickets for help on using tickets.