yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #00670
Re: [deprecated list] ContactLaw1
-
To:
yade-dev@xxxxxxxxxxxxxxxxxxx
-
From:
Janek Kozicki <janek_listy@xxxxx>
-
Date:
Fri, 26 Sep 2008 14:12:11 +0200
-
Face:
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAALVBMVEUBAQEtLS1KSkpRUVFXV1dYWFhjY2Nzc3N3d3eHh4eKioqdnZ24uLjLy8vc3NxVIagyAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH2AIVEzgS1fgQtQAAAjRJREFUOMtt1DFv00AUAOAzFQNbjigSyoQaRaBMhKgLUyKXpVNNeUpk9vyDqFJhQ1kiBuaqAwJCqvPtSLY7RlTn5+5IdnYkkt/AOyfxXVLe5vf53Z1875kd34tOEax8djmj6GyjhB5bxz50GdsVZr9fqRjZwAtKOJw5Wqs2MMZ16ALHsaDncF7xAHix1oEFHAB8f+pRjcO4gfZDykcYzbiucRolOLUJ6kjA0xtVt+A6TySlM0RajIpK6DzwKZ/nOYbF/gclHMo1ZOHYY/+Ha+AWuM+3oMS4eeqYzZ8FiCltgUqI8cd2wwAVpJk+8LWYjBtnJdQpHQqJMd4Oxt4bU9ESiFGc5hkqaH74asAX4iabP5I5gZ+qjgGlJCqZa3h3lxhoeVcSE1qLQC4sqKOK9MGW9E3izFqqHokoztLFEgXg31sbZEKnWi2T74A4NxfVQqlkjKtcAWD+zcArFEES01dR0E/nnV0IgugmDd/2L84sOAouRBBHEc7gtc8teDkRlE0iNQPo2w3Xhh/D4TCIQ4LRLoTvgwjj6RRgavdurxYGMaIuGOyAW/PpNlCcU9/93AHenAWYjPoAwa+G3e3to/MgFNTAEKvKDjzuCzHTnY3qqdXtx24VijzQfZ0yewZ5cwRFQaa+mIYr1uI0I76+3W4xhlvoVRwOA0Fdl64HlJnxP6T8YpX/Lga4Wv4A3ErrU5oTfN7Mu/llXMl8RXEPji/lQkN3H7qXqgC2By47EXeU/7PJ/wPxRKMnuZwIeAAAAABJRU5ErkJggg==
-
In-reply-to:
<48DCB959.6040209@geo.hmg.inpg.fr>
Jerome Duriez said: (by the date of Fri, 26 Sep 2008 12:28:41 +0200)
Hi Jerome,
In CohesiveFrictionalContactLaw you can disable moment transefer
law, and snow creep. It is all controlled by bool variables. When
they are disabled - calculation is exactly as fast as when their code
is deleted.
So it is better if you simply modify CohesiveFrictionalContactLaw by
adding:
- a new bool veriable to control if 'inelastic behaviour in
compression' is used.
- Then put your inelastic code in there inside block:
if(inelastic behaviour in compression) // pick any name you want for this bool :)
{
//.... your law here !
}
We are trying to remove unnecessary/duplicated laws. There is one reason for it:
- if in the future I will find a serious bug in CohesiveFrictionalContactLaw
I'll fix it. But I will not fix this bug in your file (which is just
a copy of mine!).
- and now my file is good, and your file has a bug which was not fixed!
This already happened few times, when I was working with Bruno. And
we had to fix the same calculation bug in several files (with law) - it
is hard to remember about all those laws! The less the better: we are
less likely to forgot that other file has the same bug.
When you finish doing this you can run two simulations - one with
your law, and another with CohesiveFrictionalContactLaw + inelastic
behaviour. And compare:
- speed
- if results are the same
If you make no mistake - you will get exactly the same results in the same speed!
You can disable adhesion and cohesion by setting zero
cohesive/adhesive strength for them.
> NB : Moreover I don't know how to rename svn tracked files...
that's 'svn mv old_name new_name' command.
--
Janek Kozicki |
Follow ups
References