Dear all,

Can someone guide me of how to modify the source code of the following simulation

to change the circular ring/coil to a square, rectangular and triangular ring/coil?

I also intend to have the option to change from closed coil to an opened coil and an addition option to increase the number of number of the coil.

I hope this is not too much to ask.

Edit: Can we also have graph on the flux linkage versus time?