mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Correction to n_coord reset on particle for proper handling of universes.
Renaming CPlot to PlotBase and adding a capi test. Mirroring use of Bank in the capi. Updating header name. Adding documentation to capi plot module. Removing plot base header and struct.
This commit is contained in:
parent
b0bafee385
commit
a371f402a2
5 changed files with 125 additions and 53 deletions
|
|
@ -20,7 +20,7 @@ namespace openmc {
|
|||
//===============================================================================
|
||||
|
||||
class Plot;
|
||||
class PlotC;
|
||||
|
||||
|
||||
namespace model {
|
||||
|
||||
|
|
@ -74,21 +74,16 @@ enum class PlotColorBy {
|
|||
//===============================================================================
|
||||
// Plot class
|
||||
//===============================================================================
|
||||
|
||||
|
||||
// plot class for interaction with external code
|
||||
class CPlot {
|
||||
|
||||
public:
|
||||
struct Slice {
|
||||
// Members
|
||||
Position origin_; //!< Plot origin in geometry
|
||||
Position width_; //!< Plot width in geometry
|
||||
PlotBasis basis_; //!< Plot basis (XY/XZ/YZ)
|
||||
std::array<int, 3> pixels_; //!< Plot size in pixels
|
||||
int pixels_[3]; //!< Plot size in pixels
|
||||
int level_; //!< Plot universe level
|
||||
};
|
||||
|
||||
|
||||
class Plot : public CPlot
|
||||
class Plot : public Slice
|
||||
{
|
||||
|
||||
public:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue