You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Unfuddle#248, the notion of "sample point strategy" was introduced, to prevent incorrect induced EMF in a specific situation. Placing the magnet inside the center of the coil, then moving the magnet vertically would induce a large EMF. This was due to the spacing of the sample points, resulting in sample points movng inside/outside the magnet, and causing a big flux change.
By using more sample points, and spacing the sample points based on the height of the magnet, the number of sample points "inside" the magent would be (roughly) constant, and we would avoid most of this flux change.
We handled this correctly in the Pickup Coil screen, see PickupCoilScreenModel.ts:
But we did not handle this correctly in the Transformer screen, see TransformerScreenModel.ts:
samplePointsStrategy: newFixedSpacingSamplePointsStrategy(5.4),// same as Java version
The spacing constant 5.4 is not appropriate for the electromagnet's height, and still results in a large change in flux when moving the electromagnet vertically inside the pickup coil. Similar to the bar magnet, the spacing should have been based on the height of the electromagnet, like this:
Transformer screen has been fixed in the above commits, and now behaves like the Java version. I've also improved the documentation where samplePointsStrategy is set. So I'll go ahead and close this issue.
Discovered while working on #156.
In Unfuddle#248, the notion of "sample point strategy" was introduced, to prevent incorrect induced EMF in a specific situation. Placing the magnet inside the center of the coil, then moving the magnet vertically would induce a large EMF. This was due to the spacing of the sample points, resulting in sample points movng inside/outside the magnet, and causing a big flux change.
By using more sample points, and spacing the sample points based on the height of the magnet, the number of sample points "inside" the magent would be (roughly) constant, and we would avoid most of this flux change.
We handled this correctly in the Pickup Coil screen, see PickupCoilScreenModel.ts:
But we did not handle this correctly in the Transformer screen, see TransformerScreenModel.ts:
The spacing constant
5.4
is not appropriate for the electromagnet's height, and still results in a large change in flux when moving the electromagnet vertically inside the pickup coil. Similar to the bar magnet, the spacing should have been based on the height of the electromagnet, like this:The text was updated successfully, but these errors were encountered: