changing fiber force length curve setting
- mohamad mahdavian
- Posts: 28
- Joined: Tue Mar 04, 2014 11:47 am
changing fiber force length curve setting
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
Re: changing fiber force length curve setting
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
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
- mohamad mahdavian
- Posts: 28
- Joined: Tue Mar 04, 2014 11:47 am
Re: changing fiber force length curve setting
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
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
Re: changing fiber force length curve setting
Post the parameters and the values you are trying to apply.
- mohamad mahdavian
- Posts: 28
- Joined: Tue Mar 04, 2014 11:47 am
Re: changing fiber force length curve setting
For example:
Stiffness at low force:2
Stiffness at one norm force:0.5
curviness:0.8
Thank You
Stiffness at low force:2
Stiffness at one norm force:0.5
curviness:0.8
Thank You
- mohamad mahdavian
- Posts: 28
- Joined: Tue Mar 04, 2014 11:47 am
Re: changing fiber force length curve setting
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
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
Re: changing fiber force length curve setting
Below is the code snippet where the error is generated. Note:
Link to the source code;
https://github.com/opensim-org/opensim- ... hCurve.cpp
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());
https://github.com/opensim-org/opensim- ... hCurve.cpp