Erreur de segmentation (core dumped)
Hi everyone,
I'm trying to determine the uniaxial strain of the beam in 3-points bending test.
When i execute my code i obtain this error message "Erreur de segmentation (core dumped)".
This is a part of my code:
from yade import ymport, utils, pack, export
from yade import plot
from pylab import *
import math
#---------------- SIMULATIONS DEFINED HERE (assembly, material, boundary conditions)
#### packing (previously constructed)
PACKING=
OUT=PACKING+
#### Simulation Control
DAMP=0.4 # numerical damping
saveData=100 # data record interval
iterMax=200000 # maximum number of iteration (to be adjusted)
saveVTK=10000 # Vtk files record interval
#### Boundary Conditions
strainRate=0.002
#### Material microproperties -> Lac du Bonnet granite (cf. A DEM model for soft and hard rock, Scholtes & Donze, JMPS 2013)
intR=1.5# allows near neighbour interaction and coordination number K=13 (determined with coordinationNum
DENS=4000 # could be adapted to match material density: dens_DEM=
YOUNG=65e9
FRICT=10
ALPHA=0.4
TENS=8e6
COH=160e6
#### material definition
sphereMat = JCFpmMat(
wallMat = JCFpmMat(
for mat in (sphereMat,
O.materials.
#### preprocessing to get dimensions
O.bodies.
dim=utils.
xinf=dim[0][0]
xsup=dim[1][0]
X=xsup-xinf
yinf=dim[0][1]
ysup=dim[1][1]
Y=ysup-yinf
zinf=dim[0][2]
zsup=dim[1][2]
Z=zsup-zinf
r=1
#### preprocessing to get dimensions
R=0
Rmax=0
numSpheres=0.
for o in O.bodies:
if isinstance(
numSpheres+=1
R+=o.
if o.shape.
Rmax=
Rmean=R/numSpheres
O.reset() # all previous lines were for getting dimensions of the packing to create walls at the right positions (below) because walls have to be genrated after spheres for FlowEngine
O.bodies.
O.bodies.
piston=
### packing
beam=O.
### set a color to the spheres
for o in O.bodies:
if isinstance(
o.shape.
crossSectionAre
#---------------- ENGINES DEFINED HERE
#### simulation is defined here (DEM loop, interaction law, servo control, recording, etc...)
##### simulation piston's motion
for i in range(0,
O.bodies[
##### simulation beam's grains motion
O.engines=[
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
UniaxialStrain
]
Best regards
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Yor1 for more information if necessary.