MaplePrimes - MapleSim Posts and Questions
http://www.mapleprimes.com/tags/MapleSim
en-us2014 Maplesoft, A Division of Waterloo Maple Inc.Maplesoft Document SystemTue, 23 Sep 2014 04:20:17 GMTTue, 23 Sep 2014 04:20:17 GMTMapleSim Questions and Posts on MaplePrimeshttp://www.mapleprimes.com/images/mapleprimeswhite.jpgMaplePrimes - MapleSim Posts and Questions
http://www.mapleprimes.com/tags/MapleSim
maple et maplesim 32bits et 64bits
http://www.mapleprimes.com/questions/202348-Maple-Et-Maplesim-32bits-Et-64bits?ref=Feed:MaplePrimes:Tagged With MapleSim
<p>Hello,</p>
<p>Is it possible to install on the same machine both the version 32bits and 64bits ?</p>
<p>For example, for some software (like visio) it is possible to have several version of the softwares.</p>
<p>In fact, it can be useful for me because with 32 bits I can communicate with 32bits softwares and with 64bits I can do quicker some calculations.</p>
<p>Thank you for help.</p>
<p> </p><p>Hello,</p>
<p>Is it possible to install on the same machine both the version 32bits and 64bits ?</p>
<p>For example, for some software (like visio) it is possible to have several version of the softwares.</p>
<p>In fact, it can be useful for me because with 32 bits I can communicate with 32bits softwares and with 64bits I can do quicker some calculations.</p>
<p>Thank you for help.</p>
<p> </p>202348Fri, 12 Sep 2014 20:59:54 ZBendesartsBendesartsTuning solver setting for the simulation of CKC multibody systems
http://www.mapleprimes.com/questions/202276-Tuning-Solver-Setting-For-The-Simulation?ref=Feed:MaplePrimes:Tagged With MapleSim
<p>Hello,</p>
<p>I could obtain the simulation of my multibody with kinematic closed chain (CKC).</p>
<p>However, it seems that from a specific time (around 12s) in my model I believe that I have some numerical instabilities. Indeed, I could compare my simulation results with another mulbody software. I obtain the same simulation until 12s and after in MapleSim, it appears many perturbations as you can see on the figures belows.</p>
<p><img src="/view.aspx?sf=202276_question/numerical_instabilities.png" alt=""></p>
<p>So, I think that I tune the numerical solver. This numerical solver must solve DAEs equations since my model contains 4 kinematic closed loops.</p>
<p>If i read correctly the help menu, there are the following methods to solve the DAEs :</p>
<p>- use specific DAE numerical solver (3 differents solvers are used : ck45 method, RKF45 method and Rosenbrock method</p>
<p>- use reformulation equations techniques (Baumgarte, Projection) which can be associated (I believe) with a classic solver like (RK4).</p>
<p>For the moment, I have obtained my results with the rosenbrock solver with error absolute : 1.0*10^(-4) and eror relative :error absolute : 1.0*10^(-4) </p>
<p><strong>Do you have some ideas or advices so as to find a better method to solve my multibody systems with kinematic closed loops ? This method should prevent the creation of numerical instabilities.</strong></p>
<p>Thanks a lot for your help</p>
<p> </p><p>Hello,</p>
<p>I could obtain the simulation of my multibody with kinematic closed chain (CKC).</p>
<p>However, it seems that from a specific time (around 12s) in my model I believe that I have some numerical instabilities. Indeed, I could compare my simulation results with another mulbody software. I obtain the same simulation until 12s and after in MapleSim, it appears many perturbations as you can see on the figures belows.</p>
<p><img src="/view.aspx?sf=202276_question/numerical_instabilities.png" alt=""></p>
<p>So, I think that I tune the numerical solver. This numerical solver must solve DAEs equations since my model contains 4 kinematic closed loops.</p>
<p>If i read correctly the help menu, there are the following methods to solve the DAEs :</p>
<p>- use specific DAE numerical solver (3 differents solvers are used : ck45 method, RKF45 method and Rosenbrock method</p>
<p>- use reformulation equations techniques (Baumgarte, Projection) which can be associated (I believe) with a classic solver like (RK4).</p>
<p>For the moment, I have obtained my results with the rosenbrock solver with error absolute : 1.0*10^(-4) and eror relative :error absolute : 1.0*10^(-4) </p>
<p><strong>Do you have some ideas or advices so as to find a better method to solve my multibody systems with kinematic closed loops ? This method should prevent the creation of numerical instabilities.</strong></p>
<p>Thanks a lot for your help</p>
<p> </p>202276Sat, 30 Aug 2014 09:20:08 ZBendesartsBendesartsApply a torque on a revolute joint
http://www.mapleprimes.com/questions/202274-Apply-A-Torque-On-A-Revolute-Joint?ref=Feed:MaplePrimes:Tagged With MapleSim
<p>Hello,</p>
<p>I would like to apply a torque directly on a revolute joint. I use a torque modulated by a signal source which is modified chirp signal.</p>
<p>I have done like in the figure below :<br><br></p>
<p><img src="/view.aspx?sf=202274_question/torque.png" alt="" width="614" height="491"></p>
<p>After having added this torque, my model no longer runs. The error message is only "simulation interrupted".</p>
<p>Do I correctly plug the torque ? Should I plug the torque element more in the flange a or b of the considered revolute joint ?</p>
<p>Do I tick "use support flange" ? Anyway, with or without, my model crashes.</p>
<p>Thanks a lot for your help.</p>
<p> </p><p>Hello,</p>
<p>I would like to apply a torque directly on a revolute joint. I use a torque modulated by a signal source which is modified chirp signal.</p>
<p>I have done like in the figure below :<br><br></p>
<p><img src="/view.aspx?sf=202274_question/torque.png" alt="" width="614" height="491"></p>
<p>After having added this torque, my model no longer runs. The error message is only "simulation interrupted".</p>
<p>Do I correctly plug the torque ? Should I plug the torque element more in the flange a or b of the considered revolute joint ?</p>
<p>Do I tick "use support flange" ? Anyway, with or without, my model crashes.</p>
<p>Thanks a lot for your help.</p>
<p> </p>202274Fri, 29 Aug 2014 17:05:22 ZBendesartsBendesartsMapleSim Force and Torque sensor
http://www.mapleprimes.com/questions/202268-MapleSim-Force-And-Torque-Sensor?ref=Feed:MaplePrimes:Tagged With MapleSim
<p>Hi,</p>
<p>I trying to simulate a force sensor on robot arm, but every time I try something, I get nothing from my sensor, can you help me?</p>
<p> </p>
<p>Here it's my "design":</p>
<p><img src="/view.aspx?sf=202268_question/1.PNG" alt="" width="579" height="290"></p>
<p> </p>
<p>Also, if I add a rigid body I get this error:</p>
<p><img src="/view.aspx?sf=202268_question/2.PNG" alt=""></p>
<p>Thanks!</p>
<p> </p>
<p> </p><p>Hi,</p>
<p>I trying to simulate a force sensor on robot arm, but every time I try something, I get nothing from my sensor, can you help me?</p>
<p> </p>
<p>Here it's my "design":</p>
<p><img src="/view.aspx?sf=202268_question/1.PNG" alt="" width="579" height="290"></p>
<p> </p>
<p>Also, if I add a rigid body I get this error:</p>
<p><img src="/view.aspx?sf=202268_question/2.PNG" alt=""></p>
<p>Thanks!</p>
<p> </p>
<p> </p>202268Thu, 28 Aug 2014 14:51:40 Znic_rfnic_rfPlotting Real Part of Complex Number
http://www.mapleprimes.com/questions/202267-Plotting-Real-Part-Of-Complex-Number?ref=Feed:MaplePrimes:Tagged With MapleSim
<p>Hi,</p>
<p>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?</p>
<p>Best</p>
<p>Onder</p>
<p> </p>
<p>The code is: (I want to plot the real part of R2)</p>
<p> </p>
<p>model IKTest</p>
<p>parameter Boolean switched = false;<br> parameter Modelica.SIunits.Length L1 = 0.100;<br> parameter Modelica.SIunits.Length L2 = 0.102;<br> parameter Modelica.SIunits.Length L3 = 0.5;<br> //parameter Real c; //Complex number<br> //parameter c;</p>
<p>Modelica.Blocks.Interfaces.RealInput u[3]<br> annotation (Placement(transformation(extent={{-140,-20},{-100,20}},rotation=0)));<br> Modelica.Blocks.Interfaces.RealOutput y[3]<br> annotation (Placement(transformation(extent={{90,-10},{110,10}},rotation=0)));</p>
<p>Real Tx = u[1];<br> Real Ty = u[2];<br> Real Tz = u[3];<br> Real R1 = y[1];<br> Real R2 = y[2];<br> Real R3 = y[3];</p>
<p>equation</p>
<p>R1=atan(Ty/Tz);<br> R2=(acos((L1^2+L2^2-(sqrt(Tx^2+Ty^2+Tz^2))^2)/(2*L1*L2)));<br> <br> //2*Modelica.Math.asin(1.0)<br> //R3=R2.re;</p>
<p>annotation (uses(Modelica(version = "3.1")));<br>end IKTest;</p><p>Hi,</p>
<p>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?</p>
<p>Best</p>
<p>Onder</p>
<p> </p>
<p>The code is: (I want to plot the real part of R2)</p>
<p> </p>
<p>model IKTest</p>
<p>parameter Boolean switched = false;<br /> parameter Modelica.SIunits.Length L1 = 0.100;<br /> parameter Modelica.SIunits.Length L2 = 0.102;<br /> parameter Modelica.SIunits.Length L3 = 0.5;<br /> //parameter Real c; //Complex number<br /> //parameter c;</p>
<p>Modelica.Blocks.Interfaces.RealInput u[3]<br /> annotation (Placement(transformation(extent={{-140,-20},{-100,20}},rotation=0)));<br /> Modelica.Blocks.Interfaces.RealOutput y[3]<br /> annotation (Placement(transformation(extent={{90,-10},{110,10}},rotation=0)));</p>
<p>Real Tx = u[1];<br /> Real Ty = u[2];<br /> Real Tz = u[3];<br /> Real R1 = y[1];<br /> Real R2 = y[2];<br /> Real R3 = y[3];</p>
<p>equation</p>
<p>R1=atan(Ty/Tz);<br /> R2=(acos((L1^2+L2^2-(sqrt(Tx^2+Ty^2+Tz^2))^2)/(2*L1*L2)));<br /> <br /> //2*Modelica.Math.asin(1.0)<br /> //R3=R2.re;</p>
<p>annotation (uses(Modelica(version = "3.1")));<br />end IKTest;</p>202267Thu, 28 Aug 2014 14:14:30 ZonderonderDisplay the kinematic joints
http://www.mapleprimes.com/questions/202261-Display-The-Kinematic-Joints?ref=Feed:MaplePrimes:Tagged With MapleSim
<p>Hello,</p>
<p>I have a little question about the display of the kinematic joints which are usually in red.</p>
<p>I didn't know why the kinematic joints have disappeared and I don't know how to display them again.</p>
<p>Do you have an idea about the button I have to use so as to display the kinematic joints.</p>
<p>Thanks for your help.</p><p>Hello,</p>
<p>I have a little question about the display of the kinematic joints which are usually in red.</p>
<p>I didn't know why the kinematic joints have disappeared and I don't know how to display them again.</p>
<p>Do you have an idea about the button I have to use so as to display the kinematic joints.</p>
<p>Thanks for your help.</p>202261Wed, 27 Aug 2014 14:20:15 ZBendesartsBendesartsUsing MapleSim to determine the initial position in absolute coordinates
http://www.mapleprimes.com/questions/202249-Using-MapleSim-To-Determine-The-Initial?ref=Feed:MaplePrimes:Tagged With MapleSim
<p>Hello,</p>
<p>I have a question concerning the initial conditions.</p>
<p>One interest of MapleSim is to enable to model a multibody systems with different kinds of coordinates : namely relative and absolute coordinates.</p>
<p>For a complex system, it seems to me that the determination of the initial position is not an easy task.</p>
<p>Consequently, I wonder if it is possible to determine the initial positions for the system in absolute coordinates thanks to the knowledge of the initials positions in relative coordinates.</p>
<p>In other words, I have already determined the initial positions of my system in relative coordinates but as I would like to simulate my system with absolute coordinates. I wonder if I can have a process to deduct the initial positions for the absolute coordinates for the initial positions in relative coordinates.</p>
<p>Thanks a lot for your ideas and help.</p><p>Hello,</p>
<p>I have a question concerning the initial conditions.</p>
<p>One interest of MapleSim is to enable to model a multibody systems with different kinds of coordinates : namely relative and absolute coordinates.</p>
<p>For a complex system, it seems to me that the determination of the initial position is not an easy task.</p>
<p>Consequently, I wonder if it is possible to determine the initial positions for the system in absolute coordinates thanks to the knowledge of the initials positions in relative coordinates.</p>
<p>In other words, I have already determined the initial positions of my system in relative coordinates but as I would like to simulate my system with absolute coordinates. I wonder if I can have a process to deduct the initial positions for the absolute coordinates for the initial positions in relative coordinates.</p>
<p>Thanks a lot for your ideas and help.</p>202249Sun, 24 Aug 2014 07:39:55 ZBendesartsBendesartsParameters not evaluated and 3D visualization
http://www.mapleprimes.com/questions/202210-Parameters-Not-Evaluated-And-3D-Visualization?ref=Feed:MaplePrimes:Tagged With MapleSim
<p>Hello,</p>
<p>In my model, it seems that I have parameters which are not evaluated.</p>
<p>Indeed, I'm not sure that the parameters defined with relations as you can see in the printscreen are evaluated.</p>
<p><img src="/view.aspx?sf=202210_question/parameter_not_evaluated.png" alt="" width="738" height="417"></p>
<p> </p>
<p>One point which helps me to debug my model is to follow the evaluation of the construction of my model with the 3D visualization.</p>
<p>Questions :<br>1) How can I do to be sure that my parameters are evaluated ?</p>
<p>2) Is it possible to launch the update of the 3D visualization even if I still have some bugs in my model ?</p>
<p>Thank you for help.</p><p>Hello,</p>
<p>In my model, it seems that I have parameters which are not evaluated.</p>
<p>Indeed, I'm not sure that the parameters defined with relations as you can see in the printscreen are evaluated.</p>
<p><img src="/view.aspx?sf=202210_question/parameter_not_evaluated.png" alt="" width="738" height="417"></p>
<p> </p>
<p>One point which helps me to debug my model is to follow the evaluation of the construction of my model with the 3D visualization.</p>
<p>Questions :<br>1) How can I do to be sure that my parameters are evaluated ?</p>
<p>2) Is it possible to launch the update of the 3D visualization even if I still have some bugs in my model ?</p>
<p>Thank you for help.</p>202210Tue, 19 Aug 2014 20:55:37 ZBendesartsBendesartsDifficulty to understant a bug during the simulation
http://www.mapleprimes.com/questions/202208-Difficulty-To-Understant-A-Bug-During?ref=Feed:MaplePrimes:Tagged With MapleSim
<p>Hello, </p>
<p>During the simulation of my model, I received this bug:</p>
<p>"cannot resolve function `Main.'Typesetting:-mambiguous'`; there is no function `'Typesetting:-mambiguous'` visible in model `Main`"</p>
<p>Have you a idea of the problem ?</p>
<p>How can I localize my issue ? Is there some options to localize the issue with a debug mode ?</p>
<p>Thanks a lot for your help</p>
<p> </p><p>Hello, </p>
<p>During the simulation of my model, I received this bug:</p>
<p>"cannot resolve function `Main.'Typesetting:-mambiguous'`; there is no function `'Typesetting:-mambiguous'` visible in model `Main`"</p>
<p>Have you a idea of the problem ?</p>
<p>How can I localize my issue ? Is there some options to localize the issue with a debug mode ?</p>
<p>Thanks a lot for your help</p>
<p> </p>202208Tue, 19 Aug 2014 20:36:36 ZBendesartsBendesartsVisualization update of parameters
http://www.mapleprimes.com/questions/202200-Visualization-Update-Of-Parameters?ref=Feed:MaplePrimes:Tagged With MapleSim
<p>Hello,</p>
<p>In a subsystem, i defined parameters like this in the "parameters" area :</p>
<p><img src="/view.aspx?sf=202200_question/parameters1.png" alt="" width="862" height="244"></p>
<p> </p>
<p>In the "diagram" area, the parameters are not updated because i see this panel :</p>
<p><img src="/view.aspx?sf=202200_question/parameters2.png" alt="" width="1007" height="287"></p>
<p> </p>
<p>Do you know why the parameters are not updated (possibly only on visualization) ? And if yes, how i can do to visualize in this last panel the value of the parameters updated ?</p>
<p>Thanks a lot for your help</p><p>Hello,</p>
<p>In a subsystem, i defined parameters like this in the "parameters" area :</p>
<p><img src="/view.aspx?sf=202200_question/parameters1.png" alt="" width="862" height="244"></p>
<p> </p>
<p>In the "diagram" area, the parameters are not updated because i see this panel :</p>
<p><img src="/view.aspx?sf=202200_question/parameters2.png" alt="" width="1007" height="287"></p>
<p> </p>
<p>Do you know why the parameters are not updated (possibly only on visualization) ? And if yes, how i can do to visualize in this last panel the value of the parameters updated ?</p>
<p>Thanks a lot for your help</p>202200Tue, 19 Aug 2014 14:54:24 ZBendesartsBendesartsCustom Components : Parameters to variables
http://www.mapleprimes.com/questions/202199-Custom-Components--Parameters-To-Variables?ref=Feed:MaplePrimes:Tagged With MapleSim
<p>Hi,</p>
<p> </p>
<p>I want to calculate a new position (X,Y,Z) for a cartesian model with 3 points (dX,dY,dZ) but I got a problem, my point is a parameters, so I can't change it in the simulation in real time with a Input signal on the components. Does It exist a solution for convert a parameters to a variable to get a Input signal?</p>
<p>Exemple of my calcul:</p>
<p>eq:= [x(t)= dx+sin(dy/dz), y(t)=dy+20,z(t)=dz]</p>
<p> </p>
<p>Thanks!</p><p>Hi,</p>
<p> </p>
<p>I want to calculate a new position (X,Y,Z) for a cartesian model with 3 points (dX,dY,dZ) but I got a problem, my point is a parameters, so I can't change it in the simulation in real time with a Input signal on the components. Does It exist a solution for convert a parameters to a variable to get a Input signal?</p>
<p>Exemple of my calcul:</p>
<p>eq:= [x(t)= dx+sin(dy/dz), y(t)=dy+20,z(t)=dz]</p>
<p> </p>
<p>Thanks!</p>202199Tue, 19 Aug 2014 12:27:05 Znic_rfnic_rfPossibility of making calculations with the parameters in MapleSim
http://www.mapleprimes.com/questions/202195-Possibility-Of-Making-Calculations-With?ref=Feed:MaplePrimes:Tagged With MapleSim
<p>Hello,</p>
<p>In my model, in order to better follow a analytical study, i would like to make some calculations with my paramters.</p>
<p>For example, I have defined :</p>
<p>xa=1</p>
<p>ya=2</p>
<p>R=sqrt(xa²+ya²)</p>
<p>I would define R in the parameters area so as to use it for some definitions in the definition of body (i use especially maplesim for multibody systems.)</p>
<p>How is it possible to define parameters thanks to relations ?</p><p>Hello,</p>
<p>In my model, in order to better follow a analytical study, i would like to make some calculations with my paramters.</p>
<p>For example, I have defined :</p>
<p>xa=1</p>
<p>ya=2</p>
<p>R=sqrt(xa²+ya²)</p>
<p>I would define R in the parameters area so as to use it for some definitions in the definition of body (i use especially maplesim for multibody systems.)</p>
<p>How is it possible to define parameters thanks to relations ?</p>202195Mon, 18 Aug 2014 20:38:51 ZBendesartsBendesartsMultibody analysis
http://www.mapleprimes.com/questions/202159-Multibody-Analysis?ref=Feed:MaplePrimes:Tagged With MapleSim
<p>Hello all,</p>
<p>When I try to do this example, in the multibody analysis, <a href="http://www.maplesoft.com/products/maplesim/ModelGallery/detail.aspx?id=137">http://www.maplesoft.com/products/maplesim/ModelGallery/detail.aspx?id=137</a></p>
<p>Thats already written :</p>
<p> </p>
<p>but when I enter theses formulas(mModel & MB), that write instead of the example:</p>
<p>"Analyzing system..."<br> "Performing constraint analysis..."<br><span style="text-decoration: underline;"><strong>"The system has 2 degree(s) of freedom. It is modeled using 2</strong></span></p>
<p><span style="text-decoration: underline;"><strong>generalized coordinate(s) coupled by 0 algebraic constraint(s\</strong></span></p>
<p>And I have no result if i do vPosCons := MB:-GetPosCons(); . What am I doing wrong?</p>
<p>Thank you</p><p>Hello all,</p>
<p>When I try to do this example, in the multibody analysis, <a title="Simple Inverse Kinematic Problem" href="http://www.maplesoft.com/products/maplesim/ModelGallery/detail.aspx?id=137">http://www.maplesoft.com/products/maplesim/ModelGallery/detail.aspx?id=137</a></p>
<p>Thats already written :</p>
<p> </p>
<h2><img src="http://www.maplesoft.com/content/modelgallery/Asset/675/analysis.jpg" alt="" width="500" height="250"></h2>
<p>but when I enter theses formulas(mModel & MB), that write instead of the example:</p>
<p>"Analyzing system..."<br> "Performing constraint analysis..."<br><span style="text-decoration: underline;"><strong>"The system has 2 degree(s) of freedom. It is modeled using 2</strong></span></p>
<p><span style="text-decoration: underline;"><strong>generalized coordinate(s) coupled by 0 algebraic constraint(s\</strong></span></p>
<p>And I have no result if i do vPosCons := MB:-GetPosCons(); . What am I doing wrong?</p>
<p>Thank you</p>202159Thu, 14 Aug 2014 03:29:47 ZraphrfraphrfOpening and using a modelica model on MapleSim
http://www.mapleprimes.com/questions/202069-Opening-And-Using-A-Modelica-Model-On-MapleSim?ref=Feed:MaplePrimes:Tagged With MapleSim
<p>Hello,</p>
<p>I would like to open a modelica model with MapleSIM. When I do "import modelica", I received the error message : "import failed : no library found".</p>
<p>I believed the modelica library was already installed on maplesim but may be not. Do I need to install modelica library ? and if yes, how ?</p>
<p>More generally speaking, how can I do to open a modelica model on maplesim?</p>
<p>Thank you for your help.</p><p>Hello,</p>
<p>I would like to open a modelica model with MapleSIM. When I do "import modelica", I received the error message : "import failed : no library found".</p>
<p>I believed the modelica library was already installed on maplesim but may be not. Do I need to install modelica library ? and if yes, how ?</p>
<p>More generally speaking, how can I do to open a modelica model on maplesim?</p>
<p>Thank you for your help.</p>202069Tue, 29 Jul 2014 14:55:14 ZBendesartsBendesartsPiecewise Constant Interpolation Table
http://www.mapleprimes.com/questions/201855-Piecewise-Constant-Interpolation-Table?ref=Feed:MaplePrimes:Tagged With MapleSim
<p>I have some data for a model in MapleSim that I would like to use a time look up table with. I've found that the two options for interpolation are linear and 1st derivative, but the data was intended to be interpretted as piecewise constant. Is there any way to acheive this option in MapleSim?</p><p>I have some data for a model in MapleSim that I would like to use a time look up table with. I've found that the two options for interpolation are linear and 1st derivative, but the data was intended to be interpretted as piecewise constant. Is there any way to acheive this option in MapleSim?</p>201855Wed, 25 Jun 2014 23:43:07 ZGaelofUnknownsGaelofUnknowns