Multiple Geogrids
Dear all,
I'm modelling the interaction of different particle layers separeted by geogrids. However, I came to this practical implementation of multiple geogrids, I couldn't find in the examples and I am facing troubles to create the grid layers in the conventional way:
from yade import pack,geom,qt
from yade.gridpfacet import *
from pylab import *
O.engines=[
ForceResetter(),
InsertionSortC
Bo1_Sphere_
]),
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
NewtonIntegrat
]
O.materials.
O.materials.
O.materials.
### Parameters of a rectangular grid 1 ###
L=0.1 #length [m]
l=0.05 #width [m]
nbL=10 #number of nodes for the length [#]
nbl=5 #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.
### Parameters of a rectangular grid 2 ###
L2=0.1 #length [m]
l2=0.05 #width [m]
nbL2=10 #number of nodes for the length [#]
nbl2=5 #number of nodes for the width [#]
r2=L2/100. #radius
color2=
nodesIds2=[]
#Create all nodes first :
for q in range(0,nbL):
for u in range(0,nbl):
nodesIds2.append( O.bodies.
#Create connection between the nodes
for q in range(0,
for u in range(q+
dist2=
if(dist2<
O.bodies.append( gridConnection(
#O.bodies.
mn,mx=Vector3(
sp=pack.
sp.makeCloud(
sp.toSimulation
mn1,mx1=
spp=pack.
spp.makeCloud(
spp.toSimulatio
O.bodies.
O.dt=1e-05
O.saveTmp()
qt.View()
Do you have any idea of how to implement it? The issue is on creating the connection:
if(dist2<
O.bodies.append( gridConnection(
Thank you in advance,
Luis
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Luis Barbosa
- Solved:
- Last query:
- Last reply: