Paul Romano
c123ce0fa0
New multiply_density option on tallies ( #2539 )
2023-06-09 08:24:00 -04:00
Patrick Shriwise
a12480400b
Merge pull request #2475 from shimwell/adding_bounding_box_class
...
Adding bounding box class
2023-04-25 12:08:39 -05:00
Jonathan Shimwell
c06609cd8d
docstring lib.cell.py to match cell.py
2023-04-25 09:49:42 +01:00
stchaker
5713ef700c
update mac segfault fix format, fix python settings name
2023-04-20 12:21:10 -04:00
Paul Romano
b5d30ff553
Refactor BoundingBox implementation
2023-04-18 22:26:37 -05:00
Jonathan Shimwell
6eb26b80c6
implemented BoundingBox class
2023-04-14 13:11:01 +01:00
Paul Romano
b6d6bdf3f5
Merge branch 'develop' into mixed_ncrystal_pr
2023-01-09 13:13:14 +07:00
Paul Romano
1680a72f12
Merge pull request #2116 from ebknudsen/mcpl_input
...
Add support for MCPL files
2022-12-24 13:12:52 -06:00
Jose Ignacio Marquez Damian
91f939a391
Add flag for NCrystal
2022-11-18 18:26:31 +01:00
Paul Romano
0587aeeaa4
Allow EnergyFunctionFilter interpolation to be set from C API
2022-10-18 12:14:15 -05:00
Erik B Knudsen
3b052f03cf
expose a python function to check for mcpl
2022-10-11 16:45:54 +02:00
lewisgross1296
a8b0f1714a
mistaken, dont need _get_tally_index, we call the openmc C++ api one instead
2022-08-16 14:09:05 -05:00
lewisgross1296
5b6c6667cb
put _get_tally_index(self,key) back and forgot return in __getitem__
2022-08-16 13:43:15 -05:00
Lewis Gross
209954ee2f
change back to prevent accidental infinite recursion
...
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
2022-08-16 13:08:35 -05:00
lewisgross1296
15a863e645
suggestion by Paul Romano. removed need for _get_tally_index_ funciton by using python's fancy self[key] and self[key]._index capabilities
2022-08-15 15:01:34 -05:00
lewisgross1296
7fdd96a573
forgot a space for formatting requirements
2022-08-15 13:46:26 -05:00
Lewis Gross
c772972808
add space for compliant formatting
...
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-08-15 13:34:19 -05:00
lewisgross1296
d1775181e9
added deletion operator to TallyMapping class. used in tests and changed delete invalid id to access invalid id
2022-08-12 15:49:08 -05:00
Lewis Gross
74e093ae45
renamed function and forgot to update these commands
...
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-08-12 10:55:21 -05:00
lewisgross1296
21f7cda6bc
changed return type to match signature change
2022-08-11 14:50:57 -05:00
lewisgross1296
9d146a3e0f
added openmc_remove_tally_from_tallies to C++ API
...
in tally.py
2022-08-10 15:44:00 -05:00
Paul Romano
476fdd1bf7
Improve description of prn_seed argument in openmc.lib functions
2022-07-18 06:49:14 -05:00
Paul Romano
b1267f0544
Allow openmc_sample_external_source to produce multiple samples
2022-07-15 20:12:10 -05:00
Paul Romano
953b35e742
Add openmc_sample_external_source function and Python binding
2022-07-15 07:21:08 -05:00
Paul Romano
fdd5e10822
Release notes for 0.13.0
2022-02-04 07:19:35 -06:00
Paul Romano
ca58e14073
Apply suggestions from @pshriwise code review
...
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
2022-01-23 14:03:18 -06:00
Paul Romano
6bb6e2ec0c
Fix failing unit tests
2022-01-21 08:18:54 -06:00
Olaf Schumann
8114482084
Merge branch 'openmc-dev:develop' into mesh
2022-01-09 11:33:12 +01:00
Paul Romano
ef61563079
Ensure time is propagated to secondary particles
2022-01-05 07:43:43 -06:00
Olaf Jochen Schumann
776c6baf1f
Changes request by @gridley
2021-12-22 16:19:58 +01:00
Olaf Schumann
d723dd7f07
Add Cylindrical & Spherical Mesh for Tally Filter
...
New method for ray-tracing the mesh, used for both MeshFilter & MeshSurfaceFilter. For all Structured Meshes!
meshes
negative/positive_grid_boundary to non-virtual function for speed
MeshIndex typedef now a std::array instead of int[3] -> Get rid of pointers (see e.g. core quidelines I.13)
MeshDistance class to stroe all relevant information
2021-12-20 19:41:52 +01:00
agnelson
c9e91d42fb
Replacing manual absolute error tests with pytest.approx, improving documentation, and other small changes per the review by @paulroman.
2021-10-05 08:39:24 -05:00
agnelson
e4476fc0b7
Delayed mpi4py import until the user clearly indicated intent to use a communicator (or they already have created one and thus have already imported it); corrected versionchanged doc statements to include comments about what changed; added stackoverflow reference
2021-10-01 09:21:41 -05:00
Adam Nelson
e1365bd036
Applied suggested changes per @paulromano's code review
...
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2021-10-01 06:09:24 -05:00
agnelson
e8081207d7
Modified the C API to support setting material temperatures and to support setting the event based flag. Fixed failing MPI test.
2021-09-30 16:34:58 -05:00
agnelson
b335f82792
Made integrator quiet and fixed failing test caused by MPICommunicator types
2021-09-30 14:39:53 -05:00
agnelson
ad483b3fea
Moved the dummy communicator to being within openmc vice openmc.deplete, added test of model.calculate_volumes and model.deplete, fixed issues identified from those tests, and added a DLL quieting method (still needs to be propagated to integrator.integrate
2021-09-30 11:18:35 -05:00
agnelson
dc80b799ac
Resolving comments from @paulromano and updating tests accordingly
2021-09-29 18:51:00 -05:00
agnelson
e62ba9b85a
Upgrading tests of model, and adding better file management, Model.calculate_volumes method and Model.plot_geometry method. These last two still need to be tested as well as Model.deplete
2021-09-28 08:44:31 -05:00
agnelson
3f24c3d4e1
Added a LIB_INIT module-level flag to openmc.lib. Began process of setting up model to be able to use the C-API instead of only working with XML files
2021-09-23 16:22:42 -05:00
agnelson
ad3a14fa3d
Resolving comments from @paulromano. Namely, set the openmc.lib.Cell rotation and translations to be properties that can take iterables vice ndarrays. Also removed const declaration when not needed. Finally, revised code and tests so that we do not return a None for non-initialized cases. This would yield different behavior between translation and rotation and instead of leading to confusion I now simply always return a sensical ndarray of float values.That is no rotation is no longer None, but is now array([0., 0., 0.]).
2021-07-30 11:42:27 -05:00
agnelson
6a9d43bcdb
Added c-api methods for rotation matrix set/get
2021-07-28 05:37:13 -05:00
agnelson
1d8f4c922e
Added a set/get_translation attribute to the Cell C-API interface. This is also tested.
2021-07-27 18:30:48 -05:00
Paul Romano
ab80feb65a
Get rid of try/except block for lib.Material.get_density
2021-07-14 15:12:46 -05:00
Paul Romano
731f2975bb
Replace lib.Material.density property with get_density method
2021-07-13 06:57:33 -05:00
Paul Romano
024b1080fd
Update id_map docstring
2021-07-12 07:28:21 -05:00
Paul Romano
329dff2018
Add tests for export_properties and import_properties
2021-06-24 15:36:41 +07:00
Paul Romano
33f7d09f71
Use names import_properties and export_properties for Python API
2021-06-24 14:26:50 +07:00
Paul Romano
01b023b7ec
Include cell instance in id_map
2021-06-24 12:09:59 +07:00
Paul Romano
482848cadb
Add openmc_properties_export/import to C API (incomplete)
2021-06-23 11:25:42 +07:00