mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Determine lattice indices accounting for particle's direction
This commit is contained in:
parent
e906198273
commit
e3f9446c23
3 changed files with 47 additions and 21 deletions
|
|
@ -104,7 +104,7 @@ public:
|
|||
//! \brief Find the lattice tile indices for a given point.
|
||||
//! \param r A 3D Cartesian coordinate.
|
||||
//! \return An array containing the indices of a lattice tile.
|
||||
virtual std::array<int, 3> get_indices(Position r) const = 0;
|
||||
virtual std::array<int, 3> get_indices(Position r, Direction u) const = 0;
|
||||
|
||||
//! \brief Get coordinates local to a lattice tile.
|
||||
//! \param r A 3D Cartesian coordinate.
|
||||
|
|
@ -212,7 +212,7 @@ public:
|
|||
std::pair<double, std::array<int, 3>>
|
||||
distance(Position r, Direction u, const std::array<int, 3>& i_xyz) const;
|
||||
|
||||
std::array<int, 3> get_indices(Position r) const;
|
||||
std::array<int, 3> get_indices(Position r, Direction u) const;
|
||||
|
||||
Position
|
||||
get_local_position(Position r, const std::array<int, 3> i_xyz) const;
|
||||
|
|
@ -252,7 +252,7 @@ public:
|
|||
std::pair<double, std::array<int, 3>>
|
||||
distance(Position r, Direction u, const std::array<int, 3>& i_xyz) const;
|
||||
|
||||
std::array<int, 3> get_indices(Position r) const;
|
||||
std::array<int, 3> get_indices(Position r, Direction u) const;
|
||||
|
||||
Position
|
||||
get_local_position(Position r, const std::array<int, 3> i_xyz) const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue