Body CS in SimMechanics

조회 수: 2 (최근 30일)
Marco De Simone
Marco De Simone 2013년 6월 10일
Is it possible to have CS coordinates in a Body block of SimMechanics 1st generation, that depends from a parameter?
For example
CS1 = [L*sin(teta) L*cos(teta) 0]
Thanks for your time and help.
  댓글 수: 2
Ryan G
Ryan G 2013년 6월 10일
Would you want that to be an input parameter or would it be fixed from the start of simulation?
Marco De Simone
Marco De Simone 2013년 6월 10일
Hi Ryan, thanks for your help. I need to be able to change the cs of a body as the simulation starts. In other words my x and y must must not be costants but variables x= x(input parameter) and y= y(input parameter). Hope you can help me.

댓글을 달려면 로그인하십시오.

답변 (2개)

Ryan G
Ryan G 2013년 6월 11일
Well if you change at the very start of simulation a parameter should work, where you define it in your workspace. So CS1 would be a variable, x, and CS2 would be a variable y. Where x and y are defined in your workspace.
If that doesn't work, what is the error you're seeing?
  댓글 수: 2
Marco De Simone
Marco De Simone 2013년 6월 11일
Hi Ryan G. I need during my simulation to be able to change a particular body CS time by time. I want to define one Body CS for every dt of my simulation. For what I need CS must be of this form CS = [x y z] = [x(t,teta) y(t,teta) 0]. Thanks for your patience
Ryan G
Ryan G 2013년 6월 12일
You could try using a point curve constraint. This would allow you to define a trajectory that the other connected body is allowed to follow. There are similar blocks that may be more applicable in the constraints and drivers sublibrary.
Can you elaborate on what your design challenge is here? The current way you are trying to do this is not possible (changing CS points while simulating) but that doesn't mean there isn't a way to do it.

댓글을 달려면 로그인하십시오.


Marco De Simone
Marco De Simone 2013년 6월 12일
Hi Ryan G. I'm trying to replicate, through the application of a force field on a wheel, pure rolling. Instead of using the already known blocks from the Contraints & Drivers sublibrary or using appropriate combination of forces and torques to replicate the condition of pure rollingwanted to use the fields of forces in the point of contact. So my goal is to apply a force field at the contact point between wheel and plane. To do this I needed to be able to vary the coordinates of the point as a function of time and angular velocity. Thanks a lot
  댓글 수: 1
Ryan G
Ryan G 2013년 6월 12일
Have you considered the gear constraint where the radius of the base would be the radius of the earth? You can also model a rolling wheel with simulink and connect the forces from rolling to the simmechanics model. If you wanted to model the actual forces of the wheel (braking/accelerating like in a car) then you would would need to model the contact friction curve as well.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Brakes and Detents에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by