set_source#

TransientFourierConduction.set_source(pores, propname, mode='add')#

Applies a given source term to the specified pores

Parameters:
  • 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:

    mode

    meaning

    ’add’

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

    ’remove’

    Deletes given source term from the specified locations.

    ’clear’

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

Notes

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.