Skip to content

Commit 0e8e307

Browse files
committed
Analysis files add
1 parent 75a55c0 commit 0e8e307

2 files changed

Lines changed: 12 additions & 38 deletions

File tree

matlab/psi6.m

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
function [psi6_pos,nn] = psi6(pos,X,Y,radius)
2-
[nn,idx] = findNN(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
313
psi6_pos = 0;
414

515
if size(nn,1) > 0
616
for ii=1:size(nn,1)
7-
psi6_pos = psi6_pos + exp(6*1i*getAngle2(pos, [X(idx(ii)), Y(idx(ii))] ));
17+
psi6_pos = psi6_pos + exp(6*1i*getAngle(pos, [X(idx(ii)), Y(idx(ii))] ));
818
end
919
psi6_pos = psi6_pos./length(nn);
1020
end

matlab/voronoi_cells.m

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)