Calculate moments

Hi there,

I’m new to forum and to Anybody. I’m seeking some help in figuring
out how calculate and plot the joint moments of the ankle, knee, and
hip. Currently, I have a lower body model on which I’ve run the
kinematic analysis and inverse dynamic analysis. The model is driven
by marker motion data extracted from the c3d motion file.

I’ve read on the message board some mention of turning ‘on’ the
reaction.type function in the driver folder and of the use of the
AnyForceMomentMeasure function. Most of what I’ve seen on the message
board has either not been detailed enough for me to go and try to
implement myself or obsolete due to the explanation being for much
older versions of Anybody.

Is there a tutorial somewhere that explains how the get the
calculated joint moments from the program, starting with what code to
add where though to being able to see the torques plotted on the
ChartFX? If not, could you please give me some direction. Your help
will be greatly appreciated.

Also, I’d like to know how to view the joint angle data of the ankle,
knee, and hip through time after running the InverseDynamicAnalysis.

Thanks again.

Jerome

Hello Jerome,

First, let me welcome you to the group.

To enable/see joint moments:

I had a fairly detailed discussion of this matter on the group. You can look
at this post:

HYPERLINK
"http://tech.groups.yahoo.com/group/anyscript/message/1202"http://tech.group
s.yahoo.com/group/anyscript/message/1202

In short:

  1.   Make sure you use the NoMuscles.any model of the lower limb.
    
  2.   In the LegNoMuscles.root.any files (included in the
    

BodyModel_NoMuscles.any file), make sure you include JointMuscles.any and
not JointReactions.any.

To view these moments:

Once you’ve done that, you can run an InverseDynamicAnalysis and use the
AnyChart 2D/3D to navigate to those JointMuscles. Depending on your model,
they should be somewhere like

Main.Study.Output.Model.HumanModel.(Left/Right).Leg.JointMuscles.(HipJnt/Kne
eJnt/AnkleJnt).(dofX).(PosMuscle/NegMuscle)

There are two muscles (one negative, one positive), because muscles can only
pull. These muscles are using the AnyMuscleModel class, so they are constant
strength, with no passive components. Therefore, they give you what you are
looking for.

Hope this answers all of your questions.

If you need more detailed explanations, or you have more questions, don’t
hesitate,

Jean-Olivier Racine

HYPERLINK "mailto:joracine@humancad.com"joracine@humancad.com

HumanCAD development team

Nexgen Ergonomics Inc.

HYPERLINK "http://www.nexgenergo.com/"http://www.nexgenergo.com/

From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com] On Behalf
Of Jerome
Sent: Monday, April 21, 2008 11:45 PM
To: anyscript@yahoogroups.com
Subject: [AnyScript] Calculate moments

Hi there,

I’m new to forum and to Anybody. I’m seeking some help in figuring
out how calculate and plot the joint moments of the ankle, knee, and
hip. Currently, I have a lower body model on which I’ve run the
kinematic analysis and inverse dynamic analysis. The model is driven
by marker motion data extracted from the c3d motion file.

I’ve read on the message board some mention of turning ‘on’ the
reaction.type function in the driver folder and of the use of the
AnyForceMomentMeasure function. Most of what I’ve seen on the message
board has either not been detailed enough for me to go and try to
implement myself or obsolete due to the explanation being for much
older versions of Anybody.

Is there a tutorial somewhere that explains how the get the
calculated joint moments from the program, starting with what code to
add where though to being able to see the torques plotted on the
ChartFX? If not, could you please give me some direction. Your help
will be greatly appreciated.

Also, I’d like to know how to view the joint angle data of the ankle,
knee, and hip through time after running the InverseDynamicAnalysis.

Thanks again.

Jerome

No virus found in this incoming message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 269.23.3/1391 - Release Date: 4/22/2008
8:15 AM

No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 269.23.3/1391 - Release Date: 4/22/2008
8:15 AM

[Non-text portions of this message have been removed]

Hello Jean-Oliver,

Thanks for your help. I was able to plot the joint moments according
to your directions. Is there a way to get one moment calculation for
each joint instead of the two. Can I add the positive and negative
joint muscle torques or something of the sort?

Also, is it possible to plot one graph on top of the other. For
instance how would I plot the sagittal knee angle over time on the
same graph as the knee torque? They are both available to view
individually, but how do I view on the same graph axis. I’m not sure
if this is possible in anybody.

