Items tagged with modelica modelica Tagged Items Feed

In MapleSim environment, I can see these code, but I find that I cannot edit them.

Is there a method that I can edit these codes?

Thank you.



i have some problem when iuse the digital libray with the delay components:

i have this error: delay variable not found in dependent variable list, [`Main.TransportDelay1.x`(T)]

it seems that the delay function in the modelica language is not well treated in MapleSim . At this level:


    y = if 0 < delayTime then if delayTime <= time then x_delayed else y0 else pre(x);
    x_delayed = integer(delay(x, delayTime));
end Modelica.Electrical.Digital.Delay.TransportDelay;


Thank you for your help.



Hi! I'm trying to use MapleSim 7 to simulate some very simple physical situations, however after great many hours spent at this, I'm still unable to convince MapleSim to load and run even the simplest Modelica models, like:

model Main
  Modelica.Mechanics.MultiBody.Parts.Body o(r_CM = zeros(3));
  inner .Modelica.Mechanics.MultiBody.World world;
  o.frame_b.f = {0,-9.8,0};
end Main;

It will report that o and world are "unknowns" and apparently does not recongize Modelica.Mechanics.MultiBody.Parts.Body nor Modelica.Mechanics.MultiBody.World. Do I need to do some extra steps to import extra libraries or enable some non-default components?  I went through various YouTube and other tutorials and didn't find a mention of anything.

When I look at some examples, often they refer to things like Maplesoft.Multibody.World - but these are proprietary Maple packages, and I need my code to use standard Modelica. Does this mean that MapleSim cannot run generic Modelica code like this?

I also tried running e.g. and some other examples, with absolutely no success either. I'm quite confused because MapleSim has a lot of advertising about Modelica support... :-(


I am trying to plot only the real part of the values obtained from the MapleSim model.  Probably there is a Modelica function to get only the real part of the values, but I am unable to find it. Could you please have a look at the code and let me know what I should do to solve this problem?




The code is: (I want to plot the real part of R2)


model IKTest

parameter Boolean switched = false;
parameter Modelica.SIunits.Length L1 = 0.100;
parameter Modelica.SIunits.Length L2 = 0.102;
parameter Modelica.SIunits.Length L3 = 0.5;
//parameter Real c; //Complex number
//parameter c;

Modelica.Blocks.Interfaces.RealInput u[3]
annotation (Placement(transformation(extent={{-140,-20},{-100,20}},rotation=0)));
Modelica.Blocks.Interfaces.RealOutput y[3]
annotation (Placement(transformation(extent={{90,-10},{110,10}},rotation=0)));

Real Tx = u[1];
Real Ty = u[2];
Real Tz = u[3];
Real R1 = y[1];
Real R2 = y[2];
Real R3 = y[3];




annotation (uses(Modelica(version = "3.1")));
end IKTest;


I tried to import the modelica library Buildings1.6 from the modelica website and get always the error "Nothing found in the modelica library". 

Is it possible to import modelica libraries? 

Thank you very much

Does MapleSim 6 cover temperature dependent fluid media? In the modelica standard library (MSL), there is for example a medium model for T-dependent properties, defined by tables or polynomials (Modelica.Media.Incompressible).


Is it included in MapleSim 6 or can be somehow modelled?




Is MapleSim 6.1 fully Modelica 3.1 compliant? If not, which features does it miss for the moment?

Lookup tables? (modelica ones, not maplesim's)

Thank you very much

Hi there!

Is there a way to implement a fixed delay (not the Padé approximation)? I'm using MapleSim 5. 

I tried importing the Modelica's fixed delay block, but it seems that MapleSim doesn't support the implementation...


Hi people!

Why there is not a "Modelica.Mechanics.MultiBody.Joints.RollingWheel" (different from 1-D mechanics rolling wheel) in MapleSim 5? It is previewed in the Modelica language and SystemModeler has this implementation.

Is there a way to import the model o this joint from somewhere? If not, how could I model this non-holonimic constraint in MapleSim? 


MapleSim has seen a rapid evolution since its inception in 2008 as a multi-domain system-level modeling and simulation environment. Market response has been outstanding: Maplesoft has been working with an expanding list of key industry players such as AISIN AW Co., Ltd. and B&R,  while major customers like


How can we re-initialize a multi-body system, for example a three link pendulum, based on measurements obtained from various sensors? Can we generate a modelica custom component which has inputs from various sensors and the output is the re-initialized states for the multi-body system?

Thanks for your help....


I have a system consisting of a multi-body system and various modelica/maple custom components. The problem is whenever I re-run the simulation even though all the simulation settings are same, the simulation results are inconsistent. There should be no difference between each simulation as all the parameters/settings are same. I am attaching two pictures which are both obtained from two successive simulations


I have a simulation file consisting of a number of modelica custom componets and maple custom components. I initially generated Random Data with mean 1 and standard deviation 0.5. Constructed all the blocks and combined with a multibody system, it worked fine. However, when I generated Random data with zero mean, then I have this error/problem "Simulation Problem: maximum number of event iterations reached (100) at 1.85000".

I used a couple of pre() function with clock=sample(0,0.01...

Hi all,

I have a modelica custom componet which has inputs from angle/speed sensors and the output is a vector. I have an error "Attempted to retrieve property of unknown component". Can anyone see mistakes from the code below;

model basisFunction
    extends Maplesoft.Icons.CustomComponent;
    parameter Real bPen[sn*sn] "The normalized output for the basis function";
    parameter Integer sn=5 "The number of samples in each axist";

Hi all,

During simulation I need to use a parameter as a feedback, which is previously determined in a Modelica Custom Component. In this case, can we use Zero Order Hold (ZOH) block/function to hold the previous value? If yes, how should we choose the parameters of ZOH?


1 2 Page 1 of 2