← Back to team overview

yade-users team mailing list archive

Re: [Question #251218]: Modifying the Cohesive Frictional Contact Law

 

Question #251218 on Yade changed:
https://answers.launchpad.net/yade/+question/251218

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hi Behzad,
you should derive CohBurgersPhys (as mentioned in the beginning of your
question), *not* Ip2...
Jan


2014-10-07 20:56 GMT+02:00 behzad
<question251218@xxxxxxxxxxxxxxxxxxxxx>:

> Question #251218 on Yade changed:
> https://answers.launchpad.net/yade/+question/251218
>
>     Status: Answered => Open
>
> behzad is still having a problem:
> Hi,
>
> here I'm deriving CohBurgersPhys from CohFrictPhys. Is this what you
> mean? :
>
>
> class Ip2_CohBurgersMat_CohBurgersMat_CohBurgersPhys : public CohFrictPhys
> {
>         public :
>                 virtual void go(        const shared_ptr<Material>& b1,
>                                         const shared_ptr<Material>& b2,
>                                         const shared_ptr<Interaction>&
> interaction);
>                 int cohesionDefinitionIteration;
>
>
> YADE_CLASS_BASE_DOC_ATTRS_CTOR(Ip2_CohBurgersMat_CohBurgersMat_CohBurgersPhys,IPhysFunctor,
>                 ((bool,setCohesionNow,false,,"If true, assign cohesion to
> all existing contacts in current time-step. The flag is turned false
> automatically, so that assignment is done in the current timestep only."))
>                 ((bool,setCohesionOnNewContacts,true))
>                 ,
>                 cohesionDefinitionIteration = -1;
>                 );
>         FUNCTOR2D(CohBurgersMat,CohBurgersMat);
> };
>
> REGISTER_SERIALIZABLE(Ip2_CohBurgersMat_CohBurgersMat_CohBurgersPhys);
>
> --
> 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.