— In anyscript@yahoogroups.com, Jean-Olivier Racine <joracine@…>
wrote:
>
> Hello Jerome,
>
>
>
> First, let me welcome you to the group.
>
>
>
> To enable/see joint moments:
>
> I had a fairly detailed discussion of this matter on the group. You
can look
> at this post:
>
> HYPERLINK
> "http://tech.groups.yahoo.com/group/anyscript/message/1202"http://te
ch.group
> s.yahoo.com/group/anyscript/message/1202
>
>
>
> In short:
>
> 1. Make sure you use the NoMuscles.any model of the lower
limb.
>
> 2. In the LegNoMuscles.root.any files (included in the
> BodyModel_NoMuscles.any file), make sure you include
JointMuscles.any and
> not JointReactions.any.
>
>
>
> To view these moments:
>
> Once you’ve done that, you can run an InverseDynamicAnalysis and
use the
> AnyChart 2D/3D to navigate to those JointMuscles. Depending on your
model,
> they should be somewhere like
>
>
>
> Main.Study.Output.Model.HumanModel.(Left/Right).Leg.JointMuscles.
(HipJnt/Kne
> eJnt/AnkleJnt).(dofX).(PosMuscle/NegMuscle)
>
>
>
> There are two muscles (one negative, one positive), because muscles
can only
> pull. These muscles are using the AnyMuscleModel class, so they are
constant
> strength, with no passive components. Therefore, they give you what
you are
> looking for.
>
>
>
> Hope this answers all of your questions.
>
> If you need more detailed explanations, or you have more questions,
don’t
> hesitate,
>
>
>
> Jean-Olivier Racine
>
> HYPERLINK "mailto:joracine@…"joracine@…
>
> HumanCAD development team
>
> Nexgen Ergonomics Inc.
>
> HYPERLINK "http://www.nexgenergo.com/"http://www.nexgenergo.com/
>
>
>
> From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com]
On Behalf
> Of Jerome
> Sent: Monday, April 21, 2008 11:45 PM
> To: anyscript@yahoogroups.com
> Subject: [AnyScript] Calculate moments
>
>
>
> Hi there,
>
> I’m new to forum and to Anybody. I’m seeking some help in figuring
> out how calculate and plot the joint moments of the ankle, knee,
and
> hip. Currently, I have a lower body model on which I’ve run the
> kinematic analysis and inverse dynamic analysis. The model is
driven
> by marker motion data extracted from the c3d motion file.
>
> I’ve read on the message board some mention of turning ‘on’ the
> reaction.type function in the driver folder and of the use of the
> AnyForceMomentMeasure function. Most of what I’ve seen on the
message
> board has either not been detailed enough for me to go and try to
> implement myself or obsolete due to the explanation being for much
> older versions of Anybody.
>
> Is there a tutorial somewhere that explains how the get the
> calculated joint moments from the program, starting with what code
to
> add where though to being able to see the torques plotted on the
> ChartFX? If not, could you please give me some direction. Your help
> will be greatly appreciated.
>
> Also, I’d like to know how to view the joint angle data of the
ankle,
> knee, and hip through time after running the
InverseDynamicAnalysis.
>
> Thanks again.
>
> Jerome
>
>
>
>
>
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 269.23.3/1391 - Release Date:
4/22/2008
> 8:15 AM
>
>
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 269.23.3/1391 - Release Date:
4/22/2008
> 8:15 AM
>
>
>
> [Non-text portions of this message have been removed]
>

Hello Jerome,

Yes, you could add the two. One way to do this is to create a variable and
add the two. This could look something like this:

AnyFolder& Knee =
Main.Study.Output.Model.HumanModel.Left.Leg.JointMuscles.KneeJnt;

AnyFloat KneeMoment = Knee.dof0.PosMuscle + Knee.dof0.NegMuscle; Then all
you have to do is look at KneeMoment, instead of the previous two values.

And yes, you can plot both graph on the same plot. The simplest way is to do
it in AnyChart: when you select a variable, in the top window you get Value
“Main.Study…”. This entry is called the search string (see
AnyObjectSearchString, in the documentation for more information). In short,
it is a string that gives you access to the variable using a string and,
most importantly, wildcards. On top of that, you have the Add Serie
icon/button (on the right). If you click on this button, you will add a new
serie. You can then put the same Abscissa, but enter a new search string for
what you want to add to this graph. You can add any number of series like
that and, therefore, combine any data on a single graph.

Hope it helps,

Jean-Olivier Racine

HYPERLINK "mailto:joracine@humancad.com"joracine@humancad.com

HumanCAD development team

Nexgen Ergonomics Inc.

HYPERLINK "http://www.nexgenergo.com/"http://www.nexgenergo.com/

From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com] On Behalf
Of Jerome
Sent: Wednesday, April 23, 2008 1:08 AM
To: anyscript@yahoogroups.com
Subject: [AnyScript] Re: Calculate moments

Hello Jean-Oliver,

