create a sample with no voids between particles,so it seems like a solid
Hello to everyone,
i have this code, and i want to simulate the cutting process of a rock sample.
Above is my code, which generate a sample with specific characteristics and a
cutter (geom.facetBox).
When i put my data in paraview, i see that are many gaps between spheres. It seems like my sample,
is more like a gas rather as a rock sample.
I want to simulate the fracture pattern and the chip formation during cutting, byt i cant!!!
Question: how can i create a sample with no voids? I try periodic triaxial test byt there are voids too.
My code is here:
#!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import division
from yade import plot,pack,timing, utils, geom
import time, sys, os, copy
#import matplotlib
#matplotlib.
#matplotlib.
# default parameters or from table
readParamsFromT
young=24e9, #kn
poisson=.2, #ks
sigmaT=3.5e6,
frictionAngle=
epsCrackOnset=
relDuctility=30,
intRadius=1.5,
dtSafety=.8,
damping=0.4,
specimenLength=1,
sphereRadius=
# isotropic confinement (should be negative)
isoPrestress=0,
)
from yade.params.table import *
if 'description' in O.tags.keys(): O.tags[
#material properties
concreteId=
relDuctili
sps=SpherePack()
sp=pack.
sp.toSimulation
bx = geom.facetBox(
O.bodies.append(bx)
for facet in bx:
facet.
facet.
#bx.state.
#bx.state.vel = (10.0,0,0)
O.dt=dtSafety*
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
NewtonIntegrat
VTKRecorder
CpmStateUpd
PyRunner(
PyRunner(
]
def addPlotData():
global Fx
Fx = 0.0
Fx = abs(sum(
plot.addData(i = O.iter , Fx=Fx)
plot.
tensCks=
def recorder():
global tensCks, shearCks
tensCks=0
shearCks=0
for o in O.bodies:
if isinstance(
yade.
plot.
plot.plots=
plot.plot()
Thank you!!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- kalogeropoulos
- Solved:
- Last query:
- Last reply: