i want to build an smps flyback power supply.i found information about flyback topology but i can't find a formula to calculate the transfomer.the only i found is that n1/n2 but if i make 3 turns for primary i think that is going to blow the mosfet. it must be a formula that have frequency L of primary and voltage.also i would like to ask if there is a simulator program for smps.