yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #10557
Re: [Question #258258]: Cohesion creation- a new constitutive law
Question #258258 on Yade changed:
https://answers.launchpad.net/yade/+question/258258
Status: Answered => Open
behzad is still having a problem:
The following is what I have in bool Law2:go function.
bool Law2_ScGeom_CohBurgersPhys_CohesiveBurgers::go(shared_ptr<IGeom>& _geom, shared_ptr<IPhys>& _phys, Interaction* I)
{
Vector3r force = Vector3r::Zero();
Vector3r torque1 = Vector3r::Zero();
Vector3r torque2 = Vector3r::Zero();
if (computeForceTorqueCohBurgers(_geom, _phys, I, force, torque1, torque2) and (I->isActive)) {
const int id1 = I->getId1();
const int id2 = I->getId2();
addForce (id1,-force,scene);
addForce (id2, force,scene);
addTorque(id1, torque1,scene);
addTorque(id2, torque2,scene);
return true;
} else return false;
}
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.