segmentation fault (core dumped)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Yade |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi I am trying to run this code, which is an example given in the package. But every time i try to execute this file, i get segmentation fault error. I am using Ubuntu 16.04 LTS and Yade 2016.06a
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
To run this script you need to have all 10 text files from https:/
in the same folder as you run this script in console!
This script shows how to use Law2_ScGeom_
linear model by setting "model_type"
"""
model_type = 1 #1=Hertz model with capillary forces, else linear model with capillary model
#some parameters:
shear_modulus = 1e5
poisson_ratio = 0.3
young_modulus = 2*shear_
friction = 0.5
angle = atan(friction)
local_damping = 0.01
viscous_normal = 0.021
viscous_shear = 0.8*viscous_normal
lowercorner = Vector3(0,0,0)
uppercorner = Vector3(
#creating a material (FrictMat):
id_SphereMat=
SphereMat=
#generate particles:
sp=pack.
sp.makeCloud(
O.bodies.
#generate boundary:
O.bodies.
#define engines:
if model_type == 1:#hertz model with capillary forces
O.engines=[
ForceResetter(),
InsertionSort
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
Law2_
NewtonIntegra
]
ContactModel.
ContactModel.
ContactModel.
else:
O.engines=[
ForceResetter(),
InsertionSort
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
Law2_
NewtonIntegra
]
#set time step and run simulation:
O.dt=0.
from yade import qt
qt.View()
print('Press PLAY button')
#O.run(10000,True)
looking forward to hear soon..!!
Cheers
Amiya
Hi Amiya,
thanks for the report. We will try to find the problem, but first we need a
MWE, a mininal WORKING script. The one you provided ends with SyntaxError
because of the first "else" statement.
You can attach files to bug reports, so if you attached the script directly
as a file, it would be perfect
Thanks
Jan