Search found 10 matches

by Michael Woodward
Mon Jun 25, 2018 8:19 am
Forum: OpenSim
Topic: Moment of inertia around body origin
Replies: 0
Views: 129

Moment of inertia around body origin

Hello all Is it possible to calculate the moment of inertia of a body with respect to the body's origin through the MATLAB API? Or a way to transform the default value given about the centre of mass to the body origin? I know these commands exist within the SimTK namespace and that these aren't yet ...
by Michael Woodward
Tue May 29, 2018 3:11 am
Forum: OpenSim
Topic: How does getAccelerations consider forces?
Replies: 2
Views: 172

Re: How does getAccelerations consider forces?

Hi Tom, sorry for the late reply

For the Arm26 model yes it does, assuming the call is returning the accelerations of the generalised coordinates described by the state (essential Udot?). The block model I'm analysing returns zero values for this call, despite having Q and U values in the state.
by Michael Woodward
Fri May 25, 2018 4:34 am
Forum: OpenSim
Topic: How does getAccelerations consider forces?
Replies: 2
Views: 172

How does getAccelerations consider forces?

Hi all I'm trying to learn more about how the getAccelerations function works in order to validate that a process being constructed through the MATLAB API is extracting the correct results. Currently I'm simply attempting to extract the acceleration of a simple cube body which has only a single tran...
by Michael Woodward
Thu May 10, 2018 5:36 am
Forum: OpenSim
Topic: Failed to load .dll library
Replies: 5
Views: 282

Re: Failed to load .dll library

Yeah sure, it's essentially just this:

Code: Select all

plugin2load = 'MuscleForceDirection.dll';

Model.LoadOpenSimLibrary('C:\OpenSim 3.3\plugins\MuscleForceDirection');

dos(['analyze -S ',LoAxml,' -L ', plugin2load], '-echo');
With 'LoAxml' being the path to the settings xml for the analysis.
by Michael Woodward
Tue May 08, 2018 1:58 am
Forum: OpenSim
Topic: Failed to load .dll library
Replies: 5
Views: 282

Re: Failed to load .dll library

Hi Christopher

I've tried this, but unfortunately the result is the same. Do you have any other ideas?
by Michael Woodward
Wed May 02, 2018 9:20 am
Forum: OpenSim
Topic: Failed to load .dll library
Replies: 5
Views: 282

Failed to load .dll library

Hi all I'm trying to run a user plugin (MuscleForceDirection) for OpenSim3.3 through the MATLAB API. The plugin loads and runs fine in the GUI but when I try to run it through MATLAB I get the following error: Failed to load library MuscleForceDirection.dll ERROR- library MuscleForceDirection.dll co...
by Michael Woodward
Mon Mar 19, 2018 10:35 am
Forum: OpenSim
Topic: Using getMatterSubsystem
Replies: 2
Views: 213

Re: Using getMatterSubsystem

Ah, I suspected this would be the case. No worries

Thank you very much for your help Christopher!
by Michael Woodward
Mon Mar 19, 2018 7:20 am
Forum: OpenSim
Topic: Using getMatterSubsystem
Replies: 2
Views: 213

Using getMatterSubsystem

Hello all I'm trying to use the call getTotalCentrifugalForces to attain the force contribution from Coriolis and centrifugal forces on a model through the MATLAB API. I understand that this function and several other SimBody commands need to be called on a MatterSubsystem through getMatterSubsystem...
by Michael Woodward
Mon Feb 12, 2018 9:31 am
Forum: OpenSim
Topic: Obtaining accelerations of segment CoM
Replies: 5
Views: 1220

Re: Obtaining accelerations of segment CoM

Ultimately, we are attempting to extract all the forces and moments of force and their point of application on the femur for each frame of the gait cycle. This is for the intended purpose of using these specific force vectors as the input to finite element modelling. We are attempting to verify the ...
by Michael Woodward
Fri Jan 26, 2018 11:50 am
Forum: OpenSim
Topic: Obtaining accelerations of segment CoM
Replies: 5
Views: 1220

Obtaining accelerations of segment CoM

Hi We are attempting to extract all the forces (muscle, reaction, inertial and gravitational) acting on a particular body at each frame in time. We’re currently having issues trying to obtain accurate values for the acceleration components and were wondering if you could point us into the right dire...