Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

# -*- coding: utf-8 -*- 

 

from ..constants import Boltzmann_constant, elementary_charge 

 

 

def electrical_mobility_from_D(Dcoeff, charge, Temp, kB=None, elem_chg=None): 

    """ 

    Calculates the electrical mobility through Einstein-Smoluchowski relation. 

 

    Paraneters 

    ---------- 

    Dcoeff: float 

        Diffusion coefficient 

    charge: integer 

        charge of the species 

    Temp: float 

        Absolute temperature 

    kB: float (optional) 

        Boltzmann's constant. Defaults to value with units (which requires the 

        other parameters to have consistent units) 

    elem_chg: float (optional) 

        elementary charge. Defaults to value with units (which requires the 

        other parameters to have consistent units) 

 

    Returns 

    ------- 

    Electrical mobility (with units unless kB/elem_chg are overridden) 

    """ 

    kB = Boltzmann_constant if kB is None else kB 

    elem_chg = elementary_charge if elem_chg is None else elem_chg 

    return Dcoeff*charge*elem_chg/(kB*Temp)