1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use dzahui::{DzahuiWindow, DzahuiWindowBuilder, DiffussionParams};

/// Simple time independent diffussion example with irregular mesh.
fn main() {
    /* TIME INDEPENDENT DIFFUSSION */
    let diffussion_params = DiffussionParams::time_independent()
        .b(1.0)
        .mu(1.0)
        .boundary_conditions(1.0,15.0)
        .build();
    
    let window_builder: DzahuiWindowBuilder = DzahuiWindow::builder("./assets/1dbar_irregular.obj")
        .solve_1d_diffussion(diffussion_params).with_integration_iteration(150).enable_height_multiplier(3_f64);

    let window = window_builder.build();
    window.run();
    
}