add primitive cell and eigenmat