gpe.tube
========

.. py:module:: gpe.tube

.. autoapi-nested-parse::

   Dynamics in elongated harmonic traps.

   See Expansion.md for details.



Attributes
----------

.. autoapisummary::

   gpe.tube.u


Classes
-------

.. autoapisummary::

   gpe.tube.StateGPEdrZ


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

.. py:data:: u

.. py:class:: StateGPEdrZ(Nxyz, Lxyz, **kw)

   Bases: :py:obj:`gpe.bec.HOMixin`, :py:obj:`gpe.bec.StateScaleHO`


   Effective 1D model for the GPE in harmonic cigars.

   This class combines the NPSEQ to derive an effective 1D equation for the dynamics of
   a harmonically trapped cloud with the scaling solution of Castin and Dum to allow
   for expansion dynamics.


   .. py:attribute:: beta
      :value: 2.0



   .. py:attribute:: minimize_chemical_potential
      :value: False



   .. py:method:: get_ws(t=None)

      Return the trapping frequencies at time t.



   .. py:attribute:: Nxyz


   .. py:attribute:: Lxyz


   .. py:method:: init()

      Initialize the state.

      This method defines the basis positions, momenta, etc. for use later
      on.  We define these here rather than in the constructor `__init__()`
      so that the user can change them later and the reinitialize the state.
      We also call this function from the `pre_evolve_hook()` so that it is
      called before any evolution takes place.  For this reason, we should
      not modify the state here.



   .. py:method:: get_sigma2s(abs_Phi2=None)

      Return (sigma2x, sigma2y).



   .. py:method:: get_central_density(TF=False)

      Return the physical density (3D) along the central axis of the
      trap.

      :param TF: If True, then assume the transverse cloud is a TF profile (otherwise
                 use the internal Gaussian anzatz.)
      :type TF: bool



   .. py:method:: get_V_GPU()

      Return the complete potential `V` - internal and external.



   .. py:method:: get_energy_density()

      Return the energy density.



   .. py:method:: get_n_TF(V_TF, V_ext=None, g=None)

      Return the Thomas Fermi density profile n_1D from mu.

      :param V_TF: Value of V(x_TF) where the density should vanish in the TF limit.
      :type V_TF: float



   .. py:method:: get_mu_from_V_TF(V_TF)

      Return the Thomas Fermi chemical potential from V_TF.

      :param V_TF: External potential at the Thomas Fermi "radius".  (The external
                   potential is evaluated at this position and this is used to get
                   `mu`.)
      :type V_TF: float



   .. py:method:: get_V_TF_from_mu(mu)

      Return V_TF from the chemical potential mu.

      :param mu: Physical chemical potential (i.e. what you would pass to the
                 minimizer).
      :type mu: float



