Start reading element data on C++ side

This commit is contained in:
Paul Romano 2018-11-15 15:55:05 -06:00
parent 6940656c8a
commit 2c8bdbba6e
4 changed files with 86 additions and 0 deletions

37
include/openmc/photon.h Normal file
View file

@ -0,0 +1,37 @@
#ifndef OPENMC_PHOTON_H
#define OPENMC_PHOTON_H
#include <hdf5.h>
#include <string>
#include <vector>
namespace openmc {
//==============================================================================
//! Photon interaction data for a single element
//==============================================================================
class PhotonInteraction {
public:
// Constructors
PhotonInteraction(hid_t group);
// Data members
std::string name_; //! Name of element, e.g. "Zr"
int Z_; //! Atomic number
};
//==============================================================================
// Global variables
//==============================================================================
namespace data {
extern std::vector<PhotonInteraction> elements;
} // namespace data
} // namespace openmc
#endif // OPENMC_PHOTON_H