add 3d input file with adaptivity