Closed pixelzoom closed 6 months ago
I checked whether recent changes to the flux model in https://github.com/phetsims/faradays-electromagnetic-lab/issues/166#issuecomment-2121163805 might have cleared this up, but no -- the problem persists.
With 2 loops and 100% loop area, 10V battery....
When electromagnet.positionProperty
and pickupCoil.positionProperty
are both at (500,375), flux is ~570816.
Moving electromagnet.positionProperty
down 1 unit to (500,376) results in a huge drop in flux to -796 (negative!)
Moving electromagnet.positionProperty
up 1 unit to (500,374) results in the same flux of -796.
Running a similar experiment with the AC power supply shows similar behavior.
I don't understand this drop in flux, or why it only occurs with 100% loop area.
Discussing with @arouinfar, I hypothesized that this problem is manifesting because of a relationship between the diameters of the 2 coils.
electromagnet.coil.loopAreaProperty = 7854
, loopRadiusProperty
= 50.00005846084074, diameter = ~100.
With loop area is 100%, pickupCoil.coil.loopAreaProperty = 70685
, loopRadiusProperty
= 149.9991143470562
, diameter = ~300.
So the pickup coil has ~3x the diameter of the electromagnet coil. When the electromagnet is exactly in the center of the pickup coil, the areas about and below the magnet cancel each other out.
https://github.com/phetsims/faradays-electromagnetic-lab/commit/a7a918c32c388eb51babd4c9ed266be638872654 also fixes this problem, see description in https://github.com/phetsims/faradays-electromagnetic-lab/issues/166#issuecomment-2125799912. I can no longer reproduce using the steps in https://github.com/phetsims/faradays-electromagnetic-lab/issues/164#issuecomment-2123045790.
@arouinfar please confirm, close if OK.
I'm no longer able to reproduce the bug on main. Closing!
Related to https://github.com/phetsims/faradays-electromagnetic-lab/issues/156 ...
On 5/1/24, @arouinfar and I discovered a problem that seems related to the new flux model. In the scenario shown in the screenshot below, the light bulb does not light, and the voltmeter needle does not move. This only happens when the pickup coil has 100% loop area (number of loops doesn't matter) and the electromagnet is slightly above or below the loop's center.
I thought this might be related to the
lightsWhenCurrentChangesDirectionProperty
, which for the Transformer prevents the light bulb from lighting when the AC power supply changes direction. In Transformer.ts:Removing this seems to fix the problem for the light bulb. But it does not explain why the voltmeter is affected.