GPUE  v1.0
GPU Gross-Pitaevskii Equation numerical solver for Bose-Einstein condensates
psi6_DT.m
Go to the documentation of this file.
1 function [psi6_pos,nn] = psi6_DT(pos,X,Y)
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: Surrounding points in X coord to calculate oreintational order
6 % Y: Surrounding points in Y coord to calculate oreintational order
7 %Returns
8 % psi6_pos: The value of psi_6(pos)
9 % nn: Number of nearest neighbours
10  nn = length(X);
11  psi6_pos = 0;
12 
13  if size(nn,1) > 0
14  for ii=1:nn
15  psi6_pos = psi6_pos + exp(6*1i*getAngle(pos, [X((ii)), Y((ii))] ));
16  end
17  psi6_pos = psi6_pos./nn;
18  end
19 
20 end
list i
Definition: mpi_vis.py:168
int pos
Definition: vort.py:95
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
if size(nn, 1) > 0 for ii
Struct for an x, y, z position.
Definition: ds.h:42
X
Definition: en.py:69
end nn
Definition: psi6.m:21
psi6_pos
Definition: psi6_DT.m:11
Y
Definition: en.py:70
end % idx is for idx is for type for ii
length
Definition: vort.py:75