Operations with imported particles from geometry file

Asked by Nikita Tropin

Hello,

I'm trying to use a specific packing in ESyS simulation, so I created a geometry file with the list of particles with no bonds. Is it possible first to import these particles to ESyS and then apply to them ConnectionFinder to create bonds? Or is it possible to use imported particles in some Runnables as a list?

When I try to do it with getParticleList(), like that:

sim.readGeometry("../geometry.txt")
geoRandomBlock_particles = sim.getParticleList()

sim.createConnections(
  ConnectionFinder(
    maxDist = 0.005,
    bondTag = 1,
    pList = geoRandomBlock_particles
  )
)

I have an error:

    pList = geoRandomBlock_particles
TypeError: No registered converter was able to extract a C++ reference to type esys::lsm::SimpleSpherePy from this Python object of type RotSphere

Question information

Language:
English Edit question
Status:
Answered
For:
ESyS-Particle Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Dion Weatherley (d-weatherley) said :
#1

Hi Nikita,

It is not possible to combine readGeometry and ConnectionFinder. ConnectionFinder is only designed to work with geometries created in-simulation, via RandomBoxPacker for example.

With GenGeo one should be able to prescribe the locations of particles by explicitly adding these to the MNTable via the insert() function. Once all particles are inserted, use MNTable3D.generateBonds() before writing out the geometry file.

Cheers,

Dion

Revision history for this message
Kahlil Fredrick Cui (physicsman98) said :
#2

Hello!

I have a similar case.
I've noticed that bonds in gengeo only last for the very first iteration. they all disappear during the following iterations.
Maybe I am implementing it the wrong way?
How do I set bonds for subsequent iterations for a geometry constructed in gengeo?

Kahlil

Can you help with this problem?

Provide an answer of your own, or ask Nikita Tropin for more information if necessary.

To post a message you must log in.