gpe.Examples.hydro_1d#

Simple hydrodynamic experiments.

Classes#

Experiment

Harmonic Sloshing experiment.

Module Contents#

class Experiment(_local_dict=None, **kw)[source]#

Bases: 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.

State[source]#
t_unit = 63.50779925891489[source]#
t_name = 'ms'[source]#
t__image = 2[source]#
species[source]#
g = 1[source]#
m = 1[source]#
Nx = 1024[source]#
Lx = 64.0[source]#
x_TF = 15.0[source]#
hbar = 1.0[source]#
omega[source]#
x0 = 0.0[source]#
u_piston = 0.0[source]#
p_sigma = 1.0[source]#
V0p = 0.5[source]#
x0_t = 3.0[source]#
_Vext = 0[source]#
nu_ = 0.0[source]#
init()[source]#

Overload this to perform any initial computations.

get_state(initialize=False)[source]#
get_initial_state(**kw)[source]#
get_nu(state)[source]#
get_Vtrap(state, d=0)[source]#
get_Vext(state, d=0)[source]#
get_f(state, n=None, d=0)[source]#

Return fluxes.