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
Implementig Hunt Crossley Contact Model
- joana baptista
- Posts: 21
- Joined: Fri Apr 01, 2011 4:52 am
- Sina Porsa
- Posts: 99
- Joined: Thu Feb 03, 2011 7:21 pm
RE: Implementig Hunt Crossley Contact Model
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
I have the same problem, if you have solved your problem, it would be great if you could update this post.
Thanks
Sina
- joana baptista
- Posts: 21
- Joined: Fri Apr 01, 2011 4:52 am
RE: Implementig Hunt Crossley Contact Model
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!
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!
- Sina Porsa
- Posts: 99
- Joined: Thu Feb 03, 2011 7:21 pm
RE: Implementig Hunt Crossley Contact Model
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
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