Page 1 of 1

Implementig Hunt Crossley Contact Model

Posted: Wed Jun 01, 2011 3:32 am
by joanabaptista
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

RE: Implementig Hunt Crossley Contact Model

Posted: Tue Jun 28, 2011 5:13 pm
by porsasina
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

RE: Implementig Hunt Crossley Contact Model

Posted: Wed Jun 29, 2011 4:55 am
by joanabaptista
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!

RE: Implementig Hunt Crossley Contact Model

Posted: Wed Jun 29, 2011 9:43 pm
by porsasina
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