mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Adding a function to determine the instance of a cell at any level of Particle::coords.
This commit is contained in:
parent
c373d9548f
commit
4e3350ebcf
2 changed files with 36 additions and 14 deletions
|
|
@ -40,6 +40,17 @@ inline bool coincident(double d1, double d2) {
|
|||
|
||||
bool check_cell_overlap(Particle& p, bool error=true);
|
||||
|
||||
//==============================================================================
|
||||
//! Get the cell instance for a particle at the specified universe level
|
||||
//!
|
||||
//! \param p A particle for which to compute the instance using
|
||||
//! it's vector of LocalCoord.
|
||||
//! \param level The level (zero indexed) of the geometry where the instance should be computed.
|
||||
//! \return The instance of the cell at the specified level.
|
||||
//==============================================================================
|
||||
|
||||
int cell_instance_at_level(const Particle& p, int level);
|
||||
|
||||
//==============================================================================
|
||||
//! Locate a particle in the geometry tree and set its geometry data fields.
|
||||
//!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue