simbi package
Subpackages
Submodules
simbi.bimodal module
Created on Sun Feb 20 12:34:17 2022
@author: hofer
- simbi.bimodal.bimodal_atom_numbers(trap_freqs, m, T, a, mu, verbose=False)[source]
Returns the total atom number, thermal atom number, BEC atom number, and condensed fraction.
- Parameters:
trap_freqs (ndarray) – The trap frequencies in Hz.
m (float) – The mass of the atoms in kg.
T (float) – The temperature of the thermal cloud in Kelvin.
a (float) – The s-wave scattering length in m.
mu (float) – The chemical potential of the BEC in Joules.
verbose (bool) – If True, prints the total atom number, condensed fraction, thermal atom number, and BEC atom number.
- Returns:
The total atom number. thermal_number: The thermal atom number. bec_number: The BEC atom number. condensed_fraction: The condensed fraction.
- Return type:
total_number
- simbi.bimodal.bimodal_density(coords, trap_freqs, m, T, a, mu, t=0)[source]
Returns the total density, thermal density, and BEC density.
- Parameters:
coords (list[numpy.ndarray]) – The coordinates in m. Should be a list of coordinates, where each element is a numpy array corresponding to a dimension (i.e. coords[0] is the x coordinates, coords[1] is the y coordinates. The number of elements in the list determines whether a 1D, 2D, or 3D density is calculated.
trap_freqs (ndarray) – The trap frequencies in Hz.
m (float) – The mass of the atoms in kg.
T (float) – The temperature of the thermal cloud in Kelvin.
a (float) – The s-wave scattering length in m.
mu (float) – The chemical potential of the BEC in Joules.
t (float) – The time since the trap was turned off in s.
- Returns:
The total density. thermal_density: The thermal density. bec_density: The BEC density.
- Return type:
total_density
- simbi.bimodal.bimodal_radii(trap_freqs, m, T, a, mu, t=0)[source]
Returns the radii of the thermal and BEC clouds.
- Parameters:
trap_freqs (ndarray) – The trap frequencies in Hz.
m (float) – The mass of the atoms in kg.
T (float) – The temperature of the thermal cloud in Kelvin.
a (float) – The s-wave scattering length in m.
mu (float) – The chemical potential of the BEC in Joules.
t (float) – The time since the trap was turned off in seconds.
- Returns:
The initial radii of the thermal cloud in m. t_sigmas: The radii of the thermal cloud at time t in m. init_tf_radii: The initial radii of the BEC in m. expans_scalars: The expansion scalars of the BEC. t_tf_radii: The radii of the BEC at time t in m.
- Return type:
init_sigmas
- simbi.bimodal.mu_temperature(trap_freqs, m, a, ntot, cf)[source]
Given trap parameters, BEC parameters, and total atom number and condensed fraction, return the chemical potential and temperature of the thermal cloud.
- Parameters:
trap_freqs (list[float, float, float]) – The trap frequencies in Hz.
m (float) – The mass of the atoms in kg.
a (float) – The s-wave scattering length in m.
ntot (float) – The total atom number.
cf (float) – The condensed fraction.
- Returns:
The chemical potential of the thermal cloud. temperature: The temperature of the thermal cloud.
- Return type:
mu
simbi.coordinate_handler module
Created on Tue Mar 15 15:27:11 2022
@author: hofer
- simbi.coordinate_handler.get_1Dcoordinates(max_coords, scalar=1, clength=200)[source]
Calculates 1D coordinates for each dimension.
- Parameters:
max_coords (list) – List of maximum coordinates for each dimension.
scalar (int) – Scalar for maximum coordinates.
clength (int) – Coordinate length.
- Returns:
List of 1D coordinates for each dimension. clength: Coordinate length.
- Return type:
coords_1d
- simbi.coordinate_handler.get_coordinates(max_coords, scalar=1, clength=200, multi=False)[source]
Gets coordinates for each dimension.
- Parameters:
max_coords (list[float]) – List of maximum coordinates for each dimension.
scalar (int) – Scalar for maximum coordinates.
clength (int) – Coordinate length.
multi (bool) –
- Returns:
List of 1D coordinates for each dimension. coord_maps: List of coordinate maps for each dimension. differential_elements: List of differential elements for each dimension. clength: Coordinate length.
- Return type:
coords_1d
simbi.number_converserions module
simbi.utils module
- simbi.utils.coordinate_transformation2D(XY_tuple, x0=0, y0=0, theta=0)[source]
Transforms coordinates by x0, y0, and theta.
- Parameters:
XY_tuple (list[float, float]) – Tuple of X and Y coordinates.
x0 (float) – x0 coordinate.
y0 (float) – y0 coordinate.
theta (float) – Angle in radians.
- Returns:
Tuple of transformed X and Y coordinates.
- Return type:
tuple[float, float]
- simbi.utils.rotate_coordinates2D(coordinates, theta)[source]
Rotates coordinates by theta radians.
- Parameters:
coordinates (list[numpy.ndarray]) – Tuple of X and Y coordinates.
theta (float) – Angle in radians.
- Returns:
Tuple of rotated X and Y coordinates.
- Return type:
tuple[numpy.ndarray, numpy.ndarray]
- simbi.utils.translate_coordinates2D(XY_tuple, x0, y0)[source]
Translates coordinates by x0 and y0.
- Parameters:
XY_tuple (list[float, float]) – Tuple of X and Y coordinates.
x0 (float) – x0 coordinate.
y0 (float) – y0 coordinate.
- Returns:
Tuple of translated X and Y coordinates.
- Return type:
tuple[float, float]
Module contents
Created on Mon Mar 14 19:26:59 2022
@author: hofer