Modelling Diode current with ODE

247 Views Asked by At

I want to write ODE system for simulating following electrical circuit: enter image description here

At each small step dt i just do euler integration. I only know ODE for leaky capacitor:

Vc = Vc + dt * (Ic - Vc*gLeak)/Cmembrane

Inductor formula itself is V = L * dI/dt. But i dont know ODE for diode with inductor in series. Could you help me a bit?