problem with forming bonds
I've created a raft of particles ('by hand', so to speak) and am having trouble bonding them. My code segment is below
#instantiate a simulation object
#and initialise the neighbour search algorithm:
sim = LsmMpi(
sim.initNeighbo
# set values of simulation variables. Units are mks
numIceParticlesx = 60
numIceParticlesz = 6
particleRad = 0.5
particleRho = 900.0
particleMass = 4*pi*particleRa
normalStiffness = 9000000.0 # reduced by a factor of 1000 to increase timestep
poisRatio = 0.25
shearStrength = 500 # reduced by a factor of 1000 to give correct displacement at bond breakage
tanPhi = 1
kinFriction = 0.4
statFriction = 0.6
numsteps = 50000 # 500000
# stepsize = 0.2*particleRad
timestep = 0.001
#set the number of timesteps and timestep increment:
sim.setNumTimeS
sim.setTimeStep
#specify the spatial domain for the simulation:
domain = BoundingBox(
sim.setSpatialD
# add the particles to the domain:
for countz in range(numIcePar
zDist = -0.5*1.73205*countz
for countx in range(numIcePar
xDist = -1.0*countx +(2*(countz/
yDist = 0.001*(
particle_
particle=
particle.
sim.
# create bonds between particles separated by less than the specified maxDist
sim.createConne
# create rotational elastic-brittle bonds between particles
pp_bonds = sim.createInter
The problem appears to be that I'm not using the correct label for 'pList' when I call ConnectionFinder.
In general, where do I find the source code which gives the syntax for createConnections, ConnectionFinder and createInteracti
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Dion Weatherley
- Solved:
- Last query:
- Last reply: