cuboid simulation box

Feb 2, 2017 at 1:38am
I want to create a cuboid simulation box with lattice points at a regular lattice spacing and store the lattice point coordinates in an three dimensional array. I am a beginner in cpp and simulation so it would be helpful if you explain the code as well.
Feb 2, 2017 at 4:40pm
Do you want to do the graphics or just calculate the vertices?
Feb 3, 2017 at 6:05am
Ok this is what I am planning to do.

I am doing a Monte Carlo simulation of monomer interaction and study its growth into a polymer.
The simulation box with lattice points would be created and monomers would be randomly placed on those points. Metropolis algorithm is used to validate the interactions.

So I need to calculate the vertices and then use those co-ordinates to create a PDB file for visualizing the process in VMD.
Feb 3, 2017 at 3:33pm
Let me guess:
VMD = http://www.ks.uiuc.edu/Research/vmd/
PDB = http://www.wwpdb.org/documentation/file-format-content/format33/v3.3.html

From "regular lattice spacing" follows that one can compute every lattice point from one + indices + axes.

You probably don't need all the points, just the location of your "monomers" and even that can be stored as index of the lattice point, i.e tuple of three integral values.
Topic archived. No new replies allowed.