Commit graph

14 commits

Author SHA1 Message Date
Paul Romano
ac941f79e0
Add RectangularPrism and HexagonalPrism composite surfaces (#2739)
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
2023-11-01 09:13:40 -05:00
Patrick Shriwise
8cc1c33463
Updating source definitions in examples (#2571) 2023-06-22 21:36:33 -05:00
Patrick Shriwise
eda39ad9ca
Python source class refactor (#2524)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-06-20 21:27:55 -05:00
Paul Romano
056026428f Some cosmetic improvements in examples 2022-02-04 07:19:42 -06:00
Gavin Ridley
a215e39182 remove all occurrences of Particle::{Bank,Type} 2021-05-03 18:03:06 -04:00
Paul Romano
9af5541e88 Make Source::sample() method const 2020-10-27 10:02:03 -05:00
Paul Romano
0bb39005bc Rename source classes 2020-10-23 14:11:34 -05:00
Paul Romano
713469bf59 Make regular source distributions obey the same interface as custom sources 2020-10-22 15:07:28 -05:00
Dan Short
21e8d91e90 Requested updates to source
Rename sample_source -> sample.
Use std::string as type of argument to openmc_create_source.
Use reinterpret_cast when accessing dlsym.
Also moves check for dlerror to be before the attempt to create the
source (avoids null reference if fails) and capture error message
before dlclose, so that the error message is still available.
Formatting updates and some refactoring for examples and tests.
2020-08-28 09:49:36 +01:00
Dan Short
821e7d9825 Remove old source_sampling custom source method
Custom sources are now created only through the new class-based method,
which supports parameterization.
New method also slightly adjusted to create the source as managed by a
unique_ptr.
Examples and tests updated to align with this approach.
Documentation updated.
2020-08-21 12:05:43 +01:00
Paul Romano
1e411cad52 Update README for custom source example, moving comment from show_flux.py 2020-03-19 13:34:49 -05:00
Paul Romano
32f5fd8854 Add README to custom source example 2020-03-19 07:08:59 -05:00
Paul Romano
c3ffc2f417
Apply @pshriwise suggestions from code review
Co-Authored-By: Patrick Shriwise <shriwise@wisc.edu>
2020-03-17 16:49:53 -05:00
Paul Romano
4525e38797 Move Python examples into subdirectory 2020-03-13 16:15:35 -05:00