GPUE  v1.0
GPU Gross-Pitaevskii Equation numerical solver for Bose-Einstein condensates
findNN.m File Reference

Go to the source code of this file.

Variables

 function [neighbours, locations]
 
Y within radius r = sqrt(bsxfun(@minus,pos(1),X).^2 + bsxfun(@minus,pos(2),Y).^2)
 
 locations = find(r < radius & r~=0)
 
 neighbours = [X(locations) Y(locations)]
 

Variable Documentation

◆ function

function[neighbours, locations]
Initial value:
= findNN(pos,X,Y,radius)
% Returns values and indices of nearest neighbours to location pos in
% positions X
neighbours
Definition: findNN.m:7
Struct for an x, y, z position.
Definition: ds.h:42
X
Definition: en.py:69
Y
Definition: en.py:70
Y Y range of points % radius
Definition: psi6.m:1

Definition at line 1 of file findNN.m.

◆ locations

locations = find(r < radius & r~=0)

Definition at line 6 of file findNN.m.

◆ neighbours

neighbours = [X(locations) Y(locations)]

Definition at line 7 of file findNN.m.

◆ r

Y within radius r = sqrt(bsxfun(@minus,pos(1),X).^2 + bsxfun(@minus,pos(2),Y).^2)

Definition at line 5 of file findNN.m.