ValueError: cannot convert float to integer
Hi all,
I'm working on my cylinder particle case, however, when I start running my script below, the script points out a ValueError: cannot convert float Nan to integer
** Complete error message **
VaueError Traceback (most recent call last)
/usr/lib/
ValueError" cannot convert float NaN to integer
*****: Terminal shows this error multiple times *****
May someone have experience for this error?
### Scripts ###
from __future__ import print_function
from yade.gridpfacet import *
from yade import pack, plot,qt
import gts, os.path, locale
from numpy import arange
O.periodic=True
#### Parameters ####
# radius of cylinder
cyl_R=0.1
# length of cylinder
cyl_L=0.2
# friction angle
phi=30.0
# Young's modulus
E=1e6
idSteel=
# wallMask=31 >> +/-x, +/-y, -z
#O.bodies.
## create walls
walls=aabbWalls
wallIds=
### periodic boundary for facetBox ###
#O.cell.
### set the velocity for facet ###
#for id in range(6):
# b = O.bodies[id]
# b.state.vel = (0,0,0.5)
### create materials ###
# gridConnections material
gridConMat= O.materials.
# general interactions
cylMat= O.materials.
### create particles/packing: cylinders ###
nodesIds=[]
cylIds=[]
dx=0.5
dy=0.5
nx=5
ny=5
nz=1
dz=0
for i in range(0,nx):
x=0+i*dx
for j in range(0,ny):
y=0+j*dy
for k in range(0,nz):
z=0+k*dz
cylinder(
color=[
#O.bodies.
move = TranslationEngi
### Engines ###
O.engines = [
ForceResetter(),
Ig2_
Ig2_
Ig2_
Ig2_
Ig2_
],
[
# internal cylinder physics
# physics for external interactions, i.e., cylinder-cylinder
],
[
Law2_
Law2_
]
),
GlobalStiffnes
move
#TranslationEn
#PyRunner(
]
O.dt=0.
#### For viewing ####
qt.View()
#### Allows to reload the simulation ####
O.saveTmp()
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: