#include <mcnpmit.hpp>
Public Member Functions | |
McnpData () | |
~McnpData () | |
MCNPError | set_coord_system (int) |
int | get_coord_system () |
MCNPError | set_rotation_matrix (double[16]) |
double * | get_rotation_matrix () |
MCNPError | set_filename (std::string) |
std::string | get_filename () |
MCNPError | read_mcnpfile (bool) |
MCNPError | read_coord_system (std::string) |
MCNPError | read_rotation_matrix (std::string, int) |
MCNPError | make_elements (std::vector< double >[3], int *) |
MCNPError | make_adjacencies (int *) |
MCNPError | initialize_tags () |
MCNPError | extract_tally_data (std::string, moab::EntityHandle) |
MCNPError | transform_point (double *, double *, int, double *) |
Public Attributes | |
int | coord_system |
double | rotation_matrix [16] |
std::vector< moab::EntityHandle > | MCNP_vertices |
std::vector< moab::EntityHandle > | MCNP_elems |
moab::Range | vert_handles |
moab::Range | elem_handles |
moab::Tag | box_min_tag |
moab::Tag | box_max_tag |
moab::Tag | tally_tag |
moab::Tag | relerr_tag |
std::string | MCNP_filename |
Definition at line 26 of file mcnpmit.hpp.
McnpData::McnpData | ( | ) |
McnpData::~McnpData | ( | ) |
Definition at line 40 of file mcnpmit.cpp.
References MCNP_vertices.
MCNPError McnpData::extract_tally_data | ( | std::string | s, |
moab::EntityHandle | handle | ||
) |
Definition at line 335 of file mcnpmit.cpp.
References ErrorCode, MB_SUCCESS, MBI, MCNP_FAILURE, MCNP_SUCCESS, next_number(), relerr_tag, and tally_tag.
Referenced by read_mcnpfile().
int McnpData::get_coord_system | ( | ) |
Definition at line 53 of file mcnpmit.cpp.
References coord_system.
std::string McnpData::get_filename | ( | ) |
Definition at line 78 of file mcnpmit.cpp.
References MCNP_filename.
double * McnpData::get_rotation_matrix | ( | ) |
Definition at line 67 of file mcnpmit.cpp.
References rotation_matrix.
MCNPError McnpData::initialize_tags | ( | ) |
Definition at line 326 of file mcnpmit.cpp.
References ERROR_TAG, MB_TAG_CREAT, MB_TAG_DENSE, MB_TYPE_DOUBLE, MBI, MCNP_SUCCESS, relerr_tag, TALLY_TAG, and tally_tag.
MCNPError McnpData::make_adjacencies | ( | int * | ) |
MCNPError McnpData::make_elements | ( | std::vector< double > | x[3], |
int * | n | ||
) |
Definition at line 273 of file mcnpmit.cpp.
References MBI, MCNP_SUCCESS, and vert_handles.
Referenced by read_mcnpfile().
MCNPError McnpData::read_coord_system | ( | std::string | s | ) |
Definition at line 243 of file mcnpmit.cpp.
References CARTESIAN, coord_system, CYLINDRICAL, MCNP_FAILURE, MCNP_SUCCESS, and SPHERICAL.
Referenced by read_mcnpfile().
MCNPError McnpData::read_mcnpfile | ( | bool | skip_mesh | ) |
Definition at line 84 of file mcnpmit.cpp.
References moab::Range::begin(), moab::Range::clear(), elem_handles, ErrorCode, extract_tally_data(), how_many_numbers(), moab::Range::insert(), make_elements(), MB_SUCCESS, MBHEX, MBI, MCNP_elems, MCNP_FAILURE, MCNP_filename, MCNP_SUCCESS, read_coord_system(), read_numbers(), read_rotation_matrix(), moab::Range::size(), and vert_handles.
MCNPError McnpData::read_rotation_matrix | ( | std::string | s, |
int | i | ||
) |
Definition at line 258 of file mcnpmit.cpp.
References MCNP_FAILURE, MCNP_SUCCESS, next_number(), and rotation_matrix.
Referenced by read_mcnpfile().
MCNPError McnpData::set_coord_system | ( | int | k | ) |
Definition at line 48 of file mcnpmit.cpp.
References coord_system, and MCNP_SUCCESS.
MCNPError McnpData::set_filename | ( | std::string | fname | ) |
Definition at line 73 of file mcnpmit.cpp.
References MCNP_filename, and MCNP_SUCCESS.
MCNPError McnpData::set_rotation_matrix | ( | double | r[16] | ) |
MCNPError McnpData::transform_point | ( | double * | p, |
double * | r, | ||
int | csys, | ||
double * | rmat | ||
) |
Definition at line 425 of file mcnpmit.cpp.
References c2pi, CARTESIAN, CYLINDRICAL, MCNP_FAILURE, MCNP_SUCCESS, and SPHERICAL.
moab::Tag McnpData::box_max_tag |
Definition at line 45 of file mcnpmit.hpp.
moab::Tag McnpData::box_min_tag |
Definition at line 45 of file mcnpmit.hpp.
int McnpData::coord_system |
Definition at line 35 of file mcnpmit.hpp.
Referenced by get_coord_system(), McnpData(), read_coord_system(), and set_coord_system().
moab::Range McnpData::elem_handles |
Definition at line 42 of file mcnpmit.hpp.
Referenced by read_mcnpfile().
std::vector< moab::EntityHandle > McnpData::MCNP_elems |
Definition at line 40 of file mcnpmit.hpp.
Referenced by read_mcnpfile().
std::string McnpData::MCNP_filename |
Definition at line 50 of file mcnpmit.hpp.
Referenced by get_filename(), read_mcnpfile(), and set_filename().
std::vector< moab::EntityHandle > McnpData::MCNP_vertices |
Definition at line 39 of file mcnpmit.hpp.
Referenced by ~McnpData().
moab::Tag McnpData::relerr_tag |
Definition at line 47 of file mcnpmit.hpp.
Referenced by extract_tally_data(), and initialize_tags().
double McnpData::rotation_matrix[16] |
Definition at line 36 of file mcnpmit.hpp.
Referenced by get_rotation_matrix(), McnpData(), read_rotation_matrix(), and set_rotation_matrix().
moab::Tag McnpData::tally_tag |
Definition at line 46 of file mcnpmit.hpp.
Referenced by extract_tally_data(), and initialize_tags().
moab::Range McnpData::vert_handles |
Definition at line 41 of file mcnpmit.hpp.
Referenced by make_elements(), and read_mcnpfile().