LabKit MATLAB Workbench

reference

API ReferenceCharge-Storage Capacity

csc.analysisRun.chargeDensity

Convert charge in coulombs to density in mC/cm^2.

Syntax

value = csc.analysisRun.chargeDensity(chargeC, areaCm2)

Inputs

chargeC
Numeric scalar or array of charge values in coulombs. Signed values remain signed.
areaCm2
Positive finite scalar electrode area in square centimetres.

Outputs

value
Charge density with the same size as chargeC, in mC/cm^2. When areaCm2 is nonfinite or nonpositive, value is scalar NaN.

Description

The conversion is 1000*chargeC/areaCm2 because one coulomb equals 1000 millicoulombs. This unit helper performs no integration and does not take the absolute value of cathodic charge.

Failure Behavior

A nonfinite or nonpositive scalar area returns scalar NaN. areaCm2 must be scalar and chargeC must support numeric division; incompatible MATLAB values or nonscalar area conditions raise the originating logical or arithmetic error.

Example

density = csc.analysisRun.chargeDensity([0.002 -0.001], 0.5);
assert(isequal(density, [4 -2]))

Source

This page is generated from the MATLAB help text in apps/electrochem/csc/+csc/+analysisRun/chargeDensity.m.