Commit graph

329 commits

Author SHA1 Message Date
Boris Polania
9b675adda5
Introduce SlicePlot and VoxelPlot to replace the Plot class (#3528)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-12-05 20:17:09 +00:00
Ilham Variansyah
ecb0a3361f
Combing for fission site sampling, and delayed neutron emission time (#2992)
Co-authored-by: Gavin Ridley <gavin.keith.ridley@gmail.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-09-19 08:10:08 +00:00
Paul Romano
55b52b7ef3
Release of version 0.15.0 (#3050) 2024-06-22 01:28:56 +00:00
Paul Romano
89d4dafa5a
Implement policy for Python, C++, and CMake versions (#3035) 2024-06-17 16:00:45 -05:00
Erik B Knudsen
1702b4554b
Restricted file source (#2916)
Co-authored-by: church89 <l.chierici89@gmail.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2024-05-15 15:49:04 -05:00
Gavin Ridley
b53b601edc
Tiny updates from experience building on Mac (#2894)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2024-04-20 05:44:40 +00:00
John Tramm
5111aa2621
Random Ray Transport (#2823)
Co-authored-by: Gavin Ridley <gavin.keith.ridley@gmail.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2024-04-18 22:10:16 +00:00
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
28b8f9ecc5 Change Operator --> CoupledOperator in a few places 2022-08-15 13:35:04 -05:00
Paul Romano
8bfb1889b9 Rename deplete.ResultsList -> deplete.Results 2022-06-03 09:04:00 -05:00
Paul Romano
0b77cc7edc Allow normal instantiation of ResultsList (instead of from_hdf5) 2022-06-03 09:03:57 -05:00
Paul Romano
45a6b31c8f Change StatePoint.k_combined -> keff, ResultsList.get_eigenvalue -> get_keff 2022-05-02 12:09:43 -05:00
Jonathan Shimwell
504d58f045 passing arg of type material not string 2022-03-03 18:18:39 +00:00
Paul Romano
056026428f Some cosmetic improvements in examples 2022-02-04 07:19:42 -06:00
Paul Romano
2ccbf0669b Update pincell depletion example plots 2022-01-09 15:47:08 -06:00
Paul Romano
bdec975923 Fix material density in ResultsList.export_to_materials 2022-01-09 13:11:27 -06:00
Patrick Shriwise
7472e330be Updating pincell depletion example. 2021-10-08 09:21:03 -05:00
Paul Romano
f0e0806fd9 Remove Jupyter notebooks from documentation 2021-07-15 10:07:15 -05:00
Patrick Shriwise
1e3a38a96d Merge remote-tracking branch 'upstream/develop' into dagmc_universe 2021-06-30 09:12:35 -05:00
Patrick Shriwise
ff5b73d4d9 Addressing suggestions from @paulromano. 2021-06-28 08:57:20 -05:00
Patrick Shriwise
8d36b9b813 Add a note about unable to write errors for summary/statepoint files on OpenMC re-runs from Python API. 2021-06-26 21:28:35 -05:00
Patrick Shriwise
d331410784 Updating jupyter notebooks to either use context managers or close SP files. 2021-06-26 18:36:04 -05:00
Patrick Shriwise
983470ed4e Adding StatePoint.close(). Updating some examples. 2021-06-25 09:54:00 -05:00
Patrick Shriwise
a754f34e60 Updating the CAD notebook to remove . 2021-05-19 19:04:55 -05:00
Patrick Shriwise
a06b906da6 Updating example notebooks. 2021-05-19 18:05:28 -05:00
Gavin Ridley
a215e39182 remove all occurrences of Particle::{Bank,Type} 2021-05-03 18:03:06 -04:00
Patrick Shriwise
2897a8188a Updating example notebook to include some information about using libmesh meshes. 2021-04-07 19:07:07 -05:00
Patrick Shriwise
02f8804fe3 Updating umesh example notebook to include libmesh route. 2021-04-07 19:07:07 -05:00
Patrick Shriwise
e9a13d67ab Updating unstructured mesh examples to include the library argument in Python classes. 2021-04-07 19:07:07 -05:00
Paul Romano
95177d8888
Apply @drewejohnson suggestions from code review
Co-authored-by: Andrew Johnson <drewejohnson@users.noreply.github.com>
2021-03-18 06:39:34 -05:00
Paul Romano
26484bf3b5 Add header block on C API notebook 2021-03-17 07:34:01 -05:00
Paul Romano
ec93c74253 Move C API notebook to examples/jupyter directory 2021-03-17 07:34:01 -05:00
Paul Romano
0ef1f95978 Fix broken links, use https over http, replace redirects 2021-03-17 07:31:47 -05: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
Paul Romano
7228bba307 Use nbsphinx for rendering Jupyter notebooks in documentation 2020-10-14 07:57:52 -05:00
Gavin Ridley
350df166fb fix ResultsList construction in pincell_depletion restart example 2020-10-08 19:57:36 -04:00
Paul Romano
6ab74d1278
Merge pull request #1640 from cjwyett/develop
Making the example modelling more consistent and repetitive.
2020-08-31 13:53:24 -05:00
Cyrus Wyett
e6aada5975
Update examples/jupyter/hexagonal-lattice.ipynb
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2020-08-31 14:07:03 +01:00
Paul Romano
726adfb46c
Merge pull request #1623 from DanShort12/serialised_custom_source
Add support for serialized custom sources
2020-08-31 07:35:49 -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
Cyrus Wyett
7eab3055f5
Another iteration on hexagonal lattice.
In the original example the rings were constructed as 'inner_ring', 'outer_ring' and 'middle_ring'. This naming convention only really works for 3-ringed lattices.   

The example has been slightly modified to contain a fourth ring. The lattice is constructed as:

`lattice.universes = [outer_ring, ring_1, ring_2, inner_ring]`

Which is much more translatable to lattices of any size. 

This commit also incorporates feedback on the criticality search tutorial changes.
2020-08-28 08:55:12 +01:00
Cyrus Wyett
b1d309faaa
Clearer naming in candu and triso
There is a loop in candu that isn't incredibly readable, although I'm not quite sure how/if it can be improved:
`for i, (r, n, a) in enumerate(zip(ring_radii, num_pins, angles)):
    for j in range(n):`
Also de-abbreviated some of triso, e.g:
`trisos = [openmc.model.TRISO(outer_radius, triso_univ, c) for c in centers]`
Became:
`trisos = [openmc.model.TRISO(outer_radius, triso_univ, center) for center in centers]`

Let me know if you don't like it and it'll be changed.
2020-08-26 05:16:47 +01:00
Cyrus Wyett
148ca44c45
Incorporate feedback on settings definition
Also got rid of warnings by removing manually set ID's for cells. The ID for zirconium, for example was set to 2 which conflicted with an already defined material with an automatically generated ID of 2. Same for some others.

There is a part of the notebook that talks about ID's so I left that one alone. After the central point about ID's is made there's little point in keeping them in for the cells (unless you like looking at pink warning messages).
2020-08-25 15:11:46 +01:00
Cyrus Wyett
59ce6d1a7b
Mistake: Uploaded the correct files for hexagonal and search 2020-08-25 13:35:54 +01:00
Cyrus Wyett
befc9e6fe9
Clean up criticality search (pls read comment)
Did a bit more for this one:
a) Got rid of warning messages that came from setting the root universe's ID to 0.
b) Moved source building to above the settings definition (rather than in the middle of it.)  
c) Removed `bracketed_method='bisect'` as this is the default argument.

Perhaps there should be a default tolerance as well? And is there a good reason to default `print_iterations` to false?
2020-08-25 12:40:41 +01:00
Cyrus Wyett
284871e0ba
cleanup hexagonal lattice 2020-08-25 12:19:44 +01:00