fraction

openpnm.models.misc.fraction(target, numerator, denominator)[source]

Calculates the ratio between two values

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.

  • numerator (str) – Dictionary key pointing the numerator values

  • denominator (str) – Dictionary key pointing the denominator values