I am supposed to make a project based on this simulation, I am trying to see what is happening:
If I go to the "Transformer" tab, I have an electromagnet and a circuit consisting of a loop of wire and a light bulb. I can change the current source to alternating current to induce current in the circuit and make the light bulb shine. If I increase either the number of loops in the electromagnet or the circuit, the light bulb shines brighter. According to my understanding, the brightness of a light bulb depends on the power which is the product of the current and the voltage. However, a transformer only changes voltage and current proportionally to each other so that power remains constant.
V2 / V1 = N2 / N1 = I1 / I2;
P = IV;
B = unI;
n = N/l;
The Attempt at a Solution
If I use a field meter and a direct current source, I can see that the magnetic field is proportional to the number of loops for the electromagnet. The number of loops shouldn't matter due to the formula of magnetic field using "loop density" instead. Is this simulation incorrect, or is my understanding of this topic really off?