Skip to main content

ftcs_max_amplification

Function ftcs_max_amplification 

Source
pub fn ftcs_max_amplification(r: f64, dx: f64, n_modes: usize) -> f64
Expand description

Maximum amplification factor for the FTCS diffusion scheme over all wave numbers.

Scans n_modes wave numbers in [0, π/dx] and returns the largest |G|.