LinSwp {EleChemr} | R Documentation |
Linear Sweep digitial simulation
Description
Return a graph I vs E of the electrochemical process
Usage
LinSwp(
Co = 0.001,
Dx = 1e-05,
Eo = 0,
Dm = 0.45,
Vi = 0.3,
Vf = -0.3,
Vs = 0.001,
ko = 0.01,
alpha = 0.5,
Temp = 298.15,
n = 1,
Area = 1,
l = 100,
DerApprox = 2,
errCheck = FALSE,
Method = "Euler"
)
Arguments
Co |
bulk concentration expressed in Molar |
Dx |
diffusion coefficient expressed in cm^2/s |
Eo |
reduction potential of the species expressed in Volt |
Dm |
simulation parameter, maximum 0.5 for explicit methods |
Vi |
initial potential of the sweep expressed in Volt |
Vf |
final potential of the sweep expressed in Volt |
Vs |
potential scan rate of the simulation expressed in V/s |
ko |
heterogeneous electron transfer rate constant expressed in m/s |
alpha |
charge transfer coefficient |
Temp |
temperature in kelvin |
n |
number of electrons involved in the process |
Area |
area of the electrode expressed in cm^2 |
l |
number of time steps of the simulation |
DerApprox |
number of point for the approximation of the first derivative |
errCheck |
if true the function returns a list with parameters for CottrCheck function |
Method |
method to be used for the simulation = "Euler" "BI" "RK4" "CN" "BDF" |
Value
if errCheck == F a graph I vs E, if errCheck == T a list
Examples
LinSwp(Co = 0.001, Dm =0.45, DerApprox = 2, errCheck = FALSE, Method = "Euler")