Decrease bond strengths to make a model collapse
Hello all,
I am trying to setup a simple simulation to evaluate the geometry of a slope after collapse. I have applied gravity to the model, let the particles settle and removed some elements to create the slope. What I want to do now is to decrease the bond strengths in order to make the slope collapse.
There is no any external force that makes the slope collapse, I just want to do it in an "artificial" way to evaluate the geometry. I am using a CohFrictMat and I am not sure how to do it. I have read in a paper that they do it by imposing lower tensile strengths to all bonds in the system, allowing bonds to break where the gravitationally induced stress exceeded the bond strength. Do I have to loop over O.interactions?
Thanks in advance.
Here is my code so far:
#!/usr/bin/python
from yade import pack,utils,plot
pred = pack.inAlignedB
#create material
soil1 = CohFrictMat(
#color=(1,0,0) ----red color
#soil1 = FrictMat(
O.materials.
O.bodies.
O.bodies.
O.bodies.
O.bodies.
O.bodies.
spheres=
spheres=
spheres.
# simulation loop
O.engines=[
ForceResetter(
def checkUnbalanced():
if utils.unbalance
O.pause()
for b in O.bodies:
p = b.state.pos
if nx*p[0]
def addPlotData():
# each item is given a names, by which it can be the unsed in plot.plot
# define how to plot data: 'i' (step number) on the x-axis, unbalanced force
# on the left y-axis, all energies on the right y-axis
# (O.energy.keys is function which will be called to get all defined energies)
# None separates left and right y-axis
plot.plots=
# show the plot on the screen, and update while the simulation runs
plot.plot()
# set timestep to a fraction of the critical timestep
# the fraction is very small, so that the simulation is not too fast
# and the motion can be observed
O.dt=.5e-
# save the simulation, so that it can be reloaded later, for experimentation
O.saveTmp()
from yade import qt
qt.View()
#O.run()
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jérôme Duriez
- Solved:
- Last query:
- Last reply: