yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #01221
Re: Successive slightly different simulations
> Ok ! Now I know it's possible I will first begin by creating my
> "jeromEngine", and then try to use it with Python.
Eh, you don't need special engine. You just take an existing one, and
the easiest is to find it by label. Otherwise you can do like this to
get TriaxialCompressionEngine, for example:
tce=[e for e in o.engines if e.name=='TriaxialCompressionEngine'][0]
(the first expression gets list of all engines of which class name is
"TriaxialCompressionEngine" and the [0] gives you the first (likely the
only one) element in the list). You can read it like math set expression:
{e ∀e∈{all engines} | e.name=='TriaxialCompressionEngine}, i.e. set of
all e from {all engines} that satisfy the condition.
Then you go ahead:
tce['sigma_iso']=5e7
tce['...']=...
You get the idea, right?
_______________________________________________
Yade-users mailing list
Yade-users@xxxxxxxxxxxxxxxx
https://lists.berlios.de/mailman/listinfo/yade-users
Follow ups
References