Store sites from source file in SourceDistribution

This commit is contained in:
Paul Romano 2020-10-15 16:41:13 -05:00
parent 5b81083742
commit 8f71ed2a1d
6 changed files with 58 additions and 49 deletions

View file

@ -59,7 +59,6 @@ extern std::string path_cross_sections; //!< path to cross_sections.xml
extern std::string path_input; //!< directory where main .xml files resides
extern std::string path_output; //!< directory where output files are written
extern std::string path_particle_restart; //!< path to a particle restart file
extern std::string path_source;
extern std::string path_source_library; //!< path to the source shared object
extern std::string path_sourcepoint; //!< path to a source file
extern "C" std::string path_statepoint; //!< path to a statepoint file

View file

@ -57,6 +57,7 @@ private:
UPtrSpace space_; //!< Spatial distribution
UPtrAngle angle_; //!< Angular distribution
UPtrDist energy_; //!< Energy distribution
std::vector<Particle::Bank> sites_; //!< Source sites from a file
};
class CustomSource {

View file

@ -2,17 +2,19 @@
#define OPENMC_STATE_POINT_H
#include <cstdint>
#include <vector>
#include "hdf5.h"
#include "openmc/capi.h"
#include "openmc/particle.h"
namespace openmc {
void load_state_point();
void write_source_point(const char* filename);
void write_source_bank(hid_t group_id);
void read_source_bank(hid_t group_id);
void read_source_bank(hid_t group_id, std::vector<Particle::Bank>& sites);
void write_tally_results_nr(hid_t file_id);
void restart_set_keff();