Commit graph

140 commits

Author SHA1 Message Date
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
Gavin Ridley
a4b879ae11 additional documentation, make name changes more consistent 2021-05-08 18:51:49 -04:00
Patrick Shriwise
933bc22c0a Exposing translations through the Python CAPI. 2021-04-28 00:24:10 -05:00
Paul Romano
f813c45810 Merge pull request #1798 from ameliajo/collisionFilter
Added Collision filter
2021-04-09 08:03:02 -05:00
Patrick Shriwise
6c7c0a6816 Addressing initial review comments from @paulromano. 2021-04-07 19:07:07 -05:00
Patrick Shriwise
700d62c9ef Some cleanup (reordering of methods to match in inheritance) and including libmesh collision tallies in testing. 2021-04-07 19:06:15 -05:00
Amelia J Trainer
ab32931870 Merge branch 'develop' into collisionFilter 2021-04-07 11:22:43 -04:00
Amelia Trainer
447887645e added tests for collision filter 2021-03-25 22:42:04 +00:00
Amelia Trainer
d1d4553661 addressed some of the requested changes from PR 2021-03-25 14:21:58 -04:00
Sterling Harper
f87e074c89
Merge pull request #1759 from shikhar413/rectlin_cmfd
Support rectilinear meshes for CMFD
2021-03-09 19:30:18 -07:00
Shikhar Kumar
6cb5b8b149 Address @smharper comments 2021-03-08 20:17:44 -05:00
Shikhar Kumar
ee077b4d61 Define cmfd_src on all procs 2021-02-09 13:47:04 -05:00
Shikhar Kumar
34275f4c72 Minor bug fixes 2021-02-09 12:41:41 -05:00
Shikhar Kumar
f83ab39b99 First pass at exposing rectilinear mesh through C API 2021-02-08 22:25:17 -05:00
Miriam
1c90b5de71 typo 2021-02-09 01:14:04 +00:00
Miriam
177d61405b Docstring cleanup
Changed docstring in openmc/lib/material.py and cell.py to resemble tally.py
2021-02-09 01:00:06 +00:00
aprilnovak
0bba5833fb Allow set_contained to be passed through C-API for setting cell temperatures. Refs #1754 2021-02-04 15:59:56 -06:00
YoungHui Park
cc35910074 Add missing surf_id on source_bank field 2021-01-18 14:36:04 -06:00
Shikhar Kumar
d630746191 Address @paulromano comments 2020-12-03 10:37:13 -05:00
Shikhar Kumar
e87e5ba3dc Move CMFD reweight to cpp, minor discrepancies in regression tests 2020-11-24 22:56:31 -05:00
Paul Romano
96a66789b1 Activate need_depletion_rx for reaction rate-based depletion only 2020-09-15 10:23:31 -05:00
Paul Romano
0a61bc0cbe Account for temperature in reaction rate calculation 2020-09-15 10:23:31 -05:00
Paul Romano
77d99d499b Allow access to material temperature from openmc.lib 2020-09-15 10:23:31 -05:00
Paul Romano
b7df2d95e1 Add documentation of collapse_rate functions 2020-09-15 10:23:31 -05:00
Paul Romano
fb68943ca2 Rename one_group_xs -> collapse_rate 2020-09-15 10:23:31 -05:00
Paul Romano
b615070ad9 Add Python bindings to one_group_xs 2020-09-15 10:23:31 -05:00
Patrick Shriwise
e0689fda07 Updates to enable plotting of individual universe levels. 2020-09-03 08:29:47 -05:00
Paul Romano
45f10d013e Add CellInstanceFilter and ParticleFilter to __all__ 2020-06-24 21:17:21 -05:00
Paul Romano
32784653ec Add missing filters in openmc/lib/filter.py 2020-06-24 16:28:39 -05:00
Paul Romano
2e29ffacfe Use openmc_load_nuclide consistently 2020-06-18 13:37:50 -05:00
Shikhar Kumar
ec0b3234d9 Update getter comment 2020-06-11 11:04:20 -04:00
Shikhar Kumar
62d1a650e3 Address @promano comments 2020-06-10 20:33:11 -04:00
Shikhar Kumar
6e7f524561 Create getter funtion for n_batches, update test_lib.py 2020-06-01 21:19:06 -04:00
Shikhar Kumar
7b4db3279a Set n_batches and n_max_batches through C API 2020-06-01 18:06:31 -04:00
Paul Romano
0eae88f871
Merge pull request #1539 from rockfool/timer_reset
Reset timer in depletion for transport performance
2020-04-08 16:38:54 -05:00
Paul Romano
8af7e32fd7
Merge pull request #1543 from pshriwise/fix_init_args
Fix to openmc.lib.init arguments
2020-04-08 14:02:30 -05:00
Patrick Shriwise
40a64f785f Set argc in one place as suggested by @paulromano. 2020-04-08 09:25:45 -05:00
Paul Romano
dd283875a8 Remove restart_timers and have openmc_init/run start/stop total timer 2020-04-07 13:49:10 -05:00