Source code for festim.boundary_conditions.fluxes.recombination_flux
from festim import FluxBC, k_B
import fenics as f
import sympy as sp
[docs]
class RecombinationFlux(FluxBC):
"""
FluxBC subclass for hydrogen recombination flux.
-D(T) * grad(c) * n = -Kr(T) * c**order
Args:
Kr_0 (float or sp.Expr): recombination coefficient pre-exponential
factor (m^(6-order)/s)
E_Kr (float or sp.Expr): recombination coefficient activation
energy (eV)
order (float): order of the recombination (typically 1 or 2)
surfaces (list or int): the surfaces of the BC
"""
def __init__(self, Kr_0, E_Kr, order, surfaces) -> None:
self.Kr_0 = Kr_0
self.E_Kr = E_Kr
self.order = order
super().__init__(surfaces=surfaces, field=0)