HomeMaterials ScienceShape Memory Alloy: Martensitic Phase Transition

🌀 Shape Memory Alloy: Martensitic Phase Transition

Interactive 3D shape-memory alloy simulator. Bend a Nitinol wire cold in the martensite phase, then heat it past As/Af to watch real shape recovery, or drag the superelastic stress-strain hysteresis loop.

Materials Science2DModerate60 FPS
shape-memory-wire ↗ Open standalone

About the Shape Memory Alloy Simulation

This simulation renders a real 3D wire, bent by hand into a trained "hook" shape, so you can explore both signature behaviours of a shape-memory alloy such as Nitinol (NiTi). In Thermal Shape-Memory mode, drag the handles to bend the wire while it is cold — the martensite phase accommodates the strain by twinning, so it deforms easily and holds the new shape. Raise the temperature slider through the austenite start (As) and finish (Af) temperatures and the crystal lattice reverts to its high-symmetry austenite structure, pulling the wire back to its original trained shape in real time. In Superelastic mode the temperature is held fixed above Af; loading and unloading the wire with the stress slider traces a genuine loading/unloading hysteresis loop on the stress-strain chart, showing large recoverable strain driven by stress alone.

A small inset lattice viewer shows simplified unit cells flipping between two twin variants as the wire is deformed in the cold phase, and settling into a single, higher-symmetry arrangement once the material is heated into austenite — a miniature picture of the same diffusionless, shear-dominated transformation happening throughout the wire.

Frequently Asked Questions

What is a shape-memory alloy and how does it "remember" its shape?

A shape-memory alloy such as Nitinol (NiTi) can be deformed while cold, in its martensite phase, and then return spontaneously to a previously "trained" shape when heated above its transformation temperature. The memory is not chemical — it comes from a diffusionless martensitic transformation between a low-symmetry martensite crystal structure and a high-symmetry austenite structure. Heating drives the lattice back to austenite, which only has one possible high-symmetry shape, so the wire is pulled back to the shape it had the last time it was fully austenitic.

How is deforming martensite different from bending an ordinary metal?

Bending an ordinary metal permanently rearranges its atoms through dislocation slip, which cannot spontaneously undo itself. Cold shape-memory alloy deforms mainly by twinning — martensite variants reorient relative to one another without breaking atomic bonds. Twinning is fully reversible, which is exactly why heating the alloy back into austenite can undo the deformation instead of leaving it permanently bent.

How do I use this simulation?

In Thermal Shape-Memory mode, drag the purple handle spheres to bend the wire while it is cold (below Ms), then move the temperature slider up through As and Af to watch it spring back to its trained hook shape. Switch to Superelastic mode to fix the temperature above Af and drag the stress slider up and down instead — the wire bends under load and springs back as you release stress, tracing a hysteresis loop on the stress-strain chart. Reset restores the trained shape, zero stress and room temperature.

What are Ms, Mf, As and Af, and why is there hysteresis?

Ms and Mf are the martensite start and finish temperatures reached on cooling; As and Af are the austenite start and finish temperatures reached on heating. Because nucleating each phase requires overcoming a small energy barrier, the heating path and cooling path never coincide — Af always sits above Ms. That temperature gap is the transformation hysteresis, and it is a real, measurable property of every shape-memory alloy, not a simulation artefact.

What is superelasticity and how is it different from shape-memory?

Superelasticity happens at a constant temperature above Af, where the alloy starts fully austenitic. Applying stress alone (no temperature change) can force a local, stress-induced martensitic transformation, producing several percent of recoverable strain — far beyond an ordinary metal's roughly 0.2% elastic limit. Because the stress needed to induce martensite on loading is higher than the stress at which it reverts on unloading, the process traces a loading/unloading hysteresis loop instead of a single straight elastic line, even though the material fully recovers its shape at zero stress.

What is Nitinol and why is it the most common shape-memory alloy?

Nitinol is a roughly equiatomic alloy of nickel and titanium (NiTi), discovered at the US Naval Ordnance Laboratory in 1959-1963. It combines a usefully large recoverable strain (up to about 8% superelastic strain), good biocompatibility, and a transformation temperature range that can be tuned close to body temperature by small composition changes, which is why it dominates medical and consumer shape-memory applications over other alloy systems such as CuAlNi or CuZnAl.

What real-world devices use shape-memory alloys?

Self-expanding Nitinol stents are compressed cold onto a catheter, then warm to body temperature once deployed and spring open to hold a blood vessel open. Superelastic Nitinol eyeglass frames and orthodontic archwires bend around an obstruction and spring back instead of staying bent. Thermal shape-memory actuators, couplings, and fire-safety valves use the shape-recovery force generated on heating to do mechanical work without any motor.

What is an active research frontier in shape-memory alloy science?

Researchers are developing high-temperature shape-memory alloys (NiTiHf, NiTiPd) for aerospace actuators that must operate well above Nitinol's normal range, elastocaloric alloys that exploit the latent heat absorbed and released during the stress-induced transformation for solid-state, refrigerant-free cooling and heat pumps, and additively manufactured (3D-printed) NiTi lattices whose transformation behaviour can be tuned locally within a single printed part.

⚙ Under the hood

Bend a Nitinol wire cold in the martensite phase, then heat it past As/Af to watch real shape recovery, or explore the superelastic stress-strain hysteresis loop.

shape-memory-alloynitinolmartensiteaustenitetwinningsuperelasticity

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)