apps: multi_core_inverter: setup for 4ns clock phases
double what they were before. gives more time for things to settle.
This commit is contained in:
@@ -92,7 +92,8 @@ fn main() {
|
|||||||
let feat_size = um(10);
|
let feat_size = um(10);
|
||||||
|
|
||||||
let input_magnitude = 1.0e9;
|
let input_magnitude = 1.0e9;
|
||||||
let clock_phase_duration = ps(2000);
|
let clock_phase_duration = ps(4000);
|
||||||
|
let clock_decay = ps(250); // exp decay half-life
|
||||||
|
|
||||||
// 's' = core (ferromagnetic part)
|
// 's' = core (ferromagnetic part)
|
||||||
let s_major = um(160);
|
let s_major = um(160);
|
||||||
@@ -137,7 +138,7 @@ fn main() {
|
|||||||
driver.add_stimulus(stim);
|
driver.add_stimulus(stim);
|
||||||
} else if ty.is_release() {
|
} else if ty.is_release() {
|
||||||
// decaying exponential wave:
|
// decaying exponential wave:
|
||||||
let wave = Exp::new_at(amp, start, 0.125 * clock_phase_duration /* half-life */);
|
let wave = Exp::new_at(amp, start, clock_decay);
|
||||||
let stim = CurlStimulus::new(
|
let stim = CurlStimulus::new(
|
||||||
region.clone(),
|
region.clone(),
|
||||||
wave.clone(),
|
wave.clone(),
|
||||||
@@ -257,13 +258,12 @@ fn main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let prefix = "out/applications/multi_core_inverter/11/";
|
let prefix = "out/applications/multi_core_inverter/13/";
|
||||||
let _ = std::fs::create_dir_all(&prefix);
|
let _ = std::fs::create_dir_all(&prefix);
|
||||||
driver.add_state_file(&*format!("{}state.bc", prefix), 6400);
|
driver.add_state_file(&*format!("{}state.bc", prefix), 6400);
|
||||||
driver.add_serializer_renderer(&*format!("{}frame-", prefix), 3200, None);
|
driver.add_serializer_renderer(&*format!("{}frame-", prefix), 3200, None);
|
||||||
driver.add_csv_renderer(&*format!("{}meas-detailed.csv", prefix), 100, None);
|
driver.add_csv_renderer(&*format!("{}meas-detailed.csv", prefix), 100, None);
|
||||||
driver.add_csv_renderer(&*format!("{}meas.csv", prefix), 800, None);
|
driver.add_csv_renderer(&*format!("{}meas.csv", prefix), 800, None);
|
||||||
driver.set_steps_per_stim(100);
|
|
||||||
|
|
||||||
driver.step_until(duration);
|
driver.step_until(duration);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user