nlse
Joe Hope
The nonlinear Schrodinger equation in one dimension, which is a simple partial differential equation. We introduce several new features in this script.
const double energy = 4; const double vel = 0.3; const double hwhm = 1.0;
xi
phi
const double w0 = hwhm*sqrt(2/log(2)); const double amp = sqrt(energy/w0/sqrt(M_PI/2)); phi = amp*exp(-tau*tau/w0/w0)*exp(i*vel*tau);
Gamma
Gamma=1.0*(1-exp(-pow(tau*tau/4.0/4.0,10)));
10 100 10
wavefunction
Ltt
Ltt = -i*ktau*ktau*0.5;
dphi_dxi = Ltt[phi] - phi*Gamma + i*mod2(phi)*phi; dampingVector
density
wavefunction
density = mod2(phi);
normalisation
wavefunction
normalisation = mod2(phi);
densityK
wavefunction
densityK = mod2(phi);