← Back to team overview

yade-dev team mailing list archive

[Bug 1759633] Re: The Code is crashed when there are two balls with same position and radius

 

Hello, Sorry to reply later.
I use a simple example given by Jan.
This is OK:
O.periodic = True
O.cell.setBox(6,10,14)
b1 = sphere((0,0,0),1,color=(1,0,0))
b2 = sphere((2,4,4),1,color=(0,1,0))
b3 = sphere((4,8,8),1,color=(0,1,1))
O.bodies.append((b1,b2,b3))
O.step()
b3.state.vel = 5e-5*Vector3(-1.1,-2,-2.2)
#
from yade import qt
qt.View()
O.run()

This code is wrong:
O.periodic = True
O.cell.setBox(6,10,14)
b1 = sphere((0,0,0),1,color=(1,0,0))
b2 = sphere((2,4,4),1,color=(0,1,0))
b3 = sphere((4,8,8),1,color=(0,1,1))
b4 = sphere((4,8,8),1,color=(0,1,1))
O.bodies.append((b1,b2,b3,b4))
O.step()
b3.state.vel = 5e-5*Vector3(-1.1,-2,-2.2)
#
from yade import qt
qt.View()
O.run()

Yours,
Meng

-- 
You received this bug notification because you are a member of Yade
developers, which is subscribed to Yade.
https://bugs.launchpad.net/bugs/1759633

Title:
  The Code is crashed when there are two balls with same position and
  radius

Status in Yade:
  New

Bug description:
  I just find that if there are two balls with the same position and
  radius and the program is crashed without any information.

To manage notifications about this bug go to:
https://bugs.launchpad.net/yade/+bug/1759633/+subscriptions


References