gpe.Examples.hydro_1d
=====================

.. py:module:: gpe.Examples.hydro_1d

.. autoapi-nested-parse::

   Simple hydrodynamic experiments.



Classes
-------

.. autoapisummary::

   gpe.Examples.hydro_1d.Experiment


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

.. py:class:: Experiment(_local_dict=None, **kw)

   Bases: :py:obj:`gpe.utils.ExperimentBase`


   Harmonic Sloshing experiment.

   Here we start with a harmonically trapped gas, we then display the trap center so
   that the gas sloshes back and forth.  This should result in purely sinusoidal
   center-of-mass (CoM) motion.  Next, we add a small bump.  In the presence of
   viscosity, this should dissipate energy, causing CoM amplitude to decrease.

   We use this decrease as a way of measuring the effective viscosity in a superfluid
   which has strictly no energy loss.

   Experiment for Finite-Volume SWE.
   M = amu, L = microns, T = 1/Hz.


   .. py:attribute:: State


   .. py:attribute:: t_unit
      :value: 63.50779925891489



   .. py:attribute:: t_name
      :value: 'ms'



   .. py:attribute:: t__image
      :value: 2



   .. py:attribute:: species


   .. py:attribute:: g
      :value: 1



   .. py:attribute:: m
      :value: 1



   .. py:attribute:: Nx
      :value: 1024



   .. py:attribute:: Lx
      :value: 64.0



   .. py:attribute:: x_TF
      :value: 15.0



   .. py:attribute:: hbar
      :value: 1.0



   .. py:attribute:: omega


   .. py:attribute:: x0
      :value: 0.0



   .. py:attribute:: u_piston
      :value: 0.0



   .. py:attribute:: p_sigma
      :value: 1.0



   .. py:attribute:: V0p
      :value: 0.5



   .. py:attribute:: x0_t
      :value: 3.0



   .. py:attribute:: _Vext
      :value: 0



   .. py:attribute:: nu_
      :value: 0.0



   .. py:method:: init()

      Overload this to perform any initial computations.



   .. py:method:: get_state(initialize=False)


   .. py:method:: get_initial_state(**kw)


   .. py:method:: get_nu(state)


   .. py:method:: get_Vtrap(state, d=0)


   .. py:method:: get_Vext(state, d=0)


   .. py:method:: get_f(state, n=None, d=0)

      Return fluxes.



