Description Usage Arguments Details Value Functions Author(s)
This function imports a cyclic voltammogram performed on a full cell for the purpose of measuring a polarization curve.
1 2 3 4 | import_cell_cv(fname = file.choose(), area = 5, rpm = 50, cols = c("T",
"Vf", "Im"), movingavg = TRUE, traceavg = TRUE, ...)
polcurve_averager(inputdf, voltageid = "Vf", currentid = "scurrent")
|
fname |
File to import. |
area |
Geometric area of the cell electrodes, for correction from current/power to current/power density. |
rpm |
Rotation rate of the pumps, in rotations per minute. This is used by the moving average filter to average the collected data over one pump pulse. |
cols |
Data columns to import. Must match the names given by Gamry Framework software. |
movingavg |
If TRUE (default is TRUE), the function will apply a moving average to the measured current to smooth out oscillations in the data from a pulsing pump. |
traceavg |
If TRUE (default is TRUE), the function will attempt to split the polarization curve into two traces, a top and bottom trace, and average the two. This is useful if the cyclic voltammogram is changing the state of charge of the cell. |
This function, by default, performs two filters on the data to smooth it. First, a moving average filter is applied to dampen pulses from non-steady flow pumps such as diaphragm pumps. The moving average is applied over one pump cycle, which is why the function takes pump RPM as an input. The second filter splits the polarization curve in half and averages the top and bottom halves, to adjust for state of charge changes while running the cyclic voltammogram.
Returns a data frame with current, voltage, and power columns. The filename of each file is also reported in the state of charge ("soc") column for later analysis.
polcurve_averager
: Function which averages the top and bottom traces
of a polarization curve.
Mike Gerhardt
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.