- openpnm.models.phases.misc.mix_and_match(target, prop, phases, occupancy)¶
Return the given property by looking it up from a list of given phases based on occupancy.
target (OpenPNM Base object) – Object with which this model is associated. This controls the length of the calculated array, and also provides access to other necessary properties.
prop (str) – The dictionary key to the array containing the pore/throat property to be used in the calculation.
phases (list) – List of GenericPhases over which the given prop is to be averaged out.
occupancy (str) – The dictionary key to the array containing the occupancy associated with each of the given
weighted_average – Weighted average of the given prop averaged over phases.
- Return type