

def return_results(self, pores=None, throats=None, **kwargs):
    '\n        Send results of simulation out the the appropriate locations.\n\n        This is a basic version of the update that simply sends out the main\n        result (quantity). More elaborate updates should be subclassed.\n        '
    if (pores is None):
        pores = self.Ps
    if (throats is None):
        throats = self.Ts
    phase_quantity = self._quantity.replace((self._phase.name + '_'), '')
    if (phase_quantity not in self._phase.props()):
        self._phase[phase_quantity] = sp.nan
    self._phase[phase_quantity][pores] = self[phase_quantity._quantity][pores]
    conn_arr = self._net.find_connected_pores(self.Ts)
    dx = sp.squeeze(sp.diff(self[self._quantity][conn_arr], n=1, axis=1))
    g = self['throat.conductance']
    rate = sp.absolute((g * dx))
    if ('throat.rate' not in self._phase.props()):
        self._phase['throat.rate'] = sp.nan
    self._phase['throat.rate'][throats] = rate[throats]
    logger.debug(((('Results of ' + self.name) + ' algorithm have been added to ') + self._phase.name))

dataset/ETHPy150Open PMEAL/OpenPNM/OpenPNM/Algorithms/__GenericLinearTransport__.py GenericLinearTransport.return_results/VarMisuse@116/220 `self`->`phase_quantity`