GPUE  v1.0
GPU Gross-Pitaevskii Equation numerical solver for Bose-Einstein condensates
psi6.m
Go to the documentation of this file.
1 function [psi6_pos,nn] = psi6(pos,X,Y,radius)
2 %Calculate the orientational order parameter defined at point pos
3 %between the points (X,Y)
4 % pos: Defines the location to calculate the orientational order
5 % X,Y: Vector of entire X,Y range of points
6 % radius: Radius over which to determine neighbouring points
7 %Returns
8 % psi6_pos: The value of orientational order psi_6 at position pos
9 % nn: Number of nearest neighbours
10 
11  [nn,idx] = findNN(pos,X,Y,radius); %find number of neighbours and indices of
12  %neighbours for X,Y
13  psi6_pos = 0;
14 
15  if size(nn,1) > 0
16  for ii=1:size(nn,1)
17  psi6_pos = psi6_pos + exp(6*1i*getAngle(pos, [X(idx(ii)), Y(idx(ii))] ));
18  end
20  end
22 end
% Imaginary time unitary evolution operators for position
Definition: GPE_2d.m:82
if size(nn, 1) > 0 for ii
list i
Definition: mpi_vis.py:168
int pos
Definition: vort.py:95
Y Y range of points % idx
Definition: psi6.m:11
% find number of neighbours and indices of % neighbours for Y psi6_pos
Definition: psi6.m:13
end % Calculate all n choose k pairings of points
Definition: g6_struct.m:16
and assumes too high and very sparse Start at
Definition: velField.m:5
neighbours
Definition: findNN.m:7
Struct for an x, y, z position.
Definition: ds.h:42
end nn
Definition: psi6.m:21
Y
Definition: en.py:70
% find number of neighbours and indices of % neighbours for X
Definition: psi6.m:12
Y Y range of points % radius
Definition: psi6.m:1
end % idx is for idx is for type for ii
length
Definition: vort.py:75