def generate_vconf(self):
        # generate v.conf
        m = self.m

        mesh = """DIM = %s
        ATOM_NAME = %s
        MP = %s
        FORCE_CONSTANTS = READ
        MESH_SYMMETRY = .FALSE.
        GROUP_VELOCITY=.TRUE.
        PRIMITIVE_AXIS = %s
        """ % (m.dim, ' '.join(m.elements), ' '.join(map(str, m.kpoints)),
               toString(m.premitive.flatten()))
        mesh = mesh.replace(r'^\s+', '')
        write(mesh, 'v.conf')