Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register
  • Index
  • » Users
  • » funnell
  • » Profile

Posts

Posts

Jul-15-17 00:19:57
Failure when attempting installation from source for Debian

I am attempting to install OpenModelica from source for Debian Wheezy, following the instructions at https://openmodelica.org/index.php/down … oad-linux. I added
  deb http://build.openmodelica.org/apt wheezy nightly
  deb-src http://build.openmodelica.org/apt wheezy nightly
to my sources.list and updated, but when I attempt
  sudo apt-get build-dep openmodelica
I get the message
  Unable to find a source package for openmodelica
When I check http://build.openmodelica.org/apt/dists … ce/Sources there is indeed no package called openmodelica.

Am I doing something wrong?

(By the way, the instructions say 'sudo apt build-dep' but presumably that should be 'sudo apt-get build-dep'.)

May-29-11 04:09:03
runge-kutta method not available because of typo?

When I request runge-kutta in the OMEdit simulation dialogue box, I get an error message saying
'Unrecognized solver: runge-kutta; valid solvers are dassl,euler,rungekutta,dassl2,inline-euler or inline-rungekutta.'
Apparently there shouldn't be a hyphen there?
Is it also an error that inline-euler and inline-rungekutta are mentioned in the error message but are not offered in the dropdown list?
This is with OMEdit 1.7.0 under Windows.

May-29-11 04:01:30
Triangle waveform changes to sawtooth after several cycles

I'm using block.sources.trapezoid to generate triangle waves, and for certain parameters the behaviour is peculiar.
For example, with rising = falling = 0.4, width = 0, period = 0.8, stop time = 8, the first 6 cycles are triangle waves as desired, but then the remaining 4 cycles are sawtooth waves (rising = 0.4, falling = 0). Shorter rise/fall times and periods (always with stop time = 10 x period) all show the same problem.
With rising = falling = 0.45, period = 0.9, stop time = 9, all 10 cycles are nice triangle waves. Longer rise/fall times and periods all show the correct behaviour.
Keeping the rising/falling/period/stop = 0.4/0.4/0.8/8, if I try different numbers of output intervals, 500 and 1000 give the bad results, but 900, 1001, 1010, 1020, 1050 and anything higher that I've tried give the correct results. And if I specify 1024 output intervals, I get 2 triangles, 1 sawtooth, 4 triangles, 1 sawtooth and 2 triangles.
This is all with the dassl integration method. I tried dassl2 and euler a couple of times and they behaved the same as dassl.
This is with OMEdit 1.7.0 under Windows.

May-28-11 17:24:39
How to set parameters for trapezoid source

That was exactly the problem and now my simulation is running fine! I'd seen the issue that you mention but hadn't understood the implications. Thanks very much for the quick reply.

May-28-11 15:41:26
How to set parameters for trapezoid source

I'm a rank beginner in using OpenModelica. I've made a mechanics.translational model (called sls_m) with 2 springs, a damper, a fixation and a force,  and successfully simulated with a step force and with a sawtooth using blocks.sources.sawtooth. I've also successfully used blocks.sources.trapezoid with its default parameters (which create a square wave). However, when I start trying to turn it into a triangular wave by setting any of its parameters, I get the message 'Error: Variable rising not found in scope sls_m'. Can someone please tell me how I'm supposed to set these parameters, or where it's documented? Thanks. - Robert

  • Index
  • » Users
  • » funnell
  • » Profile
You are here: