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

@@ -438,8 +438,9 @@ fn run_sim(id: u32, p: Params, g: Geometries) -> Results {
}
let add_drive_sine_pulse = |driver: &mut Driver<f32, _, _>, region: &Torus, start: f32, duration: f32, amp: f32| {
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()),