Current densities
This file contains the functions that generate the current densities for the simulation.
EIS_current(t, parameters)
Represents a current density used for creating an EIS curve and Bode diagrams. The current density is first equilibrated at i_EIS A.m-2 from 0 to t0_EIS seconds using a step increase. Then, a sinusoidal perturbation is added to the current density. This perturbation has an amplitude of (ratio_EIS * i_EIS) A.m-2 and a frequency of f[n_inf] Hz.
Parameters:
t : float Time in seconds. parameters : dict A dictionary containing the parameters for the current density function.
Returns:
i_fc : float The polarization current density at time t.
Source code in configuration/current_densities.py
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 |
|
polarization_current(t, parameters)
Represents a current density used for creating a polarization curve. Starting from 0, the current density increases by the value of delta_i_pola every delta_t, following C∞ step current increments, until it reaches i_max_pola. Each increment lasts for delta_t_load_pola seconds. After each increment, there is a pause of delta_t_break_pola seconds to allow the stack to reach equilibrium.
Parameters:
t : float Time in seconds. parameters : dict A dictionary containing the parameters for the current density function.
Returns:
i_fc : float The polarization current density at time t.
Source code in configuration/current_densities.py
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
|
step_current(t, parameters)
Represents a step change in current density. The current starts at 0 and smoothly stabilizes at i_ini_step A.m-2 in delta_t_load seconds. Around t_switch seconds, the current increases smoothly and stabilizes at i_final_step A.m-2 in delta_t_load seconds. This is a C∞ function, which is advantageous for enhancing the overall stability of the results.
Parameters:
t : float Time in seconds. parameters : dict A dictionary containing the parameters for the current density function.
Returns:
i_fc : float The step current density at time t.
Source code in configuration/current_densities.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
|