yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #12024
Re: Interesting tidbit from Quantum Mechanics
-
To:
yade-dev@xxxxxxxxxxxxxxxxxxx
-
From:
Janek Kozicki <janek_listy@xxxxx>
-
Date:
Wed, 13 May 2015 18:09:25 +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:
<555098FA.1080305@3sr-grenoble.fr>
Bruno Chareyre said: (by the date of Mon, 11 May 2015 13:56:42 +0200)
> On 09/05/15 20:59, Janek Kozicki wrote:
> > But of course I want to make sure that it works for you also. So what
> > do you think, is it better Functor1D or Functor2D?
> I can't imagine a situation where 2D is needed. It would need a body
> with two materials, which we never had before.
> Your 1D suggestion sounds right.
>
> > BTW: Moving calculation of mass & inertia into such class would
> > remove a lot of redundant code in yade :)
> Mass and inertia need Shape, not only Material+State. How would it be
> done in this new functor?
Usually all the functors pass the most needed arguments (i.e. the one
upon which the dispatch is done plus something extra) and also the
Body* argument in case if anything else is needed. Hence StateFunctor
will have access to Shape through Body*.
I have just committed this StateFunctor, please have a look at this diff:
https://github.com/cosurgi/trunk/commit/ffbb314dfebb9d5962cacb120ee050fdfd0e4d11
On a side note: it's possible that I also will need access to Shape,
because I am somewhat unsure if the quantum wavefunction should
belong to State or to Shape :) Funny thing: it is related to
interpretations of QM, and there are ongoing debates about it, starting
somewhere around 1925, and still unsettled ;-)
best regards
--
Janek Kozicki http://janek.kozicki.pl/ |
References