Source code for openpnm.algorithms._transient_advection_diffusion

import logging
from openpnm.algorithms import TransientReactiveTransport, AdvectionDiffusion
from openpnm.utils import Docorator


__all__ = ['TransientAdvectionDiffusion']


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


@docstr.dedent
class TransientAdvectionDiffusionSettings:
    r"""
    Parameters
    ----------
    %(AdvectionDiffusionSettings.parameters)s
    %(TransientReactiveTransportSettings.parameters)s

    """


[docs] class TransientAdvectionDiffusion(TransientReactiveTransport, AdvectionDiffusion): r""" A subclass of Transport to perform steady and transient simulations of pure diffusion and advection-diffusion problems. """ def __init__(self, name='trans_ad_?', **kwargs): super().__init__(name=name, **kwargs) self.settings._update(TransientAdvectionDiffusionSettings())