flux.py

Submitted by hulli on Tue, 11/18/2014 - 22:09

Hi all I was wondering, if you could help me out?

I wanted to determine the particle flux using the python script flux.py, which can be found in the LAMMMPS PIZZA directory. Becuase I could not run pizza (I gave up installing toGL) I copied that script and the dump.py script to my /DEM/post folder. Then I let it run by using that comand: python -i flux.py z 0.5 flux.out dump. Note, that "dump" is the inputfile. However, I always end up with the following error:

$ python -i flux.py z 0.5 flux.out dump
200000
read 1 snapshots
1 snapshots selected out of 1
assigned columns: id type x y z vx vy vz fx fy fz radius
dump is already unscaled
Unwrapping dump ...
Traceback (most recent call last):
File "flux.py", line 29, in
d.unwrap()
File "/home/hulli/CFDEM/hulli-PUBLIC-2.3.0/run/bed_70_30/DEM/post/dump.py", line 598, in unwrap
ix = self.names["ix"]
KeyError: 'ix'
>>>

I know the error ists somewhere in the dump.py file. Unfortunately I have no idea how to fix that. What do you think ???
Thank you sooooo much

Daniel Queteschiner | Thu, 11/20/2014 - 09:39

Seems like the script is expecting to find the box image values (ix, iy, iz) of the particles in your dump file but they are not present.

hulli | Fri, 11/28/2014 - 16:42

Hi Daniel,

thank you very much I will specify the image values in my dump file and give it a try. Thank you very much for your help!!!