SISCone 3.0.5
|
list of element in the vicinity of a parent. More...
#include <vicinity.h>
Public Member Functions | |
CSphvicinity () | |
default constructor | |
CSphvicinity (std::vector< CSphmomentum > &_particle_list) | |
constructor with initialisation (see set_particle_list) | |
~CSphvicinity () | |
default destructor | |
void | set_particle_list (std::vector< CSphmomentum > &_particle_list) |
set the particle_list | |
void | build (CSphmomentum *_parent, double _VR) |
build the vicinity list from the list of points. | |
Public Attributes | |
CSphmomentum * | parent |
parent vector | |
double | VR |
radius of the vicinity | |
double | VR2 |
squared radius of the vicinity | |
double | cosVR |
cosine of the radius of the vicinity | |
double | R |
normal radius | |
double | R2 |
squared normal radius | |
double | tan2R |
squared tangent of the normal radius | |
double | D2_R |
euclidian distance (squared) corresp. to the arc R | |
double | inv_R_EPS_COCIRC |
R / EPSILON_COCIRCULAR. | |
double | inv_R_2EPS_COCIRC |
R / (2*EPSILON_COCIRCULAR) | |
int | n_part |
number of particles | |
std::vector< CSphmomentum > | plist |
the list of particles | |
std::vector< siscone::Cvicinity_inclusion > | pincluded |
the inclusion state of particles | |
CSphvicinity_elm * | ve_list |
list of vicinity elements built from particle list (size=2*n) | |
std::vector< CSphvicinity_elm * > | vicinity |
list of points in parent's vicinity | |
unsigned int | vicinity_size |
number of elements in vicinity | |
Protected Member Functions | |
void | append_to_vicinity (CSphmomentum *v) |
append a particle to the 'vicinity' list after having tested it and computed the angular-ordering quantities | |
Protected Attributes | |
CSph3vector | parent_centre |
parent centre | |
CSph3vector | angular_dir1 |
main direction to measure angles | |
CSph3vector | angular_dir2 |
second direction to measure angles (sign) | |
list of element in the vicinity of a parent.
class used to manage the points which are in the vicinity of a parent point.
Definition at line 83 of file vicinity.h.
siscone_spherical::CSphvicinity::CSphvicinity | ( | ) |
siscone_spherical::CSphvicinity::~CSphvicinity | ( | ) |
|
protected |
append a particle to the 'vicinity' list after having tested it and computed the angular-ordering quantities
v | vector to test |
Definition at line 234 of file vicinity.cpp.
References siscone_spherical::CSph3vector::_norm, siscone_spherical::CSphvicinity_elm::angle, angular_dir1, angular_dir2, siscone_spherical::CSph3vector::build_norm(), siscone_spherical::CSphvicinity_elm::centre, siscone_spherical::CSphvicinity_elm::cocircular, siscone_spherical::CSphvicinity_elm::cocircular_range, cosVR, D2_R, siscone_spherical::CSphmomentum::index, inv_R_2EPS_COCIRC, inv_R_EPS_COCIRC, parent, parent_centre, siscone_spherical::CSphvicinity_elm::side, tan2R, ve_list, and vicinity.
Referenced by build().
void siscone_spherical::CSphvicinity::build | ( | CSphmomentum * | _parent, |
double | _VR | ||
) |
build the vicinity list from the list of points.
_parent | reference particle |
_VR | vicinity radius |
Definition at line 177 of file vicinity.cpp.
References siscone_spherical::CSph3vector::_norm, angular_dir1, angular_dir2, append_to_vicinity(), cosVR, D2_R, EPSILON_COCIRCULAR, siscone_spherical::CSph3vector::get_angular_directions(), inv_R_2EPS_COCIRC, inv_R_EPS_COCIRC, n_part, parent, parent_centre, plist, R, R2, tan2R, vicinity, vicinity_size, VR, and VR2.
Referenced by siscone_spherical::CSphstable_cones::get_stable_cones().
void siscone_spherical::CSphvicinity::set_particle_list | ( | std::vector< CSphmomentum > & | _particle_list | ) |
set the particle_list
_particle_list | list of particles (type CSphmomentum) |
Definition at line 105 of file vicinity.cpp.
References siscone_spherical::CSphvicinity_elm::is_inside, n_part, pincluded, plist, siscone_spherical::CSphvicinity_elm::v, ve_list, and vicinity.
Referenced by siscone_spherical::CSphstable_cones::init().
|
protected |
main direction to measure angles
Definition at line 143 of file vicinity.h.
Referenced by append_to_vicinity(), and build().
|
protected |
second direction to measure angles (sign)
Definition at line 144 of file vicinity.h.
Referenced by append_to_vicinity(), and build().
double siscone_spherical::CSphvicinity::cosVR |
cosine of the radius of the vicinity
Definition at line 111 of file vicinity.h.
Referenced by append_to_vicinity(), and build().
double siscone_spherical::CSphvicinity::D2_R |
euclidian distance (squared) corresp. to the arc R
Definition at line 115 of file vicinity.h.
Referenced by append_to_vicinity(), and build().
double siscone_spherical::CSphvicinity::inv_R_2EPS_COCIRC |
R / (2*EPSILON_COCIRCULAR)
Definition at line 117 of file vicinity.h.
Referenced by append_to_vicinity(), and build().
double siscone_spherical::CSphvicinity::inv_R_EPS_COCIRC |
R / EPSILON_COCIRCULAR.
Definition at line 116 of file vicinity.h.
Referenced by append_to_vicinity(), and build().
int siscone_spherical::CSphvicinity::n_part |
number of particles
Definition at line 120 of file vicinity.h.
Referenced by build(), CSphvicinity(), siscone_spherical::CSphstable_cones::get_stable_cones(), and set_particle_list().
CSphmomentum* siscone_spherical::CSphvicinity::parent |
parent vector
Definition at line 108 of file vicinity.h.
Referenced by append_to_vicinity(), build(), CSphvicinity(), and siscone_spherical::CSphstable_cones::get_stable_cones().
|
protected |
parent centre
Definition at line 142 of file vicinity.h.
Referenced by append_to_vicinity(), and build().
std::vector<siscone::Cvicinity_inclusion> siscone_spherical::CSphvicinity::pincluded |
the inclusion state of particles
Definition at line 123 of file vicinity.h.
Referenced by set_particle_list().
std::vector<CSphmomentum> siscone_spherical::CSphvicinity::plist |
the list of particles
Definition at line 121 of file vicinity.h.
Referenced by build(), siscone_spherical::CSphstable_cones::get_stable_cones(), and set_particle_list().
double siscone_spherical::CSphvicinity::R |
double siscone_spherical::CSphvicinity::R2 |
double siscone_spherical::CSphvicinity::tan2R |
squared tangent of the normal radius
Definition at line 114 of file vicinity.h.
Referenced by append_to_vicinity(), and build().
CSphvicinity_elm* siscone_spherical::CSphvicinity::ve_list |
list of vicinity elements built from particle list (size=2*n)
Definition at line 124 of file vicinity.h.
Referenced by append_to_vicinity(), CSphvicinity(), set_particle_list(), and ~CSphvicinity().
std::vector<CSphvicinity_elm*> siscone_spherical::CSphvicinity::vicinity |
list of points in parent's vicinity
Definition at line 130 of file vicinity.h.
Referenced by append_to_vicinity(), build(), and set_particle_list().
unsigned int siscone_spherical::CSphvicinity::vicinity_size |
number of elements in vicinity
Definition at line 131 of file vicinity.h.
Referenced by build(), and siscone_spherical::CSphstable_cones::get_stable_cones().
double siscone_spherical::CSphvicinity::VR |
radius of the vicinity
Definition at line 109 of file vicinity.h.
Referenced by build(), and CSphvicinity().
double siscone_spherical::CSphvicinity::VR2 |
squared radius of the vicinity
Definition at line 110 of file vicinity.h.
Referenced by build(), and CSphvicinity().