mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-24 12:05:32 -04:00
Adding a skeleton function for plotting.
This commit is contained in:
parent
cc257b7554
commit
7637db6774
2 changed files with 36 additions and 1 deletions
33
src/plot.cpp
33
src/plot.cpp
|
|
@ -1,7 +1,40 @@
|
|||
#include "openmc/plot.h"
|
||||
#include "openmc/constants.h"
|
||||
#include "openmc/settings.h"
|
||||
#include "openmc/error.h"
|
||||
|
||||
namespace openmc {
|
||||
|
||||
const int RED = 1;
|
||||
const int GREEN = 2;
|
||||
const int BLUE = 3;
|
||||
|
||||
int openmc_plot_geometry() {
|
||||
int err;
|
||||
|
||||
for(auto i : n_plots) {
|
||||
ObjectPlot* pl = plots[i];
|
||||
|
||||
std::stringstream ss;
|
||||
ss << "Processing plot " << pl->id_ << ": "
|
||||
<< pl->path_plot_ << "...";
|
||||
write_message(ss.str(), 5);
|
||||
|
||||
if (pl->type_ == PLOT_TYPE::SLICE) {
|
||||
// create 2D image
|
||||
// create_ppm(pl);
|
||||
continue;
|
||||
} else if (pl->type_ == PLOT_TYPE::VOXEL) {
|
||||
// create voxel file for 3D viewing
|
||||
// create_voxel(pl);
|
||||
continue;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
voxel_init(hid_t file_id, const hsize_t* dims, hid_t* dspace, hid_t* dset,
|
||||
hid_t* memspace)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue