← Back to team overview

yade-users team mailing list archive

Re: [Question #247006]: Writing a new constitutive law

 

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

    Status: Open => Answered

Klaus Thoeni proposed the following answer:
Hi,

why can it be painful? Did you try it? Yade is actually designed in a
way that new contact laws can easily be added and it is open source so
you are in control of everything. The only thing you might need is a
little bit of C++ and Python knowledge.

You should first read the Programmer's manual [1] and then have a look
at the source code in pkg/dem/ where all the files defining the contact
laws are. Choose the contact law which is most similar to your new one
(if you tell us more about your new contact law we might be able to give
you some more directions) and start from there, i.e. copy and rename the
relevant files and start to modify them. Make sure you use the right
namings for your classes as indicated in the Programmer's manual.

Good luck, 
Klaus

[1] https://yade-dem.org/doc/prog.html

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