A Mesh is a lattice overlaid on the Geometry across which reaction rates can be tallied from converged scalar fluxes in a Solver.
More...
#include "src/Mesh.h"
A Mesh is a lattice overlaid on the Geometry across which reaction rates can be tallied from converged scalar fluxes in a Solver.
◆ Mesh()
The Mesh constructor.
If no lattice is given, a default lattice can be constructed with the Mesh::createLattice function.
- Parameters
-
solver | The solver from which scalar fluxes and cross-sections are extracted |
lattice | An optional parameter for the lattice across which reaction rates are tallied |
◆ createLattice()
void Mesh::createLattice |
( |
int |
num_x, |
|
|
int |
num_y, |
|
|
int |
num_z = 1 |
|
) |
| |
Creates an internal lattice over which to tally reaction rates with the user-input dimensions.
- Parameters
-
num_x | the number of mesh cells in the x-direction |
num_y | the number of mesh cells in the y-direction |
num_z | the number of mesh cells in the z-direction |
◆ getFormattedReactionRates()
Vector3D Mesh::getFormattedReactionRates |
( |
RxType |
rx, |
|
|
bool |
volume_average = false |
|
) |
| |
Tallies reaction rates of the given type over the Mesh lattice.
- Parameters
-
rx | The type of reaction to tally |
volume_average | whether the reaction rates should be volume averaged |
- Returns
- The reaction rates in a 3D vector indexed by the lattice cell x, y, and z indexes
◆ getNonUniformFormattedReactionRates()
Vector3D Mesh::getNonUniformFormattedReactionRates |
( |
std::vector< std::vector< double > > |
widths_offsets, |
|
|
RxType |
rx, |
|
|
bool |
volume_average = false |
|
) |
| |
Tallies reaction rates of the given type over the user defined non-uniform lattice.
- Parameters
-
widths_offsets | The XYZ-direction widths and offset of a non-uniform Lattice. If the widths_offsets size is 3, the center-point of the geometry is used as the offset. |
rx | The type of reaction to tally |
volume_average | whether to volume average results |
- Returns
- The reaction rates in a 3D vector indexed by the lattice cell x, y, and z indexes
◆ getReactionRates()
std::vector< FP_PRECISION > Mesh::getReactionRates |
( |
RxType |
rx, |
|
|
bool |
volume_average = false |
|
) |
| |
Tallies reaction rates of the given type over the Mesh lattice.
- Parameters
-
rx | The type of reaction to tally |
volume_average | whether the reaction rates should be volume averaged |
- Returns
- The reaction rates in a 1D vector indexed by the lattice cell IDs
◆ setLattice()
void Mesh::setLattice |
( |
Lattice * |
lattice | ) |
|
Set the _lattice of a mesh to be an existing one, for which the user inputs the dimensions.
- Parameters
-
lattice | the existing lattice to be set to the Mesh |
The documentation for this class was generated from the following files:
- /home/guillaume/Research/OpenMOC/src/Mesh.h
- /home/guillaume/Research/OpenMOC/src/Mesh.cpp