tshear2-init.py - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
 (HTM) git clone git://src.adamsgaard.dk/sphere
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
       tshear2-init.py (338B)
       ---
            1 #!/usr/bin/env python
            2 import sphere
            3 
            4 sim = sphere.sim('init2', np=10000)
            5 sim.generateRadii(psd='uni', mean=0.02, variance=0.01)
            6 sim.initRandomGridPos([12, 12, 1000])
            7 sim.initTemporal(10.0, file_dt=0.05, epsilon=0.07)
            8 sim.gamma_n[0] = 1000.0
            9 sim.gamma_wn[0] = 1000.0
           10 sim.periodicBoundariesXY()
           11 sim.g[2] = -9.81
           12 sim.run()
           13 sim.writeVTKall()