Represents the state of a nuclear system.
More...
#include <World.hpp>
|
|
const std::shared_ptr< const ScalarField > | temperature |
| | Global temperature field, if present.
|
| |
|
const std::vector< Cell > | cells |
| | Cells that appear in the World (C++ Core Guidelines C.131)
|
| |
Represents the state of a nuclear system.
Manages the construction of all Surface, Nuclide, Material, and Cell objects. Access to shared members is given by World when necessary.
- Todo:
- Consider using the Immediately Invoked Function Expression (IIFE) idiom for construction of const members
◆ FindCellContaining()
| const Cell & World::FindCellContaining |
( |
const Point & |
p | ) |
const |
Returns the current Cell occupied by a given Point.
- Todo:
- More than one Cell may contain a Particle. This should be checked during input parsing if possible.
◆ FindNuclideByName()
| std::shared_ptr< const Nuclide > World::FindNuclideByName |
( |
const std::string & |
name | ) |
const |
Returns the Nuclide with the given name.
- Exceptions
-
| std::runtime_error | Nuclide with the given name not found |
- Todo:
- Template this and FindSurfaceByName
◆ FindSurfaceByName()
| std::shared_ptr< const CSGSurface > World::FindSurfaceByName |
( |
const std::string & |
name | ) |
const |
Returns the CSGSurface with the given name.
- Exceptions
-
| std::runtime_error | CSGSurface with given name not found |
- Todo:
- Template this and FindNuclideByName
◆ HasConstantTemperature()
| bool World::HasConstantTemperature |
( |
| ) |
const |
|
noexcept |
Returns true if global temperature has no spatial dependence.
- Todo:
- Check each Cell if it has constant temperature dependence
The documentation for this class was generated from the following file:
- /Users/atumulak/Developer/minimc/src/World.hpp