← Back to team overview

yade-dev team mailing list archive

R: Re: Triax-Py

 

Hi Vaclav,

actually I was wondering if it is possible to divide the simulation 
into smaller parts using python commands. I mean, starting from the random 
generation, calling engines and so on.
Is that possible for the Triaxial?


Cheers, Chiara


>----Messaggio originale----
>Da: eudoxos@xxxxxxxx
>Data: 
11/12/2009 12.14
>A: <yade-dev@xxxxxxxxxxxxxxxxxxx>
>Ogg: Re: [Yade-dev] Triax-
Py
>
>
>> quick question: is it possible to run a python script for the 
triaxial 
>> test? I mean, NOT just uploading the whole scene (as done in some 
examples). 
>> How could I do it?
>I am not sure what you mean. You can run the 
whole TriaxialTest from
>python like this:
>
>	TriaxialTest(numberOfGrains=800).
load()
>
>(it runs the generator and loads the result)
>
>If you want to run 
triaxial, let it finish and do something with the
>configuration afterwards, 
you can do
>
>O.run(); O.wait()
>
>O.wait will return when it finishes, then yo 
ucan use the command line
>(or do the same in a script) to do whatever you 
want.
>
>Did I get right what you want?
>
>Also, check out this
>http://beta.
arcig.cz/~eudoxos/yade/sphinx/basics.html
>
>Cheers, Vaclav
>
>

>_______________________________________________
>Mailing list: https:
//launchpad.net/~yade-dev
>Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx

>Unsubscribe : https://launchpad.net/~yade-dev
>More help   : https://help.
launchpad.net/ListHelp
>