Skip to content

Commit

Permalink
document samplePointStrategy for PickupCoilScreenModel, #161
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Apr 18, 2024
1 parent 41c6254 commit 074bfd9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/pickup-coil/model/PickupCoilScreenModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ export default class PickupCoilScreenModel extends FELScreenModel {
position: PICKUP_COIL_POSITION,
maxEMF: 2700000, // see PickupCoil.calibrateMaxEMF
transitionSmoothingScale: 0.77, // see PickupCoil.transitionSmoothingScaleProperty

// To avoid inducing significant (incorrect) EMF when the magnet is moved vertically when inside the coil,
// use sample-point spacing that results (approximately) in the same number of sample points always being
// "inside" the magnet. See https://phet.unfuddle.com/a#/projects/9404/tickets/by_number/248.
samplePointsStrategy: new FixedSpacingSamplePointsStrategy( barMagnet.size.height / 10 ),
coilOptions: {
currentSpeedScale: 3
Expand Down

0 comments on commit 074bfd9

Please sign in to comment.