🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

The error code in edempy

User: "Fatemeh Hosseini_22198"
Altair Community Member
Updated by Fatemeh Hosseini_22198

Hello every one,
can you guide me about this error in python?
I used this code for other simulations before, and it worked but now there is one error.

 

Regards,
Fatemeh

 

 

ID_particle=deck.timestep[t].collision.surfGeom.getFirstIds()

File ~\AppData\Roaming\Python\Python39\site-packages\edempy\timestep\SingleCollision.py:300 in getFirstIds
return self.getProperty('first/ids')

File ~\AppData\Roaming\Python\Python39\site-packages\edempy\timestep\SingleCollision.py:82 in getProperty
result = f[self.__collisionPath + '/'+ option + '/'][:]

File h5py\_objects.pyx:54 in h5py._objects.with_phil.wrapper

File h5py\_objects.pyx:55 in h5py._objects.with_phil.wrapper

File C:\ProgramData\Anaconda3\lib\site-packages\h5py\_hl\group.py:305 in __getitem__
oid = h5o.open(self.id, self._e(name), lapl=self._lapl)

File h5py\_objects.pyx:54 in h5py._objects.with_phil.wrapper

File h5py\_objects.pyx:55 in h5py._objects.with_phil.wrapper

File h5py\h5o.pyx:190 in h5py.h5o.open

KeyError: 'Unable to open object (component not found)'

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "Stefan Pantaleev_21979"
    Altair Employee
    Accepted Answer
    Updated by Stefan Pantaleev_21979

    Hi Fatemeh,

    It looks like edempy is trying to access the collisions in the timestep with an index t but it is not finding them. This may be because no new collisions have occured between the timesteps indexed t and t-1 (i.e. deck is empty or bed is static at this time) or because the simulation has been run with the "Track collisions" optons in the EDEM solver disabled so the collision data is not being saved.

    This error may also have been caused by a mismatch between EDEM and edempy versions. If this is the case you should receive a warning in the python console output saying that unexpected bahaviour may occur.

    Best regards,

    Stefan