How to set fixed boundary conditions during analysis

I'd like to set fixed boundary conditions on some element, but not at the beginning of simulation, but  during the process. 

I want to impose fixed boundary conditions on these failed element during analysis,

however, the *boundary keyword has the format:

*Boundary, Fixed or *Boundary, USER

element set, degree of freedom constrained

I can't use *Boundary or DISP Subroutine because i don't know the failed element priori. 

 

If there any way I can set fixed boundary conditions during analysis based on element status (failed or not)