Closed phisanti closed 3 years ago
Hi, the box size is only read from xtc or dcd files, meaning from simulations. Solvating does not set the box size. What would you like to do with it?
Ah sorry, to calculate the box size you could just do:
mol.coords.max(axis=0) - mol.coords.min(axis=0)
that should give you the total size of the box
That was what I need. Thanks!
I have built a water box following the example. When I plot the image, I see all the molecules, so it seems to work fine. However, I would like to print the output of the full solvated box, but the output I got is an array [0, 0, 0]. Therefore, I was wondering how to properly calculate the box size containing the system. Here is a snippet of my code:
Output:
box dimensions, x: 0.0, y: 0.0, z: 0.0