Loading two files
I want to load two different files one is of sphere packing and second one is geogrid. Then i again want to load same sphere packing so that my system would be - packing then geogrid then packing. Then i want to deposit them under gravity.
My problem is only the latest one uploads rest do not. How to make it up?
Here is my script-
from yade import pack,geom,qt
from yade.gridpfacet import *
from yade import utils
from pylab import *
from pprint import pprint
from yade import plot
from builtins import range
from yade import export
#Load packing from previous script
O.load(
sp = SpherePack()
sp.fromSimulation()
sp = pack.SpherePack
print (len(O.bodies))
#load grid grid.yade
O.load('grid.yade')
#again load packing
O.load(
E=5e6
Poisson=0.3
Density=2650
v=0.05
rm=0.0019
O.engines=[
ForceResetter(),
InsertionSort
InteractionLoop([
Ig2_
Ig2_
Ig2_
Ig2_
],
[
Ip2_
Ip2_
],
[
Law2_
Law2_
Law2_
Law2_
]
),
GlobalStiffne
NewtonIntegra
PyRunner(
]
O.materials.append( CohFrictMat( young=5e6,
O.materials.append( FrictMat( young=E,
#Box
O.bodies.
def checkUnbalanced():
print('unbalanced force:', unbalancedForce(), 'porosity', utils.porosity())
if unbalancedForce() > 0.05:
return
O.pause()
qt.Controller()
qtv = qt.View()
qtr = qt.Renderer()
qtr.bgColor=[1,1,1]
Gl1_Sphere.
O.saveTmp()
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: