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
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 |
|
polarization_current(t, parameters)
This function represents a current density used for creating a polarization curve. For the first delta_t_ini_step seconds, the current density is set to 0 A.m-2 to allow the internal states of the fuel cell to stabilise. Then, 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 97 98 99 100 101 102 103 |
|
polarization_current_for_calibration(t, parameters)
This function represents a current density used for creating a polarisation curve dedicated to the calibration of a specific fuel cell. The principle is similar to the polarization_current function, but it uses experimental values for the current density load.
Parameters:
t : float Time in seconds. parameters : dict A dictionary containing the parameters for the current density function.
Returns:
i_fc : float The polarisation current density at time t.
Source code in configuration/current_densities.py
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 144 145 146 147 148 149 150 |
|
step_current(t, parameters)
This function represents a step current density experiment. For the first delta_t_ini_step seconds, the current density is set to 0 A.m-2 to allow the internal states of the fuel cell to stabilise. Then, the current density increases from 0 to i_step A.m-2 in a step change over delta_t_load seconds. Finally, the current density remains at i_step A.m-2. 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
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 |
|