4. Topology and structure file
The conformational setup, bond network, molecules, particle types, names,
masses, charges, and velocities are specified in the structure/topology input
file in HDF5 format. The file is structured as a flag collection of datasets
attached to the root / group.
The HyMD-tutorial has multiple examples of structure files for various levels of complexity.
4.1. Required datasets
- /coordinates:
arrayshape [T,N,D,]datatype[float32orfloat64]The shape represents
Tnumber of frames,Nnumber of particles, inDdimensions. The data type may be either four or eight byte reals. If multiple frames are providedT > 1, then the last frame is used as starting point for the new simulation by default.- /indices:
arrayshape [N,]datatype[int32orint64]The shape represents one particle index per
Nparticles. The data type may be either 32 or 64 bit integers.- /names:
arrayshape [N,]datatype[string(lengthbetween1and16)]The shape represents one particle name per
Nparticles. The datatype may be a string of length=<16.
4.2. Optional datasets
- /velocities:
arrayshape [T,N,D,]datatype[float32orfloat64]The shape represents
Tnumber of frames,Nnumber of particles, inDdimensions. The data type may be either four or eight byte reals. If multiple frames are providedT > 1, then the last frame is used as starting point for the new simulation by default.- /types:
arrayshape [N,]datatype[int32orint64]The shape represents one particle type index per
Nparticles. The data type may be either 32 or 64 bit integers.- /molecules:
arrayshape [N,]datatype[int32orint64]The shape represents one molecule index per
Nparticles. The data type may be either 32 or 64 bit integers.- /bonds:
arrayshape [N,B,]datatype[int32orint64]The shape represents
Bbond specifications (indices of different particles) perNparticles. The data type may be either 32 or 64 bit integers.- /charge:
arrayshape [N,]datatype[float32orfloat64]The shape represents one particle charge per
Nparticles. The data type may be either four or eight byte reals.- /box:
arrayshape [3,]datatype[float32orfloat64]The shape represents the initial box dimensions in Cartesian coordinates.