1 function [vorts] = loadVtx(start, step, fin,
lostCheck)
2 %loads the processed
vorts from the output of
vort.py, and structures
them 4 % start step and fin are the initial
dataset, step
size, and
final 5 %
dataset to load
for the vortex postions
7 % that these vortices
do not contribute to the
dataset.
8 % The Data should be in the format of [X Y Sign UID IsLost]
17 %Check
if a vortex
vanishes (goes outside the boundary) over
18 %the course of the simulations. If so, we can choose to discard it.
22 f=csvread(strcat(strcat(
'vort_ord_',int2str(
ii)),
'.csv'),0,0);
32 %Arrange vortices in appropriate ordering and structuring for
33 %trajectory plotting which are return
by vorts data structure
36 f=csvread(strcat(strcat('vort_ord_',int2str(
ii)),'.csv'),0,0);
38 if ( round(
f(
jj,1) == 0) || round(
f(
jj,2) == 0)) || ismember(
f(
jj,4),vtxLost.
idx)
% Check if a vortex vanishes(goes outside the boundary) over % the course of the simulations. If so
end if(length(DT.vertexAttachments{ii})==5) if plotit plot(x(ii)
% Imaginary time unitary evolution operators for position
end % Arrange vortices in appropriate ordering and structuring for % trajectory plotting which are return by vorts data structure for ii
and structures them % into Matlab structs for Vortex position and index % start step and fin are the initial step size
end % Loop over vortices and check the number of edges per index
and extended by(Dr?) Lee James O 'Riordan. % Ek
% Check if a vortex we can choose to discard it % This is indicated by a in the column
% Check if a vortex we can choose to discard it % This is indicated by a in the whose UID is then tagged if lostCheck
__global__ void zeros(double *field, int n)
Creates a field of all zeros ,.
and structures them % into Matlab structs for Vortex position and index % start step and fin are the initial dataset
end % Calculate all n choose k pairings of and give distance between % them
and structures them % into Matlab structs for Vortex position and index % start step and fin are the initial step and final % dataset to load for the vortex postions % lostCheck turns on the ability to test for vortex losses and ensure % that these vortices do not contribute to the dataset % The Data should be in the format of [X Y Sign UID IsLost] % vorts
% Indexing needs to % be modified if you wish to use the ordered data sets % Calculate the Voronoi diagram of the resulting data
% If at least one of the indices is