febid.diffusion#

Diffusion module Solution for diffusion equation via FTCS method

Functions

diffusion_ftcs

Calculate diffusion term for the surface cells using stencil approach

get_diffusion_stability_time

Get max stable time step for FTCS solution :type D: :param D: diffusion coefficient, nm/nm^2 :type dx: :param dx: grid spacing, nm :return: time step, s

laplace_term_stencil

Apply stencil operator to the selected cells in the grid.

prepare_surface_index

Get a multiindex from the surface array

stencil_debug