Changed Sim constructor

now gets passed shape function and constitutive model