Ionic model of genetically engineered light sensitive cardiac cell. The electrochemical state of the cell is characterized in terms of nion = 8 ion concentrations, cion = [ceNa, ceK, ceCa, ciNa, ciK, ciCa, cupCa, crelCa], the extracellular and intracellular sodium, potassium, and calcium concentrations, and the sarcoplasmic reticulum calcium uptake and release. Ion concentrations are controlled through ncrt = 12 ionic currents, Icrt = [INa, IbNa, If, INaCa, INaK, IChR2, IK, IbK, ICaL, ICaT, Iup, Irel], where the baseline autorhythmic cell model (26) has been enhanced with the channelrhodopsin current IChR2 (shown in blue). The channels are governed by ngate = 10 gating variables ggate = [gm, gh, gChR2, gy, gx, gdL, gfL, gfCa, gdT, gfT], which may be functions of the current membrane potential ϕ.