Improve the UPML parameters by properly summing the axis conductivities in the corners

This commit is contained in:
2020-09-19 20:10:10 -07:00
parent f6e4ed8cb9
commit d713c79bbd
2 changed files with 28 additions and 18 deletions

View File

@@ -3,9 +3,9 @@ use coremem::{Driver, mat};
fn main() {
coremem::init_logging();
let width = 201;
let boundary = 20;
let boundary = 50;
let mut driver = Driver::new(width, width, 1e-3 /* feature size */);
driver.add_y4m_renderer(&*format!("boundary_conditions_upml-{}.y4m", boundary));
driver.add_y4m_renderer(&*format!("boundary_conditions_upml_round-{}.y4m", boundary));
// driver.add_term_renderer();
//driver.add_boundary(boundary, 0.1);