I am developing user material subroutines for anisotropic damage in orthotropic material in ANSYS APDL. So I would like to delete the elements when the damage of an element reaches a maximum value or full damage. I am storing the time history of the damage variables as internal state variables. I know the EKILL command is used to kill the element when the element reaches a certain condition. But I don't know how to access the state variables of each element during the solution phase from the APDL script and execute the EKILL command when the state variable i.e., the damage reaches a maximum value. So it would be really helpful if someone can help me with this.