Pulsation models of O-rich and C-rich long period variables