How to model a harmonic drive

I am really interested in these devices, how would you go about modelling one? The flexspline is a deformable part that appears very difficult to traditionally use in an assembly. Any ideas?