← 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

Bruno Chareyre proposed the following answer:
1-yes


2- 

> If I change it to
>
> Real Fn    = phys->kn*(un-phys->unp)+ something
>
> that would be enough modifying the normal force calculation? 

Certainly.

Now the choice that you have is:
- add this feature to the existing law in a clean way, so that it can be
integrated in trunk (we can discuss how to do so)
- even better: derive a new law in such a way that you re-use the
existing code by inheritance, and you only type the few lines that
differ (again, we can discuss integration in trunk)
- copy/paste/rename the existing law into new files, and modify them a
little to do what you need. It probably sounds the easiest way. It will
work in short term but in the long run it will be lost because we will
not accept that in trunk.

Bruno

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