Stimulus: Sinusoid: remove the amp component

This commit is contained in:
2022-08-28 02:01:33 -07:00
parent ec77584311
commit 538db399a9
4 changed files with 18 additions and 19 deletions

View File

@@ -78,8 +78,9 @@ fn main() {
// helper to schedule a stimulus at the provided start time/duration.
let mut add_drive_pulse = |region: &Torus, start, duration, amp| {
let wave = Sinusoid::from_wavelength(amp, duration * 2.0)
let wave = Sinusoid::from_wavelength(duration * 2.0)
.half_cycle()
.scaled(amp)
.shifted(start);
driver.add_stimulus(ModulatedVectorField::new(
CurlVectorField::new(region.clone()),