Search found 814 matches

by Michael Sherman
Mon Nov 20, 2023 6:13 pm
Forum: Simbody: SimTK multibody dynamics API
Topic: Get internal forces for a MobilizedBody
Replies: 14
Views: 21985

Re: Get internal forces for a MobilizedBody

You can read about auto update state variables in the doxygen for State::allocateAutoUpdateStateVariable() . Basically you get a state variable and a matching cache entry. You write to the cache entry and then that gets used to update the state variable at the end of every step. There are several ex...
by Michael Sherman
Mon Nov 20, 2023 11:54 am
Forum: Simbody: SimTK multibody dynamics API
Topic: Get internal forces for a MobilizedBody
Replies: 14
Views: 21985

Re: Get internal forces for a MobilizedBody

Hi, Simone. A few thoughts: - To get reaction force dependent friction, it makes sense to use the previous-step reactions to avoid an intractable mutual dependence among forces & accelerations. That means you need to remember the previous-step reaction forces, and memory == state! The best way to do...
by Michael Sherman
Thu Nov 16, 2023 2:31 pm
Forum: Simbody: SimTK multibody dynamics API
Topic: Get internal forces for a MobilizedBody
Replies: 14
Views: 21985

Re: Get internal forces for a MobilizedBody

Yes, the coordinate coupler will only produce mobility forces. Those forces will already be included in the mobilizer reaction forces (converted to spatial forces) so you might not need to get them explicitly. (Mobility forces from any source are always included in reaction forces.) If you want to s...
by Michael Sherman
Thu Nov 16, 2023 9:53 am
Forum: Simbody: SimTK multibody dynamics API
Topic: Get internal forces for a MobilizedBody
Replies: 14
Views: 21985

Re: Get internal forces for a MobilizedBody

Hi, Simone. I don't think there is a pre-existing function that would provide exactly the quantity you want. That might be a nice addition! However I can think of a few ways to get it: - thinking of a free-body diagram, use F=MA to obtain the net spatial force F from the body's spatial inertia M and...
by Michael Sherman
Tue Oct 31, 2023 7:40 am
Forum: Simbody: SimTK multibody dynamics API
Topic: Modal Analysis
Replies: 3
Views: 2065

Re: Modal Analysis

:facepalm: yes of course you're right. You want partial(acceleration)/partial(state). Simbody can provide acceleration(state) (fast) but you would have to differentiate that numerically to get the matrix. That's easy to do by hand or using Simbody's Differentiator class.

Sherm
by Michael Sherman
Mon Oct 30, 2023 7:48 am
Forum: Simbody: SimTK multibody dynamics API
Topic: Modal Analysis
Replies: 3
Views: 2065

Re: Modal Analysis

You can obtain the system Jacobian using

SimbodyMatterSubsystem::calcSystemJacobian(). I believe the manual is referring to the eigenvalues of this matrix as the system modes.

Sherm
by Michael Sherman
Sat Oct 14, 2023 4:11 pm
Forum: Simbody: SimTK multibody dynamics API
Topic: Rotation Matrix notaion
Replies: 2
Views: 1626

Re: Rotation Matrix notaion

Hi, Amit. Good question! Terminology for transforms and rotation matrices is tricky, because they serve as both "verb" and "noun" depending on your point of view. As a verb, we have v_B=R_BG * v_G, mapping G to B (as long as you multiply from the left!). The notation ensures you get that correct bec...
by Michael Sherman
Tue Sep 05, 2023 8:07 am
Forum: OpenSim
Topic: Rolling on Surface Constraint Usage
Replies: 3
Views: 1768

Re: Rolling on Surface Constraint Usage

According to the OpenSim documentation here it uses a Simbody PointInPlane constraint for the normal contact. That is described here . I'm not sure why it wasn't implemented by a Simbody SphereOnPlaneContact constraint, but I believe it produces a similar result. Ajay Seth might have further insight...
by Michael Sherman
Mon Sep 04, 2023 8:52 pm
Forum: OpenSim
Topic: Rolling on Surface Constraint Usage
Replies: 3
Views: 1768

Re: Rolling on Surface Constraint Usage

The constraint is applied at the point of contact.
- Sherm