charge_conservation

openpnm.models.physics.source_terms.charge_conservation(target, phase, p_alg, e_alg, assumption)[source]

Applies the source term on the charge conservation equation when solving for ions transport.

Parameters
  • target (OpenPNM Base object) – Object with which this model is associated. This controls the length of the calculated array, and also provides access to other necessary properties.

  • p_alg (GenericAlgorithm) – The algorithm used to enforce charge conservation.

  • e_alg (list) – The list of algorithms used to solve for transport of different ionic species of the mixture phase.

  • assumption (str) –

    The assumption adopted to enforce charge conservation. Options are:

    Options

    Description

    poisson

    ?

    electroneutrality

    ?

    laplace

    ?

Returns

rate_info – A dictionary containing the following three items:

Item

Description

rate

The value of the source term function for the given list of algortihms under the provided assumption.

S1

A placeholder (zeros array)

S2

The value of the source term function for the given list of algortihms under the provided assumption (same as ‘rate’).

Return type

dict