PotStep: Chrono amperometry with a finite step digital simulation

Description Usage Arguments Value Examples

View source: R/EleChemr.R

Description

Return a graph I vs t of the electrochemical process

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
PotStep(
  Co = 0.001,
  exptime = 1,
  Dx = 1e-05,
  Dm = 0.45,
  eta = 0,
  Temp = 298.15,
  n = 1,
  Area = 1,
  l = 100,
  DerApprox = 2,
  errCheck = FALSE,
  Method = "Euler"
)

Arguments

Co

bulk concentration expressed in Molar

exptime

experimental time to be simulated expressed in seconds

Dx

diffusion coefficient expressed in cm^2/s

Dm

simulation parameter, maximum 0.5 for explicit methods

eta

overpotential of the step expressed in Volt

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 t, if errCheck == T a list

Examples

1
PotStep(Co = 0.001, exptime = 1, Dm =0.45, DerApprox = 2, errCheck = FALSE, Method = "Euler")

EleChemr documentation built on Feb. 9, 2021, 5:05 p.m.

Related to PotStep in EleChemr...