ReactiveTransport.set_source(pores, propname, mode='add')[source]#

Applies a given source term to the specified pores

  • pores (array_like) – The pore indices where the source term should be applied.

  • propname (str) – The property name of the source term model to be applied.

  • mode (str) –

    Controls how the sources are applied. Options are:




    (default) Adds supplied source term to already existing ones.


    Deletes given source term from the specified locations.


    Deletes given source term from all locations (ignores the pores argument).


Source terms cannot be applied in pores where boundary conditions have already been set. Attempting to do so will result in an error being raised.