Bendesarts

445 Reputation

10 Badges

14 years, 10 days

MaplePrimes Activity


These are replies submitted by Bendesarts

May be in my case it is slightly different than from your example.

I detail my solutions. I have solutions like that :

{a=1,b=-1,c=1+I},{a=1,b=-1,c=1},{a=1,b=-1,c=I}

I would like to remove all the set of solutions with have a complex components.

Consequently, on my exemple, I would like to obtain only:

{a=1,b=-1,c=1} where a,b,c are real

Thanks a lot for your help

Thanks a lot for your help.

Thanks to your help, I try this

remove(has, sol, I);

But I receive this error message :

Error, incorrect number of extra arguments in remove

Do you have some ideas about this error ?

Thank you for your help

@Thomas Richard 

Thank you.

Perfect. It works better now...

Thank you for your help.

However, It will be great to have more experiences about this process.

 

OK. Interesting. And is it possible to see the information about the nature of the port like "causal outputs" ? 
Thank you for your answer.

Hello,

In fact, I believe that I have found.

Indeed, the trouble was not linked to the torque but the fact that I had a port free on a body. In fact, as I change an excitation force, I let a free port on a body. It seems that if I have a port free on a body (F5 for me in the picture) the simulation doesn't run.

 

May you confirm that a simulation is not possible when a port is free on a body ? 

Thanks a lot for your help.

Thank you for your help.

Here the text file of the function of modulation

variables

  real hidden rise_time;
equations
               rise_time = (stop_time - start_time);
               if time < start_time then
                              x = 0;
               else
                              if time < stop_time then
                                              if time < rise_time/2 then
                                              x = 4*(1/rise_time^2)*(time^2)/2;  

                                               else
                                              x = -2*(1/rise_time^2)*(time-rise_time/2)^2+(2/rise_time)*(time-rise_time/2)+1/2;          

                                               end;

                               else
                              x = 1;
                              end;
               end; 

with
start_time=0s
stop_time=3s

 

Here the text file of the modified chirp signal defined with 3 parts : a progressive step from 0 to 3 s (it is this function which is modulated by the m signal programmed with the code above), a periodic signal from 3s to 5s and the chirp signal from 5s.

 

parameters

                real F=5000;
               real t0 = 3.0 {s};
               real start_time = 5.0 {s};
               real stop_time = 25.0 {s};
               real f_start = 5.0 {frequency, Hz};
               real f_stop = 25.0 {frequency, Hz};
               real omega_start;
               real omega_stop;

variables

                real omega {frequency, rad/s};     // current frequency {rad/s}
               real freq {frequency, Hz};                    

                real hidden t;
               real hidden dw;
               real hidden dt;
               real hidden dwdt;
               real hidden dwdt2;
               boolean hidden change;

initialequations

                omega_start = (2*pi)*f_start;

                omega_stop = (2*pi)*f_stop;

                dw = omega_stop - omega_start;

                dt = stop_time - start_time;

                dwdt = dw/dt;

                dwdt2 = dwdt/2;

equations

                "calculate at least at the start and stop time"

                "change = timeevent (start_time) or timeevent (stop_time);"

                              

                FF = if time < t0 then

                               F*m*sin( time * omega_start ) 

                else

                               if time > stop_time then

                                               F*sin( time * omega_stop )

                               else

                                               if time > start_time then

                                                               F*sin( (time - start_time)*( omega_start + (time - start_time) * dwdt2  )  )

                                  else

                                     F*sin( time * omega_start )

                                  end

                               end       

                end;

 

I hope it is enough clear and don’t hesitate if you need more.

Thanks a lot for your help.

Perfect. Thank you

Hello,

You help me a lot.

In fact, I add with this picture more precision about my code.

 

One of the function in my chirp signal is modulated by a function which is a motion profile called m.

I hope that with this precision it is clearer.

If you don't mind, it would be create if you can precise me how I can modify the modelica code inside the chirp signal block. 

Thanks a lot for your help

 

I precise my question.

I know the function that I need to implement to obtain this kind of excitation since I have already program it in a another software (20-sim). My question is more how can I implement a function like that to modify the amplitude of the chirp signal block in MapleSim.

Here the picture of the program :

 

Thanks a lot for your help.

@bjdehart 

Very clear.

Thanks a lot for your help.

@bjdehart 

OK Thank you.

Indeed, when i delete the '1' values shown in the Inspector, then the default values will appear.

However, if i don't do this process, is the default value is used or not ?

In other word, must I do this process for all my parameters if i want to use the default values i have set ?

Thanks a lot for your help

 

 

with the bad values of the parameters in diagram area

 

@bjdehart 

Sorry you are right. I made a mistake. MapleSim made the calculations of all these relations before starting the simulation.

 

 

 

 

I wiould like to define relations here to define some parameters.

Thank you for your ideas ?

First 10 11 12 13 14 15 16 Page 12 of 17