Skip to content

Commit

Permalink
Recalibrate water wave speed, see #315
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Jan 15, 2019
1 parent bbebda5 commit 7c73b8b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/waves/model/WavesModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ define( require => {
frequencyRange: new Range( 0.25, 1 ), // cycles per second
scaleIndicatorLength: 1, // 1 centimeter
numberOfSources: options.numberOfSources,
waveSpeed: 1.85, // in position units/time units, measured empirically as 5.4 seconds to cross the 10cm lattice

// Calibration for water is done by measuring the empirical wave speed, since we want the timeScaleFactor to
// remain as 1.0
// in position units/time units, measured empirically as 5.4 seconds to cross the 10cm lattice
waveSpeed: 1.65,

timeScaleFactor: 1, // 1 second in real time = 1 second on the simulation timer

Expand Down

0 comments on commit 7c73b8b

Please sign in to comment.