Troubleshoot toroid2.5d

This commit is contained in:
2020-10-09 20:41:38 -07:00
parent b9a48641c1
commit f2ba6fdd1b
8 changed files with 123 additions and 98 deletions

View File

@@ -70,9 +70,15 @@ impl<'a> RenderSteps<'a> {
width = (width as f32 * stretch) as _;
height = max_height;
}
trace!("rendering at {}x{}", width, height);
trace!("rendering at {}x{} with z={}", width, height, z);
let mut me = Self::new(state, measurements, width, height, z);
me.render_scalar_field(10.0, false, 2, |cell| cell.mat().conductivity().mag());
me.render_scalar_field(10.0, false, 2, |cell| {
cell.mat().conductivity().mag() + if cell.mat().is_vacuum() {
0.0
} else {
5.0
}
});
me.render_scalar_field(100.0, true, 0, |cell| cell.mat().m().mag());
if false {
me.render_b_z_field();