Internal API

Electrolyte data

LiquidElectrolytes.solvepressureFunction
solvepressure(electrolyte)

Check if pressure is to be solved for using the momentum balance equation, or if the pressure is obtained from the (Navier)-Stokes solver.

source
LiquidElectrolytes.chargedensity!Function
chargedensity!(q, sol,electrolyte)

Calculate charge density from solution (on the whole grid), writing the result into q and returning this vector.

source

Poisson-Nernst-Planck

LiquidElectrolytes.dμexFunction
 dμex(γk, γl, electrolyte)

Calculate differences of excess chemical potentials from activity coefficients

source

Poisson-Boltzmann

Poisson-Nernst-Planck-Stokes

LiquidElectrolytes.flowsolver

Electrochemical calculations

LiquidElectrolytes.splitzFunction
splitz(range::AbstractRange)

If range contains zero, split it into two parts, one with values <=0 and one with values >=0. Otherwise, return the range or its reverse, such that first value always is the one with the smallest absolute value.

source
splitz(range::Vector)

Version of splitz(range::AbstractRange) for vectors.

source

General tools