changing fiber force length curve setting

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
mohamad mahdavian
Posts: 28
Joined: Tue Mar 04, 2014 11:47 am

changing fiber force length curve setting

Post by mohamad mahdavian » Tue Feb 17, 2015 1:49 pm

Hello.I was trying to change some of fiber force length curve settings such as curviness in millard model,but it is impossible.Can anybody help me how to do this? Thanks a lot

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: changing fiber force length curve setting

Post by jimmy d » Mon Feb 23, 2015 2:39 pm

Hi Mohamad,

How were you trying to change the curves? the Millard Model has those properties exposed and it can be changed in the xml or by using the API.

Cheers,
-James

User avatar
mohamad mahdavian
Posts: 28
Joined: Tue Mar 04, 2014 11:47 am

Re: changing fiber force length curve setting

Post by mohamad mahdavian » Tue Feb 24, 2015 3:17 am

Hello James.
I was trying to change the properties in the program.It was impossible.Then i saw your comment.I tried to change .XML file setting.When i changed the setting now it is impossible to open the model file.
The error is :
Exception caught in RightMuscle::buildMuscle()
SimTK Exception thrown at FiberForceLengthCurve.cpp:155:
Error detected by Simbody method FiberForceLengthCurve::ensureCurveUpToDate(): RightMuscle_FiberForceLengthCurve: Optional parameters stiffnessAtLowForce,

Thank you

User avatar
Ajay Seth
Posts: 136
Joined: Thu Mar 15, 2007 10:39 am

Re: changing fiber force length curve setting

Post by Ajay Seth » Thu Feb 26, 2015 3:29 pm

Post the parameters and the values you are trying to apply.

User avatar
mohamad mahdavian
Posts: 28
Joined: Tue Mar 04, 2014 11:47 am

Re: changing fiber force length curve setting

Post by mohamad mahdavian » Fri Feb 27, 2015 8:30 am

For example:

Stiffness at low force:2
Stiffness at one norm force:0.5
curviness:0.8
Thank You

User avatar
mohamad mahdavian
Posts: 28
Joined: Tue Mar 04, 2014 11:47 am

Re: changing fiber force length curve setting

Post by mohamad mahdavian » Sun Mar 29, 2015 11:02 am

Hello Dear seth
I asked a question in opensim forum and you asked to give you the parameters.But since then you didn't reply me back.I wanted asked if you could solve my problem and help me.

Best Regards

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: changing fiber force length curve setting

Post by jimmy d » Tue Mar 31, 2015 2:32 pm

Below is the code snippet where the error is generated. Note:
stiffnessAtOneNormForce, and curviness must either all be set or all be empty.

Code: Select all

else {
        // Ensure that the reference curve is being used to populate either all
        // optional properties or none of them; otherwise, there would be an
        // inconsistency in the computed curve and it wouldn't reflect the
        // reference curve.

        SimTK_ERRCHK1_ALWAYS(false,
            "FiberForceLengthCurve::ensureCurveUpToDate()",
            "%s: Optional parameters stiffnessAtLowForce, "
            "stiffnessAtOneNormForce, and curviness must either all be set or "
            "all be empty.", getName().c_str());
Link to the source code;
https://github.com/opensim-org/opensim- ... hCurve.cpp

POST REPLY