Search found 812 matches

by Michael Sherman
Thu Dec 19, 2024 6:28 pm
Forum: Simbody: SimTK multibody dynamics API
Topic: Understanding Linear Velocities in a Rotational System Simulation Using Simbody
Replies: 8
Views: 1255

Re: Understanding Linear Velocities in a Rotational System Simulation Using Simbody

Hi, Amit. Yes, applying a mobility forces is what I meant by "internal". It models a motor on the wheel axle. It was the earlier body force that was external (the rocket-powered pinwheel).

Regards,
Sherm
by Michael Sherman
Tue Dec 17, 2024 4:24 pm
Forum: Simbody: SimTK multibody dynamics API
Topic: Understanding Linear Velocities in a Rotational System Simulation Using Simbody
Replies: 8
Views: 1255

Re: Understanding Linear Velocities in a Rotational System Simulation Using Simbody

Hi, Amit. If a reaction wheel is activated by a motor, you should switch back to using a mobility force on a Pin joint to model that, so that you correctly get torques on both bodies. As I mentioned, the current implementation is similar to a fireworks pinwheel where you have a pair of rockets attac...
by Michael Sherman
Mon Dec 16, 2024 12:07 pm
Forum: Simbody: SimTK multibody dynamics API
Topic: Understanding Linear Velocities in a Rotational System Simulation Using Simbody
Replies: 8
Views: 1255

Re: Understanding Linear Velocities in a Rotational System Simulation Using Simbody

Hi, Amit. I'm not sure I understand what you're trying to do, physically. The mobility force you had before very accurately models a motor at the joint -- motors apply equal and opposite torques to the armature and case. The current set up with a body force is a kind of external "hand of god" where ...
by Michael Sherman
Fri Dec 13, 2024 6:25 pm
Forum: Simbody: SimTK multibody dynamics API
Topic: MobilizedBody::Custom to off-the-shelf solution?
Replies: 2
Views: 476

Re: MobilizedBody::Custom to off-the-shelf solution?

Hi, Simone. Congratulations on getting a custom mobilizer to work -- very nice! I think you are correct that that's the only way to implement the singularity-free behavior you want. The fact that MobilizedBody::FunctionBased assumes 3 angles for rotation dooms it. (BTW that is itself a custom mobili...
by Michael Sherman
Sun Dec 08, 2024 2:57 pm
Forum: Simbody: SimTK multibody dynamics API
Topic: Understanding Linear Velocities in a Rotational System Simulation Using Simbody
Replies: 8
Views: 1255

Re: Understanding Linear Velocities in a Rotational System Simulation Using Simbody

Sorry for the delay in responding to this. I ran your program to see what's happening. My guess is you didn't realize that when you apply a mobility force it is applied equal and opposite to the two connected bodies. So a torque is being applied both to the actuated wheel and the free-floating chass...
by Michael Sherman
Wed Sep 04, 2024 11:40 am
Forum: Simbody: SimTK multibody dynamics API
Topic: Integrate over short transients
Replies: 4
Views: 6800

Re: Integrate over short transients

Hi, Simone. Simbody's integrators interpolate when a reporting time doesn't coincide with a step completion.

That's on by default but can be controlled by Integrator methods like setAllowInterpolation().

Regards,
Sherm
by Michael Sherman
Wed Aug 07, 2024 2:20 pm
Forum: Simbody: SimTK multibody dynamics API
Topic: Integrate over short transients
Replies: 4
Views: 6800

Re: Integrate over short transients

Hi Simone. If you use one of SImbody's variable step integrators, it should be able to figure out to take small steps over the rapid transition automatically.

Regards,
Sherm
by Michael Sherman
Tue Jul 23, 2024 9:15 am
Forum: Simbody: SimTK multibody dynamics API
Topic: Leaf spring substitute system
Replies: 5
Views: 7281

Re: Leaf spring substitute system

Awesome! Thanks, Walter.
by Michael Sherman
Wed Jul 17, 2024 1:44 pm
Forum: Simbody: SimTK multibody dynamics API
Topic: SimTK Initial Velocity Analysis:
Replies: 2
Views: 3006

Re: SimTK Initial Velocity Analysis:

Sadly, no. There is a nice Assembly analysis in Simbody but no InitialVelocity analysis (there should be!) You can work around that by adding a velocity constraint (or Motion object) to one of the dofs (assuming a net-1-dof system). Then constraint projection will figure out all the other velocities...
by Michael Sherman
Wed Jul 17, 2024 7:40 am
Forum: Simbody: SimTK multibody dynamics API
Topic: Leaf spring substitute system
Replies: 5
Views: 7281

Re: Leaf spring substitute system

You could try:
- CPodes limited to Order 1 (that makes it implicit Euler)
- SemiExplicitEulerIntegrator
- Use fixed step or very loose accuracy requirement, like 10%
- Use less damping or large masses to avoid extreme stiffness

Optimization is still probably the most direct approach.