Return a graph I vs t of the electrochemical process
PotStep(Co = 0.001, exptime = 1, Dx = 1e-05, Dm = 0.45, eta = 0, Temp = 298.15, n = 1, Area = 1, DerApprox = 2, errCheck = FALSE, Method = "Euler")
bulk concentration
experimental time to be simulated
diffusion coefficient
simulation parameter, maximum 0.5 for explicit methods
overpotential of the step
temperature in kelvin
number of electrons involved in the process
area of the electrode
number of point for the approximation of the first derivative
if true the function returns a list with parameters for CottrCheck function
method to be used for the simulation = "Euler" "BI" "RK4" "CN" "BDF"
if errCheck == F a graph I vs t, if errCheck == T a list
# NOT RUN { PotStep(Co = 0.001, exptime = 1, Dm =0.45, DerApprox = 2, errCheck = FALSE, Method = "Euler") # }
Run the code above in your browser using DataCamp Workspace