gpe.Examples.viscosity
======================

.. py:module:: gpe.Examples.viscosity


Classes
-------

.. autoapisummary::

   gpe.Examples.viscosity.Viscosity


Module Contents
---------------

.. py:class:: Viscosity(**kw)

   .. py:attribute:: g
      :value: 1.0



   .. py:attribute:: m
      :value: 1.0



   .. py:attribute:: nu
      :value: 0.1



   .. py:attribute:: L
      :value: 1.1



   .. py:attribute:: Lmid_L
      :value: 0.5



   .. py:attribute:: V0
      :value: 1.0



   .. py:attribute:: dV
      :value: 0.5



   .. py:attribute:: u0
      :value: 1.0



   .. py:attribute:: n0
      :value: 1.0



   .. py:method:: init()


   .. py:method:: E_V(n, d=0)

      Return the internal (GPE) energy density and its derivatives.



   .. py:method:: V(x, d=0)

      Return the external potential or derivative.



   .. py:method:: compute_dy_dt(x, y)


   .. py:method:: solve(xL_L=-1, xR_L=1.2)


