← 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,


>
> Alright. I have already created a new class of material, CohBurgersMat. I
> have shared it above. So, I create a new Iphys now.


> But Iphys as I see it doesn't take any parameter from the material.
> Anyway, I modified CohFrictPhys and named it to CohBurPhys.
>


IPhys is created by Ip2 functor, which combine two Material instances
together, so the values of IPhys are somehow computed from the materials,
but not directly in IPhys itself. You will also need new Ip2 class.


> Does it look fine?
>


For the first sight yes, but try to name your classes consistently and
don't do too much abbreviations, i.e. I would name it CohBurgersPhys (in
analogy to the material).


>
>
> I'm not sure if the following lines are correct:
>


I see nothing wrong with them..


>
>
> #include<yade/pkg/common/NormShearPhys.hpp>
> #include<yade/pkg/dem/FrictPhys.hpp>
>
> class CohBurPhys : public FrictPhys
>
>
>

cheers
Jan

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.