yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #00845
simulation main loop
Hi,
From MetaBody::moveToNextTimeStep I understand that during a
simulation Yade loops over all the engines stored in the vector engine.
Then, if I consider two engines, for instance the GravityEngine and
another one, that we can call MagnetEngine (we imagine that grains are
influenced by a magnet field!), each of these engines loops over all the
bodies. So for one time step I loop twice (in this case) over the body
assembly.
My question: is there a way, with the current code, to avoid that?
For instance am I allowed to create an engine doing a loop over all the
bodies and calling inside the loop, for each body, the engines
MagnetEngine and GravityEngine.
Thanks for your answers,
Luc
--
Luc Sibille, Université de Nantes - Laboratoire GeM, maître de conférence
Adresse/address:
IUT de Saint Nazaire - Département de Génie-Civil
58, rue Michel-Ange - BP 420
44606 Saint-Nazaire Cedex France
Tel: +33 2 40 17 81 78 Fax: +33 2 40 17 81 60
_______________________________________________
Yade-users mailing list
Yade-users@xxxxxxxxxxxxxxxx
https://lists.berlios.de/mailman/listinfo/yade-users
Follow ups