#2888 closed defect (fixed)
nonlinear systems around external functions
Reported by: | 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)
Change History (8)
by , 10 years ago
Attachment: | FalseIterationVar.zip added |
---|
comment:1 by , 10 years ago
Cc: | added |
---|
comment:2 by , 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 , 10 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:4 by , 10 years ago
Status: | assigned → accepted |
---|
comment:6 by , 9 years ago
Milestone: | Future → pre1.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 , 7 years ago
Milestone: | pre1.9.4 → 1.9.4 |
---|
Removing the pre1.9.4 milestone in favor of 1.9.4.
Note:
See TracTickets
for help on using tickets.
example package