Development of a finite element method for light activated polymers