stim: remove TimeVarying3

`TimeVarying`(1) is enough for what we want.
This commit is contained in:
2022-08-18 15:51:54 -07:00
parent 570f058ee1
commit 6750feef8d
10 changed files with 83 additions and 112 deletions

View File

@@ -7,7 +7,7 @@ use coremem::{Driver, mat, meas};
use coremem::geom::{Coord as _, Meters, Torus};
use coremem::sim::spirv::{SpirvSim, WgpuBackend};
use coremem::sim::units::Seconds;
use coremem::stim::{CurlStimulus, Sinusoid1, TimeVarying as _};
use coremem::stim::{CurlStimulus, Sinusoid, StimExt as _};
fn main() {
@@ -78,7 +78,7 @@ 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 = Sinusoid1::from_wavelength(amp, duration * 2.0)
let wave = Sinusoid::from_wavelength(amp, duration * 2.0)
.half_cycle()
.shifted(start);
driver.add_stimulus(CurlStimulus::new(