Implementig Hunt Crossley Contact Model

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
joana baptista
Posts: 21
Joined: Fri Apr 01, 2011 4:52 am

Implementig Hunt Crossley Contact Model

Post by joana baptista » Wed Jun 01, 2011 3:32 am

Hi,

Does someone can clarify me on how to implement the HuntCrossley in C++ contact model ?

It is similar to ElasticFoundationForce, but without assigning the mesh?

Thanks

Joana

User avatar
Sina Porsa
Posts: 99
Joined: Thu Feb 03, 2011 7:21 pm

RE: Implementig Hunt Crossley Contact Model

Post by Sina Porsa » Tue Jun 28, 2011 5:13 pm

Hi Joana
I have the same problem, if you have solved your problem, it would be great if you could update this post.
Thanks
Sina

User avatar
joana baptista
Posts: 21
Joined: Fri Apr 01, 2011 4:52 am

RE: Implementig Hunt Crossley Contact Model

Post by joana baptista » Wed Jun 29, 2011 4:55 am

Hi!

To create the geometrys to the Hunt Crossley model you have to do this:

First you creat an halfspace:


ContactHalfSpace floor(Vec3 location, Vec3 orientation, ground, "ground");
osimModel.updContactGeometrySet().append(&floor1);

Then you create a sphere geometry

OpenSim::ContactGeometry* sphere;
sphere = new ContactSphere(radius, Vec3 location, *block, "block");
osimModel.updContactGeometrySet().append(sphere);

Hope this will help!

User avatar
Sina Porsa
Posts: 99
Joined: Thu Feb 03, 2011 7:21 pm

RE: Implementig Hunt Crossley Contact Model

Post by Sina Porsa » Wed Jun 29, 2011 9:43 pm

Thanks Joana
It was really helpful. just two more questions:
1- How should I specify contact parameters? Such as stiffness of contact bodies, friction coefficients etc.
2- If I want to use "elastic foundation force", should I define a half space again?

Cheers
Sina

POST REPLY