Page 1 of 1

Calculations in SmoothSphereHalfSpaceForce

Posted: Sat Dec 05, 2020 11:52 am
by dhruv
Hello,

Thank you for OpenSim Moco. It is a great platform for faster simulations.

I am using the Hunt Crossley Force using the SmoothSphereHalfSpaceForce in Moco. On Github, I was trying to find the code where all the calculations in this code, but I could not find them. For example, the code https://github.com/opensim-org/opensim- ... eForce.cpp does not include the calculation like the code for Hunt Crossley Force in the Simbody directory (https://github.com/simbody/simbody/blob ... yForce.cpp). It seems to use the getForce or calcForceContribution methods, but those seem like methods of the parent/friend classes.

I am not an expert in C++, can you please direct me to where the actual the Hunt Crossley Force calculations (including friction) of SmoothSpaceHalfSpaceForce used in Moco are coded?

I greatly appreciate your time and effort.

Thank You
Dhruv

Re: Calculations in SmoothSphereHalfSpaceForce

Posted: Mon Dec 07, 2020 1:15 am
by nicos1993
Hello Dhruv,

You can find the source code for the SmoothSphereHalfSpaceForce here: https://github.com/simbody/simbody/blob ... eForce.cpp

The equations for the model (normal and friction forces) can be found here:
https://simbody.github.io/3.7.0/classSi ... Force.html

Hope that helps.

Nicos

Re: Calculations in SmoothSphereHalfSpaceForce

Posted: Mon Jan 25, 2021 1:01 pm
by dhruv
Thanks Nicos, that helped!