FEM 3D simulator with aggregated PBC and typedef double modified.