Function electro::finite_diff_rect
[−]
[src]
pub fn finite_diff_rect(pot_mat: &Matrix<f64>) -> Result<Matrix<f64>, Error>
Computes the potential over a grid represented by a field matrix using a finite difference approximation to Poisson's equation. Takes as input a matrix representing the physical grid you're modeling, with known starting values (or zero).
Returns a Matrix
of the same dimensions with the potentials computed.