yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #10562
Re: [Question #258258]: Cohesion creation- a new constitutive law
Question #258258 on Yade changed:
https://answers.launchpad.net/yade/+question/258258
Status: Open => Answered
Jan Stránský proposed the following answer:
Hi Behzad,
what does computeForceTorqueCohBurgers do?
Jan
2014-12-01 22:51 GMT+01:00 behzad <question258258@xxxxxxxxxxxxxxxxxxxxx>:
> 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.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.