Bendesarts

345 Reputation

10 Badges

10 years, 157 days

MaplePrimes Activity


These are replies submitted by Bendesarts

@Joe Riel 

OK I understand you remarks even if this model is dedicated for me to do some tests.

In particulary, I wanted to test how I can mesure the angles of a body when some absolute coordinates are chosen.

So i would like to determine the angles of the bodies as regard to the fix frame.

Have you others ideas to mesure the angles directly from the body ? The idea is to follow the same way as it is done when systems are modeled with absolute coordinates.

Thanks a lot for your help.

 

With the picture

@Carl Love 

Thank you for your help.

I manage to install the package and do your method.

However, how I can list all the procedures contained in a package ?

Normally, with the function "with followed with ";"" I should have all the list of the procedure, shouldn't I?

It seems that I have only one procedure called show but normally I should have more. Do you know why I can see the others procedures ?

Package


image package

Thank you for your help

 

@Carl Love 

Thanks a lot for your help. I will try your method. But, as it is an open source package given by the author, there is may be a easier solution in order the see all the content of the package. If yes, can someone give me the function so as to open a open source package with a .mla extension ?

Thank you for your help.

Thanks a lot for you help,

Concerning acer's remarks :

What version of Windows?

--> Windows 8.1

Is your target a 32 or 64bit application?

--> 32 bits application

Which version(s) of Maple do you have ?

--> 18

and for which did its Compiler command function properly?

--> I'm sorry but I believe that I don't well understand this question. The aim is to create a share object based on my maple program for determine initials positions of my mechanism in another application.

Do you have any other 3rd party C compiler installed?

--> I don't think so but I'm not sure. I have Visual Studio installed and it enables me to open the C code detailled below.

Concerning Axel Vogt's remarks :

a) and b) Here more informations about the function I want to create

Synoptic of the function :

inputs : alpha(t), beta(t), z(t) (angles and lengths so they are reals or floats)
output : gamma[1](t) (angle)
parameters (geometric lenghts)

Maple code :

restart:
with(LinearAlgebra):
with(Student[MultivariateCalculus]):
with(plots):
with(MathML):
constants:= ({constants} minus {gamma})[]:
`evalf/gamma`:= proc() end proc:
`evalf/constant/gamma`:= proc() end proc:
unprotect(gamma);
gamma[1](t):=arctan(2*cos(alpha(t))*sin(beta(t))*sin(aBTP[1])*e[1]*rBTP[1]-2*sin(alpha(t))*cos(aBTP[1])*e[1]*rBTP[1]+2*cos(alpha(t))*cos(beta(t))*h0*e[1]+2*z(t)*e[1]-2*e[1]*h[1], -2*sin(alpha(t))*sin(beta(t))*sin(aBTP[1])*cos(aF[1])*e[1]*rBTP[1]-2*sin(alpha(t))*cos(beta(t))*cos(aF[1])*h0*e[1]-2*cos(aBTP[1])*cos(alpha(t))*cos(aF[1])*e[1]*rBTP[1]-2*sin(aBTP[1])*cos(beta(t))*sin(aF[1])*e[1]*rBTP[1]+2*sin(beta(t))*sin(aF[1])*h0*e[1]+2*e[1]*rF[1])-Pi+arccos((2*sin(alpha(t))*sin(beta(t))*sin(aBTP[1])*cos(aF[1])*rBTP[1]*rF[1]-2*z(t)*cos(alpha(t))*sin(beta(t))*sin(aBTP[1])*rBTP[1]+2*sin(alpha(t))*cos(beta(t))*cos(aF[1])*h0*rF[1]+2*cos(aBTP[1])*cos(alpha(t))*cos(aF[1])*rBTP[1]*rF[1]+2*cos(alpha(t))*sin(beta(t))*sin(aBTP[1])*h[1]*rBTP[1]+2*sin(aBTP[1])*cos(beta(t))*sin(aF[1])*rBTP[1]*rF[1]+2*z(t)*sin(alpha(t))*cos(aBTP[1])*rBTP[1]-2*z(t)*cos(alpha(t))*cos(beta(t))*h0-2*sin(alpha(t))*cos(aBTP[1])*h[1]*rBTP[1]+2*cos(alpha(t))*cos(beta(t))*h0*h[1]-2*sin(beta(t))*sin(aF[1])*h0*rF[1]-z(t)^2+2*z(t)*h[1]-h0^2-e[1]^2-h[1]^2+l[1]^2-rBTP[1]^2-rF[1]^2)/sqrt((-2*sin(alpha(t))*sin(beta(t))*sin(aBTP[1])*cos(aF[1])*e[1]*rBTP[1]-2*sin(alpha(t))*cos(beta(t))*cos(aF[1])*h0*e[1]-2*cos(aBTP[1])*cos(alpha(t))*cos(aF[1])*e[1]*rBTP[1]-2*sin(aBTP[1])*cos(beta(t))*sin(aF[1])*e[1]*rBTP[1]+2*sin(beta(t))*sin(aF[1])*h0*e[1]+2*e[1]*rF[1])^2+(2*cos(alpha(t))*sin(beta(t))*sin(aBTP[1])*e[1]*rBTP[1]-2*sin(alpha(t))*cos(aBTP[1])*e[1]*rBTP[1]+2*cos(alpha(t))*cos(beta(t))*h0*e[1]+2*z(t)*e[1]-2*e[1]*h[1])^2))

