Commit graph

90 commits

Author SHA1 Message Date
Patrick Shriwise
301f15139f Correction to plot level and index check. 2020-09-03 22:30:46 -05:00
Patrick Shriwise
9c62259645 Adjusting the level value. 2020-09-03 08:29:47 -05:00
Patrick Shriwise
e0689fda07 Updates to enable plotting of individual universe levels. 2020-09-03 08:29:47 -05:00
Paul Romano
6992e53398 Change declaration order of maps used for vectors
If the destructor of an object tries to remove an entry from the map, there's no
guarantee it exists if the map has already been destroyed (because it was
declared after the vector of objects), resulting in a segfault. By declaring the
map first, we avoid this. Currently an issue for Nuclide, but potentially other
classes in the future.
2020-07-29 15:48:14 -05:00
Paul Romano
9dab8bf507 Use references consistently in geometry functions 2020-04-23 16:37:23 -05:00
Paul Romano
2a230cd739 More use of fmt::print and fmt::format 2020-02-10 10:33:57 -06:00
John Tramm
12ec9bacff cleanup of comments and adding some parameter descriptions for altered function prototypes 2019-11-22 22:56:16 +00:00
John Tramm
44ba6805dc added seeds to the plotting model namespace so that if multiple plots are called, they will have different colors 2019-11-22 18:23:16 +00:00
John Tramm
5502f38580 partially done with refactoring 2019-11-21 22:19:15 +00:00
Patrick Shriwise
89c0d06b30 Moving a few defaults into the class def. 2019-06-14 11:15:16 -05:00
Patrick Shriwise
5e323539ff Update include/openmc/plot.h
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2019-06-14 11:15:16 -05:00
Patrick Shriwise
43959714ee Allowing overlap color setting via plots.xml 2019-06-14 11:15:16 -05:00
Patrick Shriwise
e837f2eb19 Adding an xml setting for the showing the overlaps. 2019-06-14 11:15:16 -05:00
Patrick Shriwise
552ab71a50 Making sure default colors aren't being used. 2019-06-14 11:15:16 -05:00
Patrick Shriwise
5c78cd6259 Correcting a couple of issues in setting the OVERLAP value and color. 2019-06-14 11:15:16 -05:00
Patrick Shriwise
02b07a52b6 Adding overlap coloring. 2019-06-14 11:15:16 -05:00
Paul Romano
1d5242ede1 Fix a whole bunch of -Wall warnings 2019-03-26 14:11:47 -05:00
Patrick Shriwise
43914d4204 Re-correcting direction and updating _Position tests. 2019-03-19 08:44:36 -05:00
Patrick Shriwise
abd417c5f6 Updating other signatures to match new pixels_ type. 2019-03-19 08:44:36 -05:00
Patrick Shriwise
2e2ec4a412 Addressing narrowing warning. 2019-03-19 08:44:36 -05:00
Patrick Shriwise
656df47365 Addressing a couple style issues. 2019-03-19 08:44:36 -05:00
Patrick Shriwise
805c336597 Updating template parameter, moving generate_dat def to header, renaming generate_data->gen_map and removing additional indirection. 2019-03-19 08:44:36 -05:00
Patrick Shriwise
2b1d2917f7 Addressing some comments from @promano in the PR. 2019-03-19 08:44:36 -05:00
Patrick Shriwise
2d144e21ac Updating/adding some docstrings. 2019-03-19 08:44:36 -05:00
Patrick Shriwise
2c598129da Removing position_rgb function. 2019-03-19 08:44:36 -05:00
Patrick Shriwise
e696374a91 Renaming the data attribute. 2019-03-19 08:44:36 -05:00
Patrick Shriwise
9c48ee69a4 Removing now-unused function. 2019-03-19 08:44:36 -05:00
Patrick Shriwise
3ab8680d5e Updates to voxel plotting, need to investigate differences. 2019-03-19 08:43:41 -05:00
Patrick Shriwise
09258c5b79 Plots working as before using the single loop. 2019-03-19 08:43:41 -05:00
Patrick Shriwise
49ee1c4048 Making datasets structs with set_value methods instead of templating setters. 2019-03-19 08:42:59 -05:00
Patrick Shriwise
1d78df26eb Generalizing slice operation. Using templates to specialize data returned. 2019-03-19 08:42:59 -05:00
Patrick Shriwise
263f70642c Renaming ID data structure. 2019-03-12 11:53:50 -05:00
Patrick Shriwise
1e7271d0b4 Going back to PlotBase. Makes more sense as Plot inherits from it. 2019-03-12 11:53:50 -05:00
Patrick Shriwise
c97d046bc6 Self review. 2019-03-12 11:53:50 -05:00
Patrick Shriwise
1f13efecdb Rebase updates. 2019-03-12 11:53:50 -05:00
Patrick Shriwise
a371f402a2 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.
2019-03-12 11:53:50 -05:00
Patrick Shriwise
b8fec08eeb Some adjustments to the CPlot class. Moving attributes it doesn't need back to the main Plot class. 2019-03-12 11:53:50 -05:00
Patrick Shriwise
177aff1a8d Separating Plot class into a C-compatible version for external use. Adding a function for returning an ID map. 2019-03-12 11:53:50 -05:00
Paul Romano
627ee79f0c Move read_materials_xml and read_plots_xml to C++ 2019-02-20 15:45:30 -06:00
Paul Romano
6393db8daa Put plots in model namespace 2018-11-14 15:00:16 -06:00
Patrick Shriwise
dc3a7e726f Trailing whitespace removal. 2018-11-02 23:08:51 -05:00
Patrick Shriwise
bcc26f96ab Throwing error for incorrect vector size in RGBColor constructor. 2018-11-02 23:06:19 -05:00
Patrick Shriwise
daffe0923d Removing RGB index defs. Writing to ppm more cleanly. 2018-11-02 22:33:09 -05:00
Patrick Shriwise
3c3c3fb282 Renaming rdm_color function. 2018-11-02 22:07:51 -05:00
Patrick Shriwise
8fab7f4217 Moving RGBColor to uint8_t. 2018-10-31 17:55:18 -05:00
Patrick Shriwise
fd6ee5938d Taking advantage of the RGBColor struct. 2018-10-31 15:42:08 -05:00
Patrick Shriwise
be10bc1781 Making RGBColor a struct. 2018-10-31 15:26:32 -05:00
Patrick Shriwise
43488e0286 Use unsigned char in RGBColor. 2018-10-31 15:14:14 -05:00
Patrick Shriwise
66bdf04511 Updating RGBColor to a char array. 2018-10-30 22:30:45 -05:00
Patrick Shriwise
51578a7342 Style correction. 2018-10-30 22:05:01 -05:00