get_mix_vals#

Mixture.get_mix_vals(propname, mode='linear', power=1)[source]#

Get the mole fraction weighted value of a given property for the mixture

Parameters:
  • propname (str) – The property to fetch, such as 'pore.viscosity'.

  • mode (str) –

    The type of weighting to use. Options are:

    mode

    ’linear’

    (default) Basic mole fraction weighting of the form: z=Σ(xi\zi)

    ’logarithmic’

    Uses the natural logarithm of the property as: ln(z)=Σ(xiln(\zi))

    ’power

    Applies an exponent to the property as: \zpower=Σ(xi\zipower)

  • power (scalar) – If mode='power' this indicates the value of the exponent, otherwise this is ignored.

Returns:

vals – An ndarray with the requested values obtained using the specified weigthing.

Return type:

ndarray