bmlite.P2D.postutils#

Routines in this submodule contains all post-processing functions for the P2D package.

Functions#

electrolyte(soln)

Plots electrolyte Li-ion concentration profiles vs. time.

intercalation(soln)

Plots anode and cathode particle intercalation profiles vs. time.

pixels(soln)

Makes pixel plots for most 2D (space/time) variables.

post(soln)

Run post processing to determine secondary variables.

potentials(soln)

Plots anode, electrolyte, and cathode potentials vs. time and space.

Module Contents#

bmlite.P2D.postutils.electrolyte(soln)[source]#

Plots electrolyte Li-ion concentration profiles vs. time.

Parameters:

soln (P2D Solution object) – A pseudo-2D model solution object.

bmlite.P2D.postutils.intercalation(soln)[source]#

Plots anode and cathode particle intercalation profiles vs. time.

Parameters:

soln (P2D Solution object) – A pseudo-2D model solution object.

bmlite.P2D.postutils.pixels(soln)[source]#

Makes pixel plots for most 2D (space/time) variables.

Parameters:

soln (P2D Solution object) – A pseudo-2D model solution object.

bmlite.P2D.postutils.post(soln)[source]#

Run post processing to determine secondary variables.

Parameters:

soln (Solution) – A pseudo-2D model solution object.

Returns:

postvars (dict) – Post processed variables, as described below.

Key

Value [units] (type)

div_i_an

divergence of current at t, x_a [A/m3] (2D array)

div_i_sep

divergence of current at t, x_s [A/m3] (2D array)

div_i_ca

divergence of current at t, x_c [A/m3] (2D array)

sdot_an

Faradaic current at t, x_a [kmol/m2/s] (1D array)

sdot_ca

Faradaic current at t, x_c [kmol/m2/s] (1D array)

sum_ip

i_ed + i_el at t, xp interfaces [A/m2] (2D array)

i_el_x

i_el at t, x interfaces [A/m2] (2D array)

See also

StepSolution, CycleSolution

bmlite.P2D.postutils.potentials(soln)[source]#

Plots anode, electrolyte, and cathode potentials vs. time and space.

Parameters:

soln (P2D Solution object) – A pseudo-2D model solution object.