Model analyzes shape-memory alloys for use in earthquake-resistant structures