Render the B/E fields in a way that's a little more insightful

This commit is contained in:
2020-07-12 21:52:20 -07:00
parent 2174113e7d
commit 52c2b5be5a
3 changed files with 16 additions and 7 deletions

View File

@@ -4,14 +4,14 @@ pub struct NumericTermRenderer;
impl NumericTermRenderer {
pub fn render(&self, state: &SimState) {
print!("E:");
for cell in state.cells() {
print!("{:>10.1e} ", cell.ez());
}
print!("\nB: ");
print!("B: ");
for cell in state.cells() {
print!("{:>10.1e} ", cell.by());
}
print!("\nE:");
for cell in state.cells() {
print!("{:>10.1e} ", cell.ez());
}
print!("\n");
}
}