yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #11310
Re: SPH and DEM and QM :) in Yade,
-
To:
yade-dev <yade-dev@xxxxxxxxxxxxxxxxxxx>
-
From:
Janek Kozicki <janek_listy@xxxxx>
-
Date:
Fri, 26 Sep 2014 16:42:22 +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:
<CALF6qJnKo-8hSAAMbuzBkg0gMQ9t4Z+oug_x9yrcJhb0a-HUAw@mail.gmail.com>
Anton Gladky said: (by the date of Wed, 24 Sep 2014 20:13:21 +0200)
> I have implemented it, but did not test it very well and do not use it
> at the moment. We have a student now, which is trying to use/validate
> Yade's SPH. So maybe it will be better validated.
About SPH maybe it would be wise to make a new class:
class SPHBody: public Body;
and put all SPH stuff there? That would remove this hack with
#ifdef YADE_SPH
and the same thing about
#ifdef YADE_LIQMIGRATION
and
#ifdef YADE_MASK_ARBITRARY
what is the last one by the way? It looks quite arbitrary to me ;)
1. I'm curious if you agree with this idea to make new derived classes?
2. if you agree, I could understand if you decide to do this
kind of refactoring after debian jessie freeze.
3. On the same basis I made a new Body like this one:
class QuantumMechanicalBody: public Body;
However currently Body contains some DEM-only variables, so I think
it would not hurt in the future to make generic Body class more
empty, and move DEM stuff to DEMBody.
4. About naming - as far as I remember we tried to use longer names
in yade in order to make stuff more easy to read. Also everyone has
wide LCD screens and tab-completion. So there is no reason to try to
make names shorter. So I propose those names:
Body
DiscreteElementBody
QuantumMechanicalBody
<WhatIsSPH>Body
<WhatIsLIQ>Body
did the conventions change along the years, or you agree with that?
BTW, there were also a FEMBody and LatticeBody many years ago :)
best regards
--
Janek Kozicki http://janek.kozicki.pl/ |
Follow ups
References