plotDiffusion: Plot Diffusion Profiles

Description Usage Arguments Value Examples

Description

Plots a set of diffusion profiles (concentration as a function of distance from the electrode's surface) for an object created using an object created with one of the package's simulation functions: cvSim for cyclic voltammetry, lsvSim for linear sweep voltammetry, caSim for chronoamperometry, or ccSim for chronocoulometry. The plot includes a default title that gives the time and the potential for the diffusion profile. Note: this function will not work with the reduced data file created using sampleAmpgram, sampleCoulgram, or sampleVoltgram.

Usage

1
plotDiffusion(filename, t = 1)

Arguments

filename

Name of the file that contains the results of a simulated electrochemistry experiment.

t

The time for which the diffusion profile is desired.

Value

Returns a line plot that shows distance from the electrode's surface on the x-axis and the concentrations of Ox, Red, and, for an EC or a CE mechanism, Z on the y-axis.

Examples

1
2
3
4
5
6
7
ex_cv = simulateCV(e.start = 0.25, e.switch = -0.25, e.form = 0,
  x.units = 100, t.units = 1000)
plotDiffusion(ex_cv, t = 0.5)

ex_ca = simulateCA(e.start = 0.25, e.pulse = -0.25, e.form = 0,
  pulses = "double", t.2 = 20, x.units = 100, t.units = 1000)
plotDiffusion(ex_ca, t = 21)

dtharvey/eChem documentation built on July 9, 2019, 1:35 a.m.