Segmentation fault (core dumped) Engines
Dear all,
I am very new to yade so I only know a few things. Probably my problem is in principle but unfortunately I cannot locate the problem itself more accurately. I am just suggesting that it is in the the FIRST engine. usually it occurs about 6000-7000 iters. I am using:
Welcome to Yade 2020.01a
Using python version: 3.8.5 (default, Jul 28 2020, 12:59:40)
[GCC 9.3.0]
I would like to ask for help to somehow track the problem that occurs the segmentation fault and if it is located then tell me what did I do wrong.
Thank you very much in advance!
from yade import pack, plot, qt
import itertools
qt.View()
#Steel:
EA = 2.1e5 #Young' module of steel
nuA = .3 #Poisson ratio of steel
densA = 7850 #Density of steel
frictAngA = .52 #Friction half cone angle of steel
#Let's define and add the materials to the models:
steel = O.materials.
#Creating bodies:
channel = O.bodies.
trash = O.bodies.
lamella1 = O.bodies.
lamella2 = O.bodies.
lamella3 = O.bodies.
vane = O.bodies.
#Creating clumps:
cl=pack.
cl.makeClumpClo
cl.toSimulation()
#Defining engines and recorders: (I think the problem is here)
O.engines=[
ForceResetter(),
InsertionSor
InteractionLoop(
#handle sphere+sphere and facet+sphere collisions
[
[
[
),
NewtonIntegr
#Limit the quantity of spheres:
DomainLimite
# call the checkUnbalanced function (defined below) every 2 seconds
PyRunner(
# call the addPlotData function every 100 steps
PyRunner(
]
O.dt=.5*
def move():
if O.iter > 2000 :
O.engines = O.engines + [TranslationEng
def stop():
if O.iter > 4200 :
O.engines = O.engines + [TranslationEng
O.trackEnergy=True
# if the unbalanced forces goes below .00001, the packing is considered stabilized, therefore we stop collected data history and stop
def checkUnbalanced():
if unbalancedForce
O.pause()
plot.
# collect history of data which will be plotted
def addPlotData():
# color particles based on rotation amount
for b in O.bodies:
# rot() gives rotation vector between reference and current position
b.
O.engines=O.engines + [PyRunner(
O.engines=O.engines + [PyRunner(
O.saveTmp()
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jan Stránský
- Solved:
- Last query:
- Last reply: