![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
Base class for looping over particles in a container. More...
#include <c_loops.hh>
Inheritance diagram for voro::c_loop_base:Public Member Functions | |
| 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 | |
| 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 |
Base class for looping over particles in a container.
This class forms the base of all classes that can loop over a subset of particles in a contaner in some order. When initialized, it stores constants about the corresponding container geometry. It also contains a number of routines for interrogating which particle currently being considered by the loop, which are common between all of the derived classes.
The constructor copies several necessary constants from the base container class.
| [in] | con | the container class to use. |
|
inline |
Returns the ID of the particle currently being considered by the loop.
Returns the position vector of the particle currently being considered by the loop.
| [out] | (x,y,z) | the position vector of the particle. |
Returns the ID, position vector, and radius of the particle currently being considered by the loop.
| [out] | pid | the particle ID. |
| [out] | (x,y,z) | the position vector of the particle. |
| [out] | r | the radius of the particle. If no radius information is available the default radius value is returned. |
|
inline |
Returns the x position of the particle currently being considered by the loop.
|
inline |
Returns the y position of the particle currently being considered by the loop.
|
inline |
Returns the z position of the particle currently being considered by the loop.
| int* voro::c_loop_base::co |
A pointer to the particle counts in the associated container data structure.
| int voro::c_loop_base::i |
The current x-index of the block under consideration by the loop.
| int** voro::c_loop_base::id |
A pointer to the particle ID information in the associated container data structure.
| int voro::c_loop_base::ijk |
The current index of the block under consideration by the loop.
| int voro::c_loop_base::j |
The current y-index of the block under consideration by the loop.
| int voro::c_loop_base::k |
The current z-index of the block under consideration by the loop.
| const int voro::c_loop_base::nx |
The number of blocks in the x direction.
| const int voro::c_loop_base::nxy |
A constant, set to the value of nx multiplied by ny, which is used in the routines that step through blocks in sequence.
| const int voro::c_loop_base::nxyz |
A constant, set to the value of nx*ny*nz, which is used in the routines that step through blocks in sequence.
| const int voro::c_loop_base::ny |
The number of blocks in the y direction.
| const int voro::c_loop_base::nz |
The number of blocks in the z direction.
| double** voro::c_loop_base::p |
A pointer to the particle position information in the associated container data structure.
| const int voro::c_loop_base::ps |
The number of floating point numbers per particle in the associated container data structure.
| int voro::c_loop_base::q |
The index of the particle under consideration within the current block.