Source code for openpnm.algorithms._stokes_flow

import logging
from openpnm.algorithms import ReactiveTransport
from openpnm.utils import Docorator


__all__ = ['StokesFlow']


logger = logging.getLogger(__name__)
docstr = Docorator()


@docstr.dedent
class StokesFlowSettings:
    r'''

    Parameters
    ----------
    %(ReactiveTransportSettings.parameters)s
    '''
    quantity = 'pore.pressure'
    conductance = 'throat.hydraulic_conductance'


[docs] class StokesFlow(ReactiveTransport): r""" A subclass of LinearTransport to simulate viscous flow. """ def __init__(self, name='stokes_?', **kwargs): super().__init__(name=name, **kwargs) self.settings._update(StokesFlowSettings())