forward_petsc

Forward solver to save the optimal result

forward_petsc.forward(D, a, K, im0, im, T, dt, sfiles)

Solve the forward KPP problem.

Parameters:
  • D float: diffusion coefficient.

  • a float: growth coefficient.

  • K float: capacity coefficient.

  • im0 numpy array: image of the initial inoculum.

  • T number: final time.

  • dt float: time step.

  • sfiles str: folder containing the images.

Return:

The solution of the forward KPP equation.