![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
Class for looping over a subset of particles in a container. More...
#include <c_loops.hh>
Inheritance diagram for voro::c_loop_subset:Public Member Functions | |
| template<class c_class > | |
| c_loop_subset (c_class &con) | |
| void | setup_sphere (double vx, double vy, double vz, double r, bool bounds_test=true) |
| void | setup_box (double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, bool bounds_test=true) |
| void | setup_intbox (int ai_, int bi_, int aj_, int bj_, int ak_, int bk_) |
| bool | start () |
| bool | inc () |
Public Member Functions inherited from voro::c_loop_base | |
| template<class c_class > | |
| c_loop_base (c_class &con) | |
| void | pos (double &x, double &y, double &z) |
| void | pos (int &pid, double &x, double &y, double &z, double &r) |
| double | x () |
| double | y () |
| double | z () |
| int | pid () |
Public Attributes | |
| c_loop_subset_mode | mode |
Public Attributes inherited from voro::c_loop_base | |
| const int | nx |
| const int | ny |
| const int | nz |
| const int | nxy |
| const int | nxyz |
| const int | ps |
| double ** | p |
| int ** | id |
| int * | co |
| int | i |
| int | j |
| int | k |
| int | ijk |
| int | q |
Class for looping over a subset of particles in a container.
This class can loop over a subset of particles in a certain geometrical region within the container. The class can be set up to loop over a rectangular box or sphere. It can also rectangular group of internal computational blocks.
The constructor copies several necessary constants from the base container class.
| [in] | con | the container class to use. |
|
inline |
Finds the next particle to test.
| void voro::c_loop_subset::setup_box | ( | double | xmin, |
| double | xmax, | ||
| double | ymin, | ||
| double | ymax, | ||
| double | zmin, | ||
| double | zmax, | ||
| bool | bounds_test = true |
||
| ) |
Initializes the class to loop over all particles in a rectangular box.
| [in] | (xmin,xmax) | the minimum and maximum x coordinates of the box. |
| [in] | (ymin,ymax) | the minimum and maximum y coordinates of the box. |
| [in] | (zmin,zmax) | the minimum and maximum z coordinates of the box. |
| [in] | bounds_test | whether to do detailed bounds checking. If this is false then the class will loop over all particles in blocks that overlap the given box. If it is true, the particle will only loop over the particles which actually lie within the box. |
| void voro::c_loop_subset::setup_intbox | ( | int | ai_, |
| int | bi_, | ||
| int | aj_, | ||
| int | bj_, | ||
| int | ak_, | ||
| int | bk_ | ||
| ) |
Initializes the class to loop over all particles in a rectangular subgrid of blocks.
| [in] | (ai_,bi_) | the subgrid range in the x-direction, inclusive of both ends. |
| [in] | (aj_,bj_) | the subgrid range in the y-direction, inclusive of both ends. |
| [in] | (ak_,bk_) | the subgrid range in the z-direction, inclusive of both ends. |
| void voro::c_loop_subset::setup_sphere | ( | double | vx, |
| double | vy, | ||
| double | vz, | ||
| double | r, | ||
| bool | bounds_test = true |
||
| ) |
Initializes a c_loop_subset object to scan over all particles within a given sphere.
| [in] | (vx,vy,vz) | the position vector of the center of the sphere. |
| [in] | r | the radius of the sphere. |
| [in] | bounds_test | whether to do detailed bounds checking. If this is false then the class will loop over all particles in blocks that overlap the given sphere. If it is true, the particle will only loop over the particles which actually lie within the sphere. |
| bool voro::c_loop_subset::start | ( | ) |
Starts the loop by finding the first particle within the container to consider.
| c_loop_subset_mode voro::c_loop_subset::mode |
The current mode of operation, determining whether tests should be applied to particles to ensure they are within a certain geometrical object.