Thanks for your help. I was able to plot the joint moments according
to your directions. Is there a way to get one moment calculation for
each joint instead of the two. Can I add the positive and negative
joint muscle torques or something of the sort?

Also, is it possible to plot one graph on top of the other. For
instance how would I plot the sagittal knee angle over time on the
same graph as the knee torque? They are both available to view
individually, but how do I view on the same graph axis. I’m not sure
if this is possible in anybody.

— In HYPERLINK
"mailto:anyscript%40yahoogroups.com"anyscript@yahoogroups.com, Jean-Olivier
Racine <joracine@…>
wrote:
>
> Hello Jerome,
>
>
>
> First, let me welcome you to the group.
>
>
>
> To enable/see joint moments:
>
> I had a fairly detailed discussion of this matter on the group. You
can look
> at this post:
>
> HYPERLINK
> "HYPERLINK
"http://tech.groups.yahoo.com/group/anyscript/message/1202"http://tech.group
s.yahoo.com/group/anyscript/message/1202"HYPERLINK "http://te"http://te
ch.group
> s.yahoo.com/group/anyscript/message/1202
>
>
>
> In short:
>
> 1. Make sure you use the NoMuscles.any model of the lower
limb.
>
> 2. In the LegNoMuscles.root.any files (included in the
> BodyModel_NoMuscles.any file), make sure you include
JointMuscles.any and
> not JointReactions.any.
>
>
>
> To view these moments:
>
> Once you’ve done that, you can run an InverseDynamicAnalysis and
use the
> AnyChart 2D/3D to navigate to those JointMuscles. Depending on your
model,
> they should be somewhere like
>
>
>
> Main.Study.Output.Model.HumanModel.(Left/Right).Leg.JointMuscles.
(HipJnt/Kne
> eJnt/AnkleJnt).(dofX).(PosMuscle/NegMuscle)
>
>
>
> There are two muscles (one negative, one positive), because muscles
can only
> pull. These muscles are using the AnyMuscleModel class, so they are
constant
> strength, with no passive components. Therefore, they give you what
you are
> looking for.
>
>
>
> Hope this answers all of your questions.
>
> If you need more detailed explanations, or you have more questions,
don’t
> hesitate,
>
>
>
> Jean-Olivier Racine
>
> HYPERLINK "mailto:joracine@…"joracine@…
>
> HumanCAD development team
>
> Nexgen Ergonomics Inc.
>
> HYPERLINK "HYPERLINK
"http://www.nexgenergo.com/"http://www.nexgenergo.com/"HYPERLINK
"http://www.nexgenergo.com/"http://www.nexgenergo.com/
>
>
>
> From: HYPERLINK
"mailto:anyscript%40yahoogroups.com"anyscript@yahoogroups.com
[mailto:HYPERLINK
"mailto:anyscript%40yahoogroups.com"anyscript@yahoogroups.com]
On Behalf
> Of Jerome
> Sent: Monday, April 21, 2008 11:45 PM
> To: HYPERLINK
"mailto:anyscript%40yahoogroups.com"anyscript@yahoogroups.com
> Subject: [AnyScript] Calculate moments
>
>
>
> Hi there,
>
> I’m new to forum and to Anybody. I’m seeking some help in figuring
> out how calculate and plot the joint moments of the ankle, knee,
and
> hip. Currently, I have a lower body model on which I’ve run the
> kinematic analysis and inverse dynamic analysis. The model is
driven
> by marker motion data extracted from the c3d motion file.
>
> I’ve read on the message board some mention of turning ‘on’ the
> reaction.type function in the driver folder and of the use of the
> AnyForceMomentMeasure function. Most of what I’ve seen on the
message
> board has either not been detailed enough for me to go and try to
> implement myself or obsolete due to the explanation being for much
> older versions of Anybody.
>
> Is there a tutorial somewhere that explains how the get the
> calculated joint moments from the program, starting with what code
to
> add where though to being able to see the torques plotted on the
> ChartFX? If not, could you please give me some direction. Your help
> will be greatly appreciated.
>
> Also, I’d like to know how to view the joint angle data of the
ankle,
> knee, and hip through time after running the
InverseDynamicAnalysis.
>
> Thanks again.
>
> Jerome
>
>
>
>
>
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 269.23.3/1391 - Release Date:
4/22/2008
> 8:15 AM
>
>
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 269.23.3/1391 - Release Date:
4/22/2008
> 8:15 AM
>
>
>
> [Non-text portions of this message have been removed]
>

No virus found in this incoming message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 269.23.3/1393 - Release Date: 4/23/2008
8:12 AM

No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 269.23.3/1393 - Release Date: 4/23/2008
8:12 AM

[Non-text portions of this message have been removed]