|
|
|
|
|
by lutorm
2185 days ago
|
|
Another thing that we discovered when testing out using Modelica for some stuff is that it is very easy to design yourself a model that can't be solved. The whole premise of the "object orientation" is that you can just compose models without knowing how to solve the entire system. Once the solver fails, though, all that abstraction comes crashing down and you're left with trying to look at a 500-variable Jacobian and figure out what's making the solver choke. One particular issue with the circuit model example in the article, for example, is that when you add switching elements you often end up with disconnected sub-diagrams and then the solver chokes trying to determine what the potential of the floating circuit is, even though it has no effect on anything you care about. So then you have to start adding stray capacitances and stray resistances to make the solver happy, etc. |
|
[1] https://reference.wolfram.com/system-modeler/UserGuide/Simul...
[2] https://liu.diva-portal.org/smash/get/diva2:801004/FULLTEXT0...