Class which provides access to various simulation significant data.
More...
#include <interaction_data.h>
|
void | initializeData () |
| Initializes the data for the InteractionData object.
|
|
void | setMaterialMap () |
| Sets the material map for the InteractionData object.
|
|
void | setMaxTotalCrossSectionsAndInterpolator () |
| Sets the maximum total cross sections and interpolator for the InteractionData object.
|
|
Eigen::Matrix< double, Eigen::Dynamic, 2 > | getTotalMaxCrossSectionsMatrixFromInteractionData () |
| Returns the 2 column matrix containing the maximum total cross sections for all materials.
|
|
void | fillTotalMaxCrossSectionsMatrix (Eigen::MatrixXd &total_max_cross_sections_matrix, const Eigen::MatrixXd &merged_energy_matrix) |
| Fills the total max cross sections matrix with the maximum total cross sections for all materials.
|
|
Class which provides access to various simulation significant data.
This class provides an interface to the database along with Material objects which contain computed data, along with data that is computed from all materials.
Definition at line 30 of file interaction_data.h.
◆ InteractionData()
InteractionData::InteractionData |
( |
const std::vector< std::string > & | material_names | ) |
|
|
explicit |
Constructor for the InteractionData class.
- Parameters
-
material_names | A vector of strings containing the names of the materials to be used in the simulation. |
◆ fillTotalMaxCrossSectionsMatrix()
void InteractionData::fillTotalMaxCrossSectionsMatrix |
( |
Eigen::MatrixXd & | total_max_cross_sections_matrix, |
|
|
const Eigen::MatrixXd & | merged_energy_matrix ) |
|
private |
Fills the total max cross sections matrix with the maximum total cross sections for all materials.
- Parameters
-
total_max_cross_sections_matrix | The matrix to fill with the maximum total cross sections for all materials. |
merged_energy_matrix | The matrix containing the energy values for all materials. |
◆ getAnyMaterialIdFromName()
uint8_t InteractionData::getAnyMaterialIdFromName |
( |
std::string | name | ) |
|
Returns the ID of the material with the given name.
- Parameters
-
name | The name of the material. |
- Returns
- The ID of the material with the given name.
◆ getAnyMaterialNameFromId()
std::string InteractionData::getAnyMaterialNameFromId |
( |
int | id | ) |
|
Returns the name of the material with the given ID.
- Parameters
-
id | The ID of the material. |
- Returns
- The name of the material with the given ID.
◆ getMaterialFromId()
Material & InteractionData::getMaterialFromId |
( |
int | id | ) |
|
|
inline |
◆ getMaxTotalCrossSectionsMatrix()
Eigen::Matrix< double, Eigen::Dynamic, 2 > InteractionData::getMaxTotalCrossSectionsMatrix |
( |
| ) |
const |
|
inline |
Returns the 2 column matrix containing the maximum total cross sections for all materials.
The first column contains the energy values, and the second column contains the maximum total cross sections. Energy values are in eV and cross sections are in cm^-1.
- Returns
- The 2 column matrix containing the maximum total cross sections for all materials.
Definition at line 55 of file interaction_data.h.
◆ getTotalMaxCrossSectionsMatrixFromInteractionData()
Eigen::Matrix< double, Eigen::Dynamic, 2 > InteractionData::getTotalMaxCrossSectionsMatrixFromInteractionData |
( |
| ) |
|
|
private |
Returns the 2 column matrix containing the maximum total cross sections for all materials.
The first column contains the energy values, and the second column contains the maximum total cross sections. Energy values are in eV and cross sections are in cm^-1.
- Returns
- The 2 column matrix containing the maximum total cross sections for all materials.
◆ interpolateMaxTotalCrossSection()
double InteractionData::interpolateMaxTotalCrossSection |
( |
double | energy | ) |
const |
|
inline |
Returns the maximum total cross section for all materials at the given energy.
- Parameters
-
energy | The energy (eV) at which to return the maximum total cross section. |
- Returns
- The maximum total cross section (cm^-1) for all materials at the given energy .
Definition at line 63 of file interaction_data.h.
◆ setMaterialMap()
void InteractionData::setMaterialMap |
( |
| ) |
|
|
private |
Sets the material map for the InteractionData object.
The material map is a map of material IDs to Material objects.
◆ dao_
◆ material_map_
std::map<int, Material> InteractionData::material_map_ |
|
private |
◆ material_names_
std::vector<std::string> InteractionData::material_names_ |
|
private |
◆ max_total_cs_interpolator_
◆ max_total_cs_matrix_
Eigen::Matrix<double, Eigen::Dynamic, 2> InteractionData::max_total_cs_matrix_ |
|
private |
The documentation for this class was generated from the following file: