Bonding particles with the same tag
Hi all,
I have created a particle geometry file externally - for reasons of simplicity I have not specified bond information in my gengeo data file, but I have given each set of particles that I want to bond the same tag. I was hoping to simply provide bond information for each group in ESyS itself. For example, my geometry file starts:
LSMGeometry 1.2
BoundingBox 0.0 0.0 0.0 0.4 0.4 0.4
PeriodicBoundaries 0 0 0
Dimension 3D
BeginParticles
Simple
2649
0.140498417209 0.073768842645 0.333217954691 0.01 0 0
0.145826845507 0.0871316544102 0.328970236057 0.005 1 0
0.146519892077 0.0739052805102 0.341200637518 0.005 2 0
I know that each set of 3 particles with the same tag are physically in contact, so I simply want to connect them all with a stiff bond. Is it possible to direct use createConnectio
I tried retrieving a particle list from the sim, looping through to get a list of particles with the same tag, and then using the connection finder, but I run into a type mismatch between SimpleSphere (specified in the geometry file) and NRotSphere (specified in the simulation), i.e.:
particlelist=
taglist=[]
for particle in particlelist:
taglist.
numclumps=
plist=[]
for clump in range(numclumps):
del plist[:]
# make a list of particles with given clumpID/tag
for particle in particlelist:
if particle.getTag() == clump:
# bond particles together with bondTag = clumpID:
sim.
Connection
maxDist = min(radius_
bondTag = taglist[clump],
pList = plist
)
)
This fails in the call to ConnectionFinder with:
"No registered converter was able to extract a C++ reference to type esys::lsm:
Any advice on how to bond groups of particles with the same tag would be greatly appreciated!
Many thanks in advance, Mark
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- SteffenAbe
- Solved:
- Last query:
- Last reply: