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
Calculations in SmoothSphereHalfSpaceForce
- Dhruv Gupta
- Posts: 30
- Joined: Sat Aug 29, 2015 11:23 am
- Nicos Haralabidis
- Posts: 205
- Joined: Tue Aug 16, 2016 1:46 am
Re: Calculations in SmoothSphereHalfSpaceForce
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
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
- Dhruv Gupta
- Posts: 30
- Joined: Sat Aug 29, 2015 11:23 am
Re: Calculations in SmoothSphereHalfSpaceForce
Thanks Nicos, that helped!