def _calc_effect(index, props, mesh, data):
    """
    Calculate the effect of cell mesh[index] with physical properties prop for
    each data set.
    """
    cell = mesh[index]
    return [d.effect(cell, props) for d in data]