- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Simple pendulum case crashes in v1.9
Simple pendulum case crashes in v1.9
Simple pendulum case crashes in v1.9
Hi,
The simple pendulum case below worked in version 1.8 but crashes in 1.9. Is this is a new bug or am I missing something???
class pendulum
constant Real PI = 3.14159;
parameter Real m = 1,g = 9.81,L = 0.5;
Real F;
output Real x(start = 0.5),y(start = 0);
output Real vx,vy;
equation
m * der(vx) = -x / L * F;
m * der(vy) = -y / L * F - m * g;
der(x) = vx;
der(y) = vy;
x ^ 2 + y ^ 2 = L ^ 2;
end pendulum;
Re: Simple pendulum case crashes in v1.9
- sjoelund.se
- 1700 Posts
Re: Simple pendulum case crashes in v1.9
Our back-end developer replied:
The pendulum model requires dynamic state selection. It is not enabled by default. You can enable it by setting
setMatchingAlgorithm("PFPlusExt");
setIndexReductionMethod("dynamicStateSelection");
I opened up a new ticket (#1820) to have these options in OMEdit as well.
- sjoelund.se
- 1700 Posts
Re: Simple pendulum case crashes in v1.9
OMEdit now handles this.
Adeel.
- adeas
- 454 Posts
Re: Simple pendulum case crashes in v1.9
Hi,
Install the new nightly build https://build.openmodelica.org/omc/buil … y-builds/.
In the simulation dialog you see two new drop down boxes where you can select these options before simulation.
Adeel.
- adeas
- 454 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Simple pendulum case crashes in v1.9