Go to the source code of this file.
|
| end | imagesc (y(valsx), x(valsy), sqrt(v_x(valsy, valsx).^ 2+v_y(valsy, valsx).^ 2)) |
| |
| | set (gca, 'TickLabelInterpreter', 'latex') |
| |
| | set (gca, 'DefaultTextInterpreter', 'Latex') set(gca |
| |
| Latin Modern | xlabel (' $x$(m)') |
| |
| | ylabel (' $y$(m)') |
| |
| | set (h, 'TickLabelInterpreter', 'latex') ylabel(h |
| |
| | V (m/s)') if length(lims~=0) axis(lims) |
| |
|
| | function [] |
| |
| and assumes | dx |
| |
| and assumes too high and very sparse Start | at |
| |
| and assumes too high and very sparse Start and % increase until happy % | x |
| |
| 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 |
| |
| 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 = angle(wfc0) |
| |
| | np1 =unwrap(phase,[],1) |
| |
| | np2 =unwrap(phase,[],2) |
| |
| | hbar =1.05457e-34 |
| |
| | v_y = (hbar/m)*(velnp1y) |
| |
| | v_x = (hbar/m)*(velnp2x) |
| |
| | valsx =[1:incr:size(wfc0,1)] |
| |
| | % [200:1:300] |
| |
| | valsy =valsx |
| |
| % if | normed |
| |
| else | L =1 |
| |
| hold on | q = quiver(y(valsx),x(valsy),v_x(valsy,valsx)./L,v_y(valsy,valsx)./L,'AutoScaleFactor',0.5,'Color','w') |
| |
| axis | square |
| |
| hold | off |
| |
| | FontName |
| |
| Latin Modern | Roman |
| |
| Latin Modern | FontSize |
| |
| | h =colorbar |
| |
◆ imagesc()
◆ set() [1/3]
◆ set() [2/3]
| set |
( |
gca |
, |
|
|
'DefaultTextInterpreter' |
, |
|
|
'Latex' |
|
|
) |
| |
◆ set() [3/3]
◆ V()
◆ xlabel()
| Latin Modern xlabel |
( |
' $x$(m)' |
| ) |
|
◆ ylabel()
◆ at
| and assumes too high and very sparse Start at |
◆ dx
Initial value:%
m is the
mass of the atomic species
%
incr is the increment over which to calculate field direction. Too low
% and it may be very dense
% Used for determining interaction strength of system % % Constants required for simulation m
% If at least one of the indices is
Definition at line 5 of file velField.m.
◆ FontName
◆ FontSize
◆ function
Initial value:%velField calculates velocity field of wavefunction
% velField
plots the magnitude and direction of the velocity field of the
% given wavefunction wfc0 in 2D.
%
dx is the increment along
x
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
and assumes too high and very sparse Start and % increase until happy % x
% If at least one of the indices is
Definition at line 1 of file velField.m.
◆ hbar
◆ normed
Initial value:==1
end if sqrt(sum([x(ii), y(ii)].^ 2))< radius %% ignore edges if(length(DT.vertexAttachments
Definition at line 30 of file velField.m.
◆ np1
◆ np2
◆ off
◆ Otherwise
| 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 |
◆ phase
| 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 = angle(wfc0) |
◆ Roman
◆ square
◆ v_x
◆ v_y
◆ valsx
| valsx =[1:incr:size(wfc0,1)] |
◆ valsy
| and assumes too high and very sparse Start and % increase until happy % x |
◆ 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 yes |