c) I would like to use the dll function in a 20-sim model. I send you attach a example of 20-sim model with a dll function and the C code which enables to build this dll.

Example_of_20-sim_program_using_dll_function.pdf

 

I think that in this program the calling convention is mentioned.

I hope these informations will enable you to make me progress in the building of my code.

Thanks a lot for your help.

Thank you for your help.

So let's start with an expression that I have in my maple sheet. It is just a big trigonomotric expression which enables me to calculate the dependent parameters in function to the independent parameters. I would like to create a dll in order to use it in other software which accepts dll.

"gamma[1](t):=arctan(2 cos(alpha(t)) sin(beta(t)) sin(aBTP[1]) e[1] rBTP[1]-2 sin(alpha(t)) cos(aBTP[1]) e[1] rBTP[1]+2 cos(alpha(t)) cos(beta(t)) h0 e[1]+2 z(t) e[1]-2 e[1] h[1],-2 sin(alpha(t)) sin(beta(t)) sin(aBTP[1]) cos(aF[1]) e[1] rBTP[1]-2 sin(alpha(t)) cos(beta(t)) cos(aF[1]) h0 e[1]-2 cos(aBTP[1]) cos(alpha(t)) cos(aF[1]) e[1] rBTP[1]-2 sin(aBTP[1]) cos(beta(t)) sin(aF[1]) e[1] rBTP[1]+2 sin(beta(t)) sin(aF[1]) h0 e[1]+2 e[1] rF[1])-Pi+arccos((2 sin(alpha(t)) sin(beta(t)) sin(aBTP[1]) cos(aF[1]) rBTP[1] rF[1]-2 z(t) cos(alpha(t)) sin(beta(t)) sin(aBTP[1]) rBTP[1]+2 sin(alpha(t)) cos(beta(t)) cos(aF[1]) h0 rF[1]+2 cos(aBTP[1]) cos(alpha(t)) cos(aF[1]) rBTP[1] rF[1]+2 cos(alpha(t)) sin(beta(t)) sin(aBTP[1]) h[1] rBTP[1]+2 sin(aBTP[1]) cos(beta(t)) sin(aF[1]) rBTP[1] rF[1]+2 z(t) sin(alpha(t)) cos(aBTP[1]) rBTP[1]-2 z(t) cos(alpha(t)) cos(beta(t)) h0-2 sin(alpha(t)) cos(aBTP[1]) h[1] rBTP[1]+2 cos(alpha(t)) cos(beta(t)) h0 h[1]-2 sin(beta(t)) sin(aF[1]) h0 rF[1]-(z(t))^2+2 z(t) h[1]-h0^2-e[1]^2-h[1]^2+l[1]^2-rBTP[1]^2-rF[1]^2)/(sqrt((-2 sin(alpha(t)) sin(beta(t)) sin(aBTP[1]) cos(aF[1]) e[1] rBTP[1]-2 sin(alpha(t)) cos(beta(t)) cos(aF[1]) h0 e[1]-2 cos(aBTP[1]) cos(alpha(t)) cos(aF[1]) e[1] rBTP[1]-2 sin(aBTP[1]) cos(beta(t)) sin(aF[1]) e[1] rBTP[1]+2 sin(beta(t)) sin(aF[1]) h0 e[1]+2 e[1] rF[1])^2+(2 cos(alpha(t)) sin(beta(t)) sin(aBTP[1]) e[1] rBTP[1]-2 sin(alpha(t)) cos(aBTP[1]) e[1] rBTP[1]+2 cos(alpha(t)) cos(beta(t)) h0 e[1]+2 z(t) e[1]-2 e[1] h[1])^2)))"

1) How can i do to create to transform it to dll function ?

2) To create a dll, do I need a specific software to compile C code ? If yes, may you advice me one ?

Thanks a lot for your help.

 

 

Hello,

I don't understand very well your question. For me the "homokinetic" feature of a joint is not dependent from the softwate Maplesim. It is linked to the mechanical properties of your kinematic joints.

There are many ways to make a homokinetic joint : for example, universal joints, Hooke's joint ...

And for me, there is no problem to model it with MapleSim.

Otherwise, Thank you for your help.

The program runs perfectly !!!

I have try this code :

remove(has,remove(has, [sol], I),rF[R]<0 or rF[V]<0 or aF[R]<0 or aF[V]<0);

But it seems that it doesn't work because I have still some set of solutions containing some of theses variables which are negative.

May you help me so as to remove all the set of solutions which contains the variables mentionned negative.

Thanks a lot for your help.

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.

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