Static lattice energy minimization and lattice dynamics calculations