GPUE  v1.0
GPU Gross-Pitaevskii Equation numerical solver for Bose-Einstein condensates
defectTriangulation.m File Reference

Go to the source code of this file.

Functions

 with (5, 7)(3
 
and % (4, 8) dislocations indicated. Can be used to calculate the defects numbers with % no plotting by setting plotit to 0 % radius defines the distance from 0
 
if plotit triplot (DT, 'color', [0.6 0.6 0.6], 'LineWidth', 2)
 
triplot (DT, 'color', RGB(1,:), 'LineWidth', 3)
 
set (gca, 'Color', [0 0 0])
 
 set (gca, 'TickLabelInterpreter', 'latex')
 
 set (gca, 'DefaultTextInterpreter', 'Latex') set(gca
 
 xlabel (' $x$(m)', 'Interpreter', 'latex')
 
 ylabel (' $y$(m)', 'Interpreter', 'latex') % Defect marker size MarkerSize
 
end if sqrt (sum([x(ii), y(ii)].^ 2))< radius %% ignore edges if(length(DT.vertexAttachments
 
end if (length(DT.vertexAttachments{ii})==5) if plotit plot(x(ii)
 
end y (ii)
 
id LineWidth ()
 
end DefCount (ii+1, 5)
 
elseif length (DT.vertexAttachments{ii})
 
end DefCount (ii+1, 7)
 
end DefCount (ii+1, 3)
 
end DefCount (ii+1, 9)
 
end DefCount (ii+1, 4)
 
end DefCount (ii+1, 8)
 

Variables

 function [h, DefCount]
 
and for which the defects will be % considered This can be used to avoid defects that arise naturally from % the edge of the triangulation % h is a handle for generated plot % DefCount is a vector of the total number of defects counted for each % type with the index representing the number of connected edges % some useful colours RGB
 
% Rescale values to be centred on zero
 
% Rescale values to be centred on and in meters x =dx*(x-dimSize/2)'
 
 y =dx*(y-dimSize/2)'
 
% Calculate delaunay triangulation
 
% Calculate delaunay and setup figure DT = delaunayTriangulation([x y])
 
hold on
 
 FontName
 
Latin Modern Roman
 
Latin Modern FontSize
 
Latin Modern axis square
 
 h =plot(x,y,'ko','MarkerSize',10)
 
end % Loop over vortices and check the number of edges per index
 
end % Loop over vortices and check the number of edges per and place % appropriate marker for jj
 
end % idx is for time
 
end % idx is for idx is for type for ii
 
end p
 
end MarkerEdgeColor
 
end k
 
end MarkerSize
 
end ^
 
end d
 
end end end DefCount = sum(DefCount)
 

Function Documentation

◆ %()

and % ( ,
 
)

◆ DefCount() [1/6]

end DefCount ( ii 1,
 
)

◆ DefCount() [2/6]

end DefCount ( ii 1,
 
)

◆ DefCount() [3/6]

end DefCount ( ii 1,
 
)

◆ DefCount() [4/6]

end DefCount ( ii 1,
 
)

◆ DefCount() [5/6]

end DefCount ( ii 1,
 
)

◆ DefCount() [6/6]

end DefCount ( ii 1,
 
)

◆ if()

end if ( length(DT.vertexAttachments{ii})  = =5)

◆ length()

elseif length ( DT.vertexAttachments{ii )
Initial value:
==9
if plotit
plot(x(ii),y(ii),'v','MarkerEdgeColor','k','MarkerSize',MarkerSize-2,'MarkerFaceColor',RGB(5,:), 'LineWidth',1.5)
def plot(par)
Definition: plot.py:218
and for which the defects will be % considered This can be used to avoid defects that arise naturally from % the edge of the triangulation % h is a handle for generated plot % DefCount is a vector of the total number of defects counted for each % type with the index representing the number of connected edges % some useful colours RGB
end MarkerSize
% Rescale values to be centred on and in meters x
end % idx is for idx is for type for ii

◆ LineWidth()

id LineWidth ( )
virtual

◆ set() [1/3]

% set ( gca  ,
'Color'   
)

◆ set() [2/3]

set ( gca  ,
'TickLabelInterpreter ,
'latex  
)

◆ set() [3/3]

set ( gca  ,
'DefaultTextInterpreter'  ,
'Latex'   
)

◆ sqrt()

end if sqrt ( sum([x(ii), y(ii)].^ 2)  )

Definition at line 57 of file defectTriangulation.m.

Referenced by sepAvg().

58  {ii})==6)
end % idx is for idx is for type for ii
Here is the caller graph for this function:

◆ triplot() [1/2]

if plotit triplot ( DT  ,
'color'  ,
'LineWidth ,
 
)

◆ triplot() [2/2]

% triplot ( DT  ,
'color'  ,
RGB(1,:)  ,
'LineWidth ,
 
)

◆ with()

with ( ,
 
)

◆ xlabel()

xlabel ( ' $x$(m)'  ,
'Interpreter ,
'latex  
)

◆ y()

end y ( ii  )

◆ ylabel()

ylabel ( ' $y$(m)'  ,
'Interpreter ,
'latex  
)

Variable Documentation

◆ ^

end ^

Definition at line 76 of file defectTriangulation.m.

◆ d

end d

Definition at line 88 of file defectTriangulation.m.

◆ DefCount

end end end DefCount = sum(DefCount)

Definition at line 100 of file defectTriangulation.m.

◆ DT

% Calculate delaunay and setup figure DT = delaunayTriangulation([x y])

Definition at line 26 of file defectTriangulation.m.

◆ FontName

FontName

Definition at line 35 of file defectTriangulation.m.

◆ FontSize

Latin Modern FontSize

Definition at line 35 of file defectTriangulation.m.

◆ function

function[h, DefCount]
Initial value:
= defectTriangulation(x, y, dx, dimSize, plotit, radius)
tuple dx
Definition: en.py:59
% Calculate delaunay triangulation
def delaunay(dataName, dataType, value)
Definition: vis.py:76
end % Calculate all n choose k pairings of points
Definition: g6_struct.m:16
% Indexing needs to % be modified if you wish to use the ordered data sets % Calculate the Voronoi diagram of the resulting data
Definition: VtxCorr.m:36
% Rescale values to be centred on and in meters x
Y Y range of points % radius
Definition: psi6.m:1
dimSize
Definition: quKineticSpec.m:73

Definition at line 1 of file defectTriangulation.m.

◆ h

use g6 as color else h =plot(x,y,'ko','MarkerSize',10)

Definition at line 37 of file defectTriangulation.m.

◆ ii

ii
Initial value:
=1:length(x)
for jj=1:9
DefCount(ii+1,jj)=0
elseif length(DT.vertexAttachments{ii})
% Rescale values to be centred on and in meters x
end end end DefCount
end % Loop over vortices and check the number of edges per and place % appropriate marker for jj
end % idx is for idx is for type for ii

Definition at line 52 of file defectTriangulation.m.

Referenced by main().

◆ index

end % Loop over vortices and check the number of edges per index

Definition at line 46 of file defectTriangulation.m.

◆ jj

for jj
Initial value:
=1:9
DefCount(1,jj)=0
end end end DefCount
end % Loop over vortices and check the number of edges per and place % appropriate marker for jj

Definition at line 48 of file defectTriangulation.m.

◆ k

end k

Definition at line 64 of file defectTriangulation.m.

◆ MarkerEdgeColor

end MarkerEdgeColor

Definition at line 64 of file defectTriangulation.m.

◆ MarkerSize

end MarkerSize

Definition at line 64 of file defectTriangulation.m.

◆ on

hold on

Definition at line 31 of file defectTriangulation.m.

◆ p

end p

Definition at line 64 of file defectTriangulation.m.

◆ RGB

and for which the defects will be % considered This can be used to avoid defects that arise naturally from % the edge of the triangulation % h is a handle for generated plot % DefCount is a vector of the total number of defects counted for each % type with the index representing the number of connected edges % some useful colours RGB
Initial value:
=[0 0.4470 0.7410
0.8500 0.3250 0.0980
0.9290 0.6940 0.1250
0.4940 0.1840 0.5560
0.4660 0.6740 0.1880
0.3010 0.7450 0.9330
0.6350 0.0780 0.1840]

Definition at line 13 of file defectTriangulation.m.

◆ Roman

Latin Modern Roman

Definition at line 35 of file defectTriangulation.m.

◆ square

axis square

Definition at line 35 of file defectTriangulation.m.

◆ time

end % idx is for time

Definition at line 51 of file defectTriangulation.m.

Referenced by main().

◆ triangulation

% Calculate delaunay triangulation

Definition at line 25 of file defectTriangulation.m.

◆ x

% Rescale values to be centred on and in meters x =dx*(x-dimSize/2)'

Definition at line 22 of file defectTriangulation.m.

◆ y

y =dx*(y-dimSize/2)'

Definition at line 23 of file defectTriangulation.m.

◆ zero

% Rescale values to be centred on zero

Definition at line 21 of file defectTriangulation.m.