The connection between grid nodes disappear
Hello,
I am trying to write a script to place a geogrid in soil packing. My script is based on the example :
trunk/examples/
The problem is in the combination of the script modelling soil packing and the script for geogrid. After combining them, the connections between the gridNodes disappear.
Anyone can help me to find the bugs in this script?
This is my script:
from yade import pack,geom,qt
from yade.gridpfacet import *
rad,gap=.25,.005
#Parameters, which will be passed into spheres and facets creators
kw={'material':0}
kwBoxes=
kwMeshes=
O.materials.
O.materials.
O.engines=[
ForceResetter(),
InsertionSortC
Bo1_GridConne
]),
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
NewtonIntegrat
]
### Parameters of a rectangular grid ###
L=11 #length [m]
l=11 #width [m]
nbL=11 #number of nodes for the length [#]
nbl=11 #number of nodes for the width [#]
r=L/100. #radius
color=[
nodesIds=[]
#Create all nodes first :
for i in range(0,nbL):
for j in range(0,nbl):
nodesIds.append( O.bodies.
#Create connection between the nodes
for i in range(0,
for j in range(i+
dist=
if(dist<
O.bodies.append( gridConnection(
#Create packing
O.bodies.
O.bodies.
O.bodies.
O.bodies.
O.bodies.
O.bodies.
#Set a fixed node
O.bodies[
O.dt=1e-05
O.saveTmp()
O.timingEnabled
O.run(10000,True)
from yade import timing
timing.stats()
qt.View()
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Bruno Chareyre
- Solved:
- Last query:
- Last reply: