Computational models for the seismic response of damaging structures