Services & Resources / Wolfram Forums / MathGroup Archive

MathGroup Archive 2013

[Date Index] [Thread Index] [Author Index]

Search the Archive

Strange behavior of System Modeler

  • To: mathgroup at
  • Subject: [mg129987] Strange behavior of System Modeler
  • From: Marco Gabiccini <m.gabiccini at>
  • Date: Sat, 2 Mar 2013 03:45:51 -0500 (EST)
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:

Hi all,

I have just started studying WSM and the Modelica language by implementing the simple pendulum model (class) es. described on p.33 of Peter Fritzson's book  Introduction to "Modeling and Simulation of Technical and Physical Systems with Modelica". The code (pendulum equation written as a DAE) is:

model DAEExample "DAEExample"
  constant Real PI=3.14159265358979;
  parameter Real m=1,g=9.81,l=0.5;
  output Real F;
  output Real x(start=0.5),y(start=0);
  output Real vx,vy;
  m*der(vy)=-y/l*F - m*g;
  x^2 + y^2=l^2;
end DAEExample;

I run the example in WSM and I get totally meaningless results.
The solver is the default one (DASSL) which, I think, is the right one for handling DAEs.

Any ideas?



Marco Gabiccini, PhD
Assistant Professor of Applied Mechanics and Robotics
Dept. of Mechanical, Nuclear and Production Engineering
University of Pisa
Via Diotisalvi 2, 56122 Pisa PI
Phone: +39-050-221.80.77
Fax: +39-050-221.80.65

  • Prev by Date: Re: Notational Conventions
  • Next by Date: kernel crash with predictive interface and SparseArray
  • Previous by thread: Re: Mathematica and Lisp
  • Next by thread: Re: Strange behavior of System Modeler