Question #706765 on Yade changed: https://answers.launchpad.net/yade/+question/706765
Status: Open => Answered Jan Stránský proposed the following answer: Hello, see also [1] > Does using batch file mean I can divide the simulation into 2 parts? No. Batch run in Yade context means that you run the same script multiple times with given (usually varying) parameters. E.g. you could run your simulation with varying value of gravity (artificial example) with values 9.81, 20, 100 and 500. Batch run can be run all jobs sequentially or all jobs in parallel or a combination of both. The main advantage is simplicity of the setting. > I'm couldn't understand what exactly is readParamsFromTable(damping =.2) readParamsFromTable reads parameters from table if given, otherwise it uses default value (damping=0.2 in this case) For the gravity example above, you can create the "grav.table" file: ### grav.table gravity 9.81 20 100 500 ### ### script.py readParamsFromTable( gravity = 9.81, ) from yade.params.table import * print(gravity) ### and then run it as yade-batch grav.table script.py Cheers Jan [1] https://yade-dem.org/doc/user.html#batch-queuing-and-execution-yade- batch -- You received this question notification because your team yade-users is an answer contact for Yade. _______________________________________________ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp