gpe.tube2#
Dynamics in elongated harmonic traps.
See Expansion.md for details.
Attributes#
Classes#
Effective 1D model for an elongated cloud implementing a modified form |
Module Contents#
- class StateGPEdrZ(ws=None, Omega=None, delta=None, **kw)[source]#
Bases:
gpe.bec2.StateEffective 1D model for an elongated cloud implementing a modified form of the dr-GPE with dynamic rescaling in the y and z directions but not in the x direction. The state here is \(\Phi(Z, t)\) but get_density() has been modified to include the correct scaling.
- init()[source]#
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.
- get_central_density(TF=False)[source]#
Return the physical density (3d) along the central axis of the trap.
- Parameters:
TF (bool) – If True, then assume the transverse cloud is a TF profile (otherwise use the internal Gaussian anzatz.)
- get_energy_density(a=True, b=True, ab=True)[source]#
Return the energy density.
- Parameters:
a (bool) – Include the energies associated with this species. This includes the kinetic energy and the self-interaction, but no inter-species interactions.
b (bool) – Include the energies associated with this species. This includes the kinetic energy and the self-interaction, but no inter-species interactions.
ab (bool) – Include only the interaction energy.
- _get_n_TF(V_TF, V_ext=None, m=None, g=None, state=None)[source]#
Return the total TF density. Assumes gaa = gbb = gab and populates only the lower band.
- Parameters:
V_g (float) – (V_TF - V)/g. The density will vanish where V=V_TF.