From 074bfd9a1181a6dcb3f17fe4f68e982aad1cf285 Mon Sep 17 00:00:00 2001 From: pixelzoom Date: Thu, 18 Apr 2024 11:23:57 -0600 Subject: [PATCH] document samplePointStrategy for PickupCoilScreenModel, https://github.com/phetsims/faradays-electromagnetic-lab/issues/161 --- js/pickup-coil/model/PickupCoilScreenModel.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/pickup-coil/model/PickupCoilScreenModel.ts b/js/pickup-coil/model/PickupCoilScreenModel.ts index af41f921..9ae139c1 100644 --- a/js/pickup-coil/model/PickupCoilScreenModel.ts +++ b/js/pickup-coil/model/PickupCoilScreenModel.ts @@ -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