Some issues in simulation

Discussion about the use of Simantics System Dynamics
Post Reply
nikbels
Posts: 4
Joined: April 7th, 2014, 11:58 am

Some issues in simulation

Post by nikbels » April 14th, 2014, 7:19 pm

Hi all, need some help on simulation.

I have built up a model in simantics. It runs but then throws up some NaN values after some time. That can be changed by modifying the least count of the simulation time.

How to do that? any help would be most welcome. Also, if needed, I can also attach my model file here.

Update: I figured it out. Clicking on the "model" lets you choose the time et al.
Tuomas Miettinen
Site Admin
Posts: 31
Joined: March 11th, 2013, 3:14 pm

Re: Some issues in simulation

Post by Tuomas Miettinen » April 15th, 2014, 7:54 am

Hi,

If the simulation diverges, you'll get NaN. You can also try to change the solver in Model Properties - Method (Euler, Runge-Kutta, etc.).

Tuomas
sanjb
Posts: 3
Joined: October 23rd, 2015, 2:18 am

Re: Some issues in simulation

Post by sanjb » October 23rd, 2015, 2:22 am

Hello Everyone,

I've just started using Simantics and really like the IDE, however, very frustrated with the simulation not showing anything in the trend nor am I able to change the simulation execution period from 10 s to 30 s. I've started with the basic tutorial, and disappointed, especially with a very nice UI and comprehensive set of functions. Could someone please help? I need to simulate a Business Model with varying inputs/outputs and this simple tutorial isn't working---I'm sure it's me & lack of experience with this product. Thanks
jkauttio
Site Admin
Posts: 5
Joined: February 13th, 2014, 1:41 pm

Re: Some issues in simulation

Post by jkauttio » October 23rd, 2015, 11:58 am

sanjb wrote:Hello Everyone,

I've just started using Simantics and really like the IDE, however, very frustrated with the simulation not showing anything in the trend nor am I able to change the simulation execution period from 10 s to 30 s. I've started with the basic tutorial, and disappointed, especially with a very nice UI and comprehensive set of functions. Could someone please help? I need to simulate a Business Model with varying inputs/outputs and this simple tutorial isn't working---I'm sure it's me & lack of experience with this product. Thanks
The trend view will show the results when they are available (i.e. the simulation has been completed successfully) and a variable is selected either in the model browser (the list on the left) or in the diagram editor. The simulation parameters (including the simulation duration) are changed by selecting the "Configuration" item in the model browser.

If you can not find the model browser or the property editor (you can hide them accidentally), I recommend resetting the perspective from Window -> Reset Perspective.
sanjb
Posts: 3
Joined: October 23rd, 2015, 2:18 am

Re: Some issues in simulation

Post by sanjb » October 23rd, 2015, 1:17 pm

Thanks, you've clarified my confusion, and I'm now able to view the results. But, even after resetting the perspective I'm still unable to view or modify the properties. By right clicking the Configuration, there's no option in the drop-down to modify properties, thus, unable change the stopTime. Would appreciate further assistance. Thanks again
jsimomaa
Site Admin
Posts: 2
Joined: August 27th, 2014, 6:25 pm

Re: Some issues in simulation

Post by jsimomaa » October 25th, 2015, 11:51 am

sanjb wrote:I'm still unable to view or modify the properties. By right clicking the Configuration, there's no option in the drop-down to modify properties, thus, unable change the stopTime.
For modifying the properties of your model the model (or Configuration) needs to be selected via the model browser (light blue highlight color). Also the Properties view (with small spreadsheet like icon) needs to be actively visible for the properties to be visible.

I'll attach an image which hopefully clarifies things even further :)

Image
sanjb
Posts: 3
Joined: October 23rd, 2015, 2:18 am

Re: Some issues in simulation

Post by sanjb » October 27th, 2015, 3:26 pm

Appreciate the screen capture; seems I needed to select view SD Model and now I'm able to successfully modify the properties. Thanks again
Post Reply