Group Abstract Group Abstract

Message Boards Message Boards

0
|
5.2K Views
|
5 Replies
|
1 Total Like
View groups...
Share
Share this post:

Model doesn't run in SM 13.2 but runs in SM 12.3

Posted 2 years ago
POSTED BY: Michel Oliveira
5 Replies

Hi,

Maybe I can give some clue. From time to time, System Modeler gets better at detecting singularities during build. Such development is often introduced as a measure against problems affecting simulation in earlier versions. Sometimes – possibly what is seen here – a model may have been able to simulate with acceptable results in an earlier version despite presence of model singularities, but the quality of such simulation results cannot be guaranteed.

In my bug-hunt I found something strange, I have a sub-system that when validated in SM 13.2 returns:

If this is a sub-system which is not meant to be simulated on its own, it is not a problem that it is not globally balanced. The difference between being reported as an error or not might be due to some change in the classification of whether the model is expected to be usable on its own. Maybe the model has an experiment annotation despite it not being intended for simulation?

Finally, a general recommendation for how to approach the problem would be to look into why some equation systems are so big. Generally speaking, models that work well don't have equation systems of these sizes. However, there are exceptions, for example when the torn size of the system is small. Smaller equation systems not only make the model faster and more reliable to simulate, but also makes it a lot easier for the user to understand and debug.

POSTED BY: Henrik Tidefelt

Hi, sorry for the late response and thanks for your answer.

If this is a sub-system which is not meant to be simulated on its own, it is not a problem that it is not globally balanced.

The sub-system is not meant to be simulated on its own, so I guess that subsystem is fine.

Finally, a general recommendation for how to approach the problem would be to look into why some equation systems are so big. Generally speaking, models that work well don't have equation systems of these sizes.

But how do I know a suitable size? My model is really big and very complex, it has electrical and mechanical domain.

However, there are exceptions, for example when the torn size of the system is small.

What do you mean by torn size? I've searched the term but I didn't found anything clear about it.

NOTE: Sorry, I replied to myself but should be to you. I don't know how to delete.

POSTED BY: Michel Oliveira

But how do I know a suitable size? My model is really big and very complex, it has electrical and mechanical domain.

There is no general answer; within any domain there are applications for models of different level of detail and complexity. How to select the right level of complexity for the task is something to be learned by experience, and is a key aspect of becoming a good modeler.

POSTED BY: Henrik Tidefelt

What do you mean by torn size? I've searched the term but I didn't found anything clear about it.

It is the effective size of an equation system after applying equation system tearing. The effect of tearing can be seen in the Equation Browser (wsm:///ref/UserGuide/SimulationCenterEquationBrowser.html).

POSTED BY: Henrik Tidefelt

NOTE: Sorry, I replied to myself but should be to you. I don't know how to delete.

Obviously me neither.

POSTED BY: Henrik Tidefelt
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard