Solver

The solver module provides numerical ODE solver functions.

These functions are either implemented here or provide an interface to other solvers.

class scarce.solver.DriftDiffusionSolver(pot_descr, pot_w_descr, T=300, geom_descr=None, diffusion=True, t_e_trapping=0.0, t_h_trapping=0.0, t_e_t1=0.0, t_h_t1=0.0, t_r=0.0, save_frac=20)[source]

Solve the drift-diffusion equation for pseudo particles.

Solving via euler forward difference.

Methods

scarce.solver.solve(var, equation, **kwargs)[source]

Interface to the fipy solver used for the 2d poisson equation.

Parameters:
  • var (fipy.CellVariable) – Fipy meshed cell variables to solve the equation for
  • equation (fipy equation) – e.g. fipy.DiffusionTerm() = 0
  • kwargs (kwargs) – Arguments of fipy equation.solve(kwargs)

Notes

A linear LU solver is forced here, since otherwise pysparse based solver do not converge properly.