pygpe.scalar.wavefunction.ScalarWavefunction#
- class pygpe.scalar.wavefunction.ScalarWavefunction(grid)#
Represents the scalar BEC wavefunction. This class contains the wavefunction array, in addition to various useful functions for manipulating and using the wavefunction.
- Parameters:
grid (
Grid
) – The numerical grid.- Variables:
component – The real-space wavefunction array.
fourier_component – The Fourier-space wavefunction array.
atom_num – The atom number of the condensate.
grid – Reference to the grid object of the simulation.
- __init__(grid)#
Constructs the wavefunction object.
Methods
__init__
(grid)Constructs the wavefunction object.
add_noise
(mean, std_dev)Adds noise to the wavefunction using a normal distribution.
apply_phase
(phase, **kwargs)Applies a phase to the wavefunction.
density
()- return:
An array of the condensate density.
fft
()Fourier transforms real-space component and updates Fourier-space component.
ifft
()Inverse Fourier transforms Fourier-space component and updates real-space component.
set_wavefunction
(wavefunction)Sets the wavefunction to the specified state.