Stimulus: Sinusoid: remove the amp
component
This commit is contained in:
@@ -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()),
|
||||
|
Reference in New Issue
Block a user