The box edge length that is calculated for our final target volume needs to be divided by the reference distance used in hoomd_simulation.py and hoomd_snapshot.py. The best way might be to just use the same method used in those mBuild files
if auto_scale:
ref_mass = max([atom.mass for atom in structure.atoms])
pair_coeffs = list(set((atom.type,
atom.epsilon,
atom.sigma) for atom in structure.atoms))
ref_energy = max(pair_coeffs, key=operator.itemgetter(1))[1]
ref_distance = max(pair_coeffs, key=operator.itemgetter(2))[2]
The box edge length that is calculated for our final target volume needs to be divided by the reference distance used in
hoomd_simulation.py
andhoomd_snapshot.py
. The best way might be to just use the same method used in those mBuild files