2 vertex spherocylinder definition not supported. #310
-
Dear GSD users, I am very new to .gsd file format for logging my HOOMD generated trajectories. I am trying to simulate hard particle spherocylinders using SpheroPolyhedron shape definition in HOOMD. I can define spherocylinders only with two vertices for the lower and upper convex hull and the radius using sweep_radius, as also mentioned in HOOMD documentation. But when I try to save the shape attributes in a GSD file using a logger. logger = hoomd.logging.Logger() It gives me an error about the default number of vertices for the shape SpheroPolyhedron is four not two. Also, OVITO visualisation tool cannot recognise anything with two vertices. Looking forward for the community to help me visualise my results. Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
What gives you an error? What is the complete error message? What is the complete (and minimal) script that generates this error message? All questions regarding OVITO should be directed to OVITO's support channels. |
Beta Was this translation helpful? Give feedback.
-
The error is generated here: https://github.com/glotzerlab/hoomd-blue/blob/4bc6e20d15b83d2a1bf509351c217dc375f7a5e8/hoomd/hpmc/ShapeSpheropolyhedron.h#L195 You are welcome to submit a pull request that removes the error so that two vertex polyhedra can be converted to |
Beta Was this translation helpful? Give feedback.
The error is generated here: https://github.com/glotzerlab/hoomd-blue/blob/4bc6e20d15b83d2a1bf509351c217dc375f7a5e8/hoomd/hpmc/ShapeSpheropolyhedron.h#L195
You are welcome to submit a pull request that removes the error so that two vertex polyhedra can be converted to
type_shapes
. In the meantime, you can work around the issue by including a third vertex on the line connecting the other two (e.g. at the origin).