sim.py 598 Bytes
Newer Older
1
from __future__ import print_function
2
# see https://yade-dem.org/doc/user.html#batch-queuing-and-execution-yade-batch
3

4
readParamsFromTable(unknownOk=True,
5 6 7 8 9
	important=6,
	unimportant='foo',
	this=-1,
	notInTable='notInTable'
)
10
from yade.params import table
11 12 13 14 15
print(O.tags['description'])
print('important',table.important)
print('unimportant',table.unimportant)
print(O.tags['params'].replace(',','_'));
print(O.tags['defaultParams'])
16
import time
17
#time.sleep(5)
18
O.engines=[PyRunner(command='time.sleep(.005)',iterPeriod=1)]
19
O.run(1000,True)
20
print('finished')
21 22 23
import sys
sys.stdout.flush()
sys.exit(0)