This is an ideal simulation of a differential circuit breaker. I want to simulate a fault condition in a household power net, in which if everything is OK the current on Live is equal with current on Neutral. Ground fault condition is simulated by the switch on the right side through resistance (no matter the value it has).
There is an oscillation in the second half of sinusoid that I don't understand but I guess without that, when Ground faults appear the relays don't switch off.
Any comments and suggestions are welcome.
Anyway after 3 weeks of studying it, I'm happy with this design. Remember it's ideal not real. :)