Software for quasi-static simulations of polycrystalline and composite materials, and lattice structures