from_component#

from_component(phase, prop, compname)[source]#

Fetches the given values from the specified object

Parameters:
  • phase (OpenPNM Phase object) – The phase object to which this model is associated (i.e. attached). This controls the length of the calculated array(s), and also provides access to other necessary properties.

  • prop (str) – The name of the array to retreive

  • compname (str) – The name of the object possessing the desired data

Returns:

vals – An ND-array containing the request data

Return type:

ND-array