yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #13583
[Question #403669]: Uniaxial compression simulation disappeared suddenly in Yade
New question #403669 on Yade:
https://answers.launchpad.net/yade/+question/403669
Hi,
I am a beginning learner of Yade, I performed a uniaxial compression in Yade, but this simulation disappeared suddenly. Can you help me to solve this peoblem?
Thanks in advance.
My codes is as followings:
from yade import pack
O.periodic=True
O.cell.refSize=(0.05,0.05,0.15)
#specify materials for wall & particles
spheres=O.materials.append(CohFrictMat(young=5.98e7,density=2.7e3,poisson=0.3,frictionAngle=0.6))
wallMat=O.materials.append(CohFrictMat(young=2.06e17,density=7.9e3,poisson=0.29,frictionAngle=0.8))
O.bodies.append(
pack.regularHexa(pack.inAlignedBox((0,0,0),(0.05,0.05,0.15)),radius=0.001,gap=0,color=(0,1,0),material=spheres)
)
#creat upper & lower platens
from yade import utils
O.bodies.append(utils.geom.facetBox((0.025,0.025,0.15),(0.055,0.055,0),wallMask=20,material=wallMat,color=(1,0,1),dynamic=1))
O.bodies.append(utils.geom.facetBox((0.025,0.025,0),(0.055,0.055,0),wallMask=21,material=wallMat,color=(0,0,1),dynamic=0,fixed=1))
#Engines
O.engines=[
ForceResetter(),
InsertionSortCollider([Bo1_Sphere_Aabb(),Bo1_Box_Aabb()]),
InteractionLoop(
[Ig2_Sphere_Sphere_ScGeom6D(),Ig2_Box_Sphere_ScGeom6D()],
[Ip2_CohFrictMat_CohFrictMat_CohFrictPhys(setCohesionNow=True,setCohesionOnNewContacts=False),Ip2_FrictMat_FrictMat_FrictPhys()],
[Law2_ScGeom6D_CohFrictPhys_CohesionMoment()]
),
TranslationEngine(translationAxis=(0,0,-1),velocity=(0,0,0.005),id=20),
NewtonIntegrator(damping=0.2,gravity=[0,0,-9.81]),
VTKRecorder(fileName='post/comp-',recorders=['all'],iterPeriod=100)
]
#set a suitable timestep for this simulation
O.dt=0.01*PWaveTimeStep()
#3D view & controller
from yade import qt
qt.View()
qt.Controller()
O.run()
And here is the error:
huihuang@huihuang-Presario-CQ42-Notebook-PC:~$ cd Desktop/test
huihuang@huihuang-Presario-CQ42-Notebook-PC:~/Desktop/test$ yade compression_test.py
Welcome to Yade 1.20.0
TCP python prompt on localhost:9002, auth cookie `ykasde'
XMLRPC info provider on http://localhost:21002
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
Running script compression_test.py
WARN /build/yade-KKgSmd/yade-1.20.0/core/Cell.hpp:115 setRefSize: Setting Cell.refSize is deprecated, use Cell.setBox(...) instead.
Traceback (most recent call last):
File "/usr/bin/yade", line 182, in runScript
execfile(script,globals())
File "compression_test.py", line 31, in <module>
TranslationEngine(translationAxis=(0,0,-1),velocity=(0,0,0.005),id=20),
TypeError: No registered converter was able to produce a C++ rvalue of type double from this Python object of type tuple
[[ ^L clears screen, ^U kills line. F12 controller, F11 3d view (use h-key for showing help), F10 both, F9 generator, F8 plot. ]]
[0;34mYade [[1;34m1[0;34m]: [0mXmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
python: /build/yade-KKgSmd/yade-1.20.0/pkg/common/InsertionSortCollider.cpp:493: bool InsertionSortCollider::spatialOverlapPeri(Body::id_t, Body::id_t, Scene*, Vector3i&) const: Assertion `maxima[3*id2+axis]-minima[3*id2+axis]<.99*dim' failed.
Aborted (core dumped)
--
You received this question notification because your team yade-users is
an answer contact for Yade.