GPUE  v1.0
GPU Gross-Pitaevskii Equation numerical solver for Bose-Einstein condensates
uniqPairIdx_precalc.m
Go to the documentation of this file.
1 function [S] = uniqPairIdx_precalc(R,psi6p)
2 %Calculate all unique pairings of the orientational correlations, and
3 %create a struct to return that holds the distance between paired elements,
4 %and the respective orientational order values.
5 % R: Vectors of R=[X Y] values for points.
6 % psi6p: Orientational order values defined over the range of points
7 %Return:
8 % S: Struct of orientational corder values cor0,cor1 and distance
9 % between elements
10  count = 0;
11  for ii=1:(size(R,1)-1)
12  for jj=ii+1:size(R,1)
13  count = count +1;
14  S(count).cor0 = psi6p(ii);
15  S(count).cor1 = psi6p(jj);
16  S(count).rabs = sqrt( sum( (R(ii,:) - R(jj,:) ).^2 ) );
17  end
18  end
19 end
end if sqrt(sum([x(ii), y(ii)].^ 2))< radius %% ignore edges if(length(DT.vertexAttachments
end % Calculate all n choose k pairings of points
Definition: g6_struct.m:16
tic for a
Definition: GPE_2d.m:90
end % Calculate all n choose k pairings of and give distance between % values for the respective orientational and g6 values Sort % the values based on separated distance S
Definition: g6_struct.m:19
vtxLost count
Definition: loadVtx.m:14
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