Opened 14 years ago
Last modified 14 years ago
#1268 closed defect (fixed)
Command switch and API for guiding the breaking algorithm for overconstrained connections
Reported by: | Adrian Pop | Owned by: | Adrian Pop |
---|---|---|---|
Priority: | high | Milestone: | Red October |
Component: | Version: | ||
Keywords: | Cc: | Adrian Pop, Adrian Pop |
Description
When flattening model Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1
the breaking algorithm for overconstrained connections can select a solution
that is not solvable. Add command switches to be able to choose from multiple solutions.
Attachments (3)
Change History (4)
comment:1 by , 14 years ago
by , 14 years ago
Attachment: | Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.gv added |
---|
The generated file when running {{{omc +d=cgraphGraphVizFile Fourbar1.mos}}.
The definite roots, potential roots, branches, connects, selected roots and broken connects
are outlined so the user understands how OpenModelica broke the overconstrained connection graph.
Open this graph using GraphViz to have a look.
by , 14 years ago
Attachment: | Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.svg added |
---|
svg and pdf of Fourbar1 model.
comment:2 by , 14 years ago
This is now fixed by an interactive loop where the user selects in GraphViz lefty OpenModelica assistant what connect edge to break.
This connect edge is passed to OpenModelica and used in the overconstrained connection breaking algorithm.
Added support for directly displaying the overconstrained connection graph using GraphViz.
One will need to have GraphViz installed and {{lefty}} program in the PATH.
Still left to do: handle user input and use it to guide the breaking of connection graph.