Mesh intersection (collision) coordinate data More...
#include <particleiterator.hpp>
Public Member Functions | |
ColData () | |
Default constructor. More... | |
ColData (PP x, int dir) | |
Constructor for collision at x into direction dir. More... | |
bool | operator< (const ColData &cd) const |
Compare coldata entry times. More... | |
Static Public Member Functions | |
static void | build_coldata_linear (std::vector< ColData > &coldata, const Mesh &mesh, const PP &x1, const PP &x2) |
Find mesh intersections of linearly interpolated particle trajectory segment. More... | |
static void | build_coldata_poly (std::vector< ColData > &coldata, const Mesh &mesh, const PP &x1, const PP &x2) |
Find mesh intersections of polynomially interpolated particle trajectory segment. More... | |
Public Attributes | |
PP | _x |
Mesh intersection coordinates. More... | |
int | _dir |
Direction of particle at intersection. i: -1/+1, j: -2/+2, k: -3:/+3. More... | |
Detailed Description
template<class PP>
class ColData< PP >
Mesh intersection (collision) coordinate data
Contains one coordinate data and the direction of particle for one intersection between particle trajectory and mesh plane. Templated for particle point type (see ParticlePBase).
Templated for particle point type (see ParticlePBase).
Constructor & Destructor Documentation
◆ ColData() [1/2]
◆ ColData() [2/2]
Constructor for collision at x into direction dir.
Member Function Documentation
◆ build_coldata_linear()
|
inlinestatic |
Find mesh intersections of linearly interpolated particle trajectory segment.
Makes a linear interpolation between points x1 and x2 and searches intersection points of this line and mesh. Intersection points are saved to vector coldata in increasing time order.
◆ build_coldata_poly()
|
inlinestatic |
Find mesh intersections of polynomially interpolated particle trajectory segment.
Makes a polynomial interpolation between points \ə x1 and x2 and searches intersection points of this line and mesh. Intersection points are saved to vector coldata in increasing time order.
◆ operator<()
Compare coldata entry times.
Used for sorting coldata entries.
Member Data Documentation
◆ _dir
int ColData< PP >::_dir |
Direction of particle at intersection. i: -1/+1, j: -2/+2, k: -3:/+3.
◆ _x
PP ColData< PP >::_x |
Mesh intersection coordinates.
The documentation for this class was generated from the following file: