m3g / packmol

Packmol - Initial configurations for molecular dynamics simulations
http://m3g.github.io/packmol
MIT License
214 stars 48 forks source link

<< Filling atom ring from the center >> #55

Closed icamps closed 7 months ago

icamps commented 8 months ago

Hello,

I am trying to add water molecules to a nanoring made of Si.

When using 300 water molecules, they are always distributed outside the ring. Only when I add 500, will there be water molecules inside the ring.

How can I force PACKMOL to always start adding water molecules from the center or inside the nanoring?

Regards,

Camps

lmiq commented 8 months ago

You have to add some constraint to the water molecules such that the are in the region you want. Without further information, I would guess that you need a inside cylinder constraint (see constraints of type 9 in https://m3g.github.io/packmol/userguide.shtml).

icamps commented 8 months ago

As my system is a ring, won't the sphere be the better constraint, thinking on a 3D distribution of water molecules?

lmiq commented 8 months ago

I don't know... That depends on what you need.