A constitutive model for structural analysis of fusion magnets