constant

openpnm.models.misc.basic_math.constant(target, value)[source]

Places the given constant value into the target object

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

  • value (scalar) – The numerical value to apply

Returns

value – Array containing constant values equal to value.

Return type

ndarray

Notes

This model is mostly useless and for testing purposes, but might be used to ‘reset’ an array back to a default value.