2 %velField calculates velocity field of wavefunction
3 % velField
plots the magnitude and direction of the velocity field of the
4 % given wavefunction wfc0 in 2D.
5 %
dx is the increment along
x, and assumes
dx==
dy 6 %
m is the
mass of the atomic species
7 %
incr is the increment over which to calculate field direction. Too low
8 % and it may be very dense, too high and very sparse. Start
at 1, and
10 %
x,
y are the grid spacings along the
x and
y axis 11 %
normed specifies whether to normalise the vector directions. 1
if yes,
13 % lims
is [xMin xMax yMin yMax]. Hides the edge garbage.
Otherwise, []
19 [velnp1x,velnp1y] = gradient(
np1,
dx,
dx);
20 [velnp2x,velnp2y] = gradient(
np2,
dx,
dx);
26 valsx=[1:incr:size(wfc0,1)];%[200:1:300];
41 set(gca,
'TickLabelInterpreter',
'latex');
42 set(gca,
'DefaultTextInterpreter',
'Latex')
43 set(gca,
'FontName',
'Latin Modern Roman',
'FontSize',30);
end imagesc(y(valsx), x(valsy), sqrt(v_x(valsy, valsx).^ 2+v_y(valsy, valsx).^ 2))
and assumes too high and very sparse Start and % increase until happy % y are the grid spacings along the x and y axis % normed specifies whether to normalise the vector directions if % otherwise % lims is [xMin xMax yMin yMax] Hides the edge garbage phase
and print the results to file Essentially wraps % voronoi2dCellColour and saves the resulting plots
% Used for determining interaction strength of system % % Constants required for simulation m
end if sqrt(sum([x(ii), y(ii)].^ 2))< radius %% ignore edges if(length(DT.vertexAttachments
and assumes too high and very sparse Start at
and assumes too high and very sparse Start and % increase until happy % x
% axis([1e4 1e7 5e-18 1e-10])
% If at least one of the indices is
and assumes too high and very sparse Start and % increase until happy % y are the grid spacings along the x and y axis % normed specifies whether to normalise the vector directions if yes
and assumes too high and very sparse Start and % increase until happy % y are the grid spacings along the x and y axis % normed specifies whether to normalise the vector directions if % otherwise % lims is [xMin xMax yMin yMax] Hides the edge garbage Otherwise
Latin Modern xlabel(' $x$(m)')