Commit graph

341 commits

Author SHA1 Message Date
Paul Romano
3eb39c514f Changes in model/triso.py from PullRequest Inc. review 2020-04-01 14:13:05 -05:00
Paul Romano
a99f15aa75 Changes in model/funcs.py from PullRequest Inc. review 2020-04-01 14:13:01 -05:00
Paul Romano
e34a71b448 Remove unused imports across entire Python API 2020-03-31 18:11:31 -05:00
Paul Romano
070a83d773
Apply @pshriwise suggestion from code review
Co-Authored-By: Patrick Shriwise <pshriwise@gmail.com>
2020-03-27 11:21:18 -05:00
Paul Romano
3e36801ea3 Update docstring for Model.run 2020-03-27 07:49:53 -05:00
alex-lyons
a7e924e545 Fix typos and redundant line 2020-03-27 07:47:57 -05:00
alex-lyons
e98ddf9d8a Model.run now returns last statepoint path rather than k_eff. Updated tests and search. 2020-03-27 07:47:54 -05:00
alex-lyons
1312a1cc63 Obtain last statepoint from a glob of output dir. Reverted regex filter in executor as this is no longer needed 2020-03-27 07:47:49 -05:00
alex-lyons
f98c34b7c9 fix comment description 2020-03-27 07:47:44 -05:00
alex-lyons
954154fa48 Changed PyAPI model and executor to read correct last statepoint after runs with trigger, including new test case 2020-03-27 07:46:47 -05:00
Paul Romano
d8ef73d037 Make sure boundary_type is passed as a keyword argument 2020-03-23 20:55:01 -05:00
Paul Romano
cf6b67c05d Remove explicit inheritance from object for Python classes 2020-03-23 12:12:31 -05:00
Ethan Peterson
3d3a27f841 applied suggestions from code review 2020-02-25 08:42:21 -05:00
rockfool
540a3ba66a clean comment for outer_radius 2019-11-07 11:30:49 -05:00
rockfool
f75db76c70 address reviewers' comment on deepcopy and tests input 2019-11-07 10:31:57 -05:00
rockfool
ae5d8cf33b change names for function and variables 2019-11-05 20:19:36 -05:00
rockfool
57cb1a37de create deepcopy in triso model and remove the unnecessary sorted fucntion 2019-11-05 11:57:28 -05:00
Paul Romano
bbb0b78383 Rename openmc.capi -> openmc.lib 2019-09-13 10:38:26 -05:00
Paul Romano
d85df13ae7 Make surfaces take coefficients as first arguments 2019-09-04 15:10:53 -05:00
Andrew Johnson
62865b3a55
Documentation fixes for pin func, depletion helpers 2019-07-29 15:57:29 -05:00
Paul Romano
a55ff7539a
Merge pull request #1276 from drewejohnson/feat-pin
Add openmc.model.pin convenience function
2019-07-15 07:21:35 -05:00
Andrew Johnson
768949a972
Add support for non-Materials to be used in pin function
Anything that can be filled by a cell can be passed to
openmc.model.pin, including Universes and lattices.
Checks are included for the volume division, as not
all supported items, like Lattice instances, have volume
attributes.

A test was added to check this capability, where a universe
is used as one of the interior elements for the pin.

Various cosmetic changes to address reviewer comments.
2019-07-12 17:08:47 -05:00
Andrew Johnson
0cebc507a9
Add support for Universe kwargs to openmc.model.pin 2019-07-12 16:45:48 -05:00
Paul Romano
9a248ad6fb Fix bug in cylinder_from_points (for real this time) 2019-07-11 06:14:53 -05:00
Andrew Johnson
044ac4ce2a
Option to divide material volumes by pin divisions 2019-07-09 20:23:54 -05:00
Paul Romano
40f89caa22 Fix cylinder_from_points function 2019-07-08 23:24:19 -05:00
Andrew Johnson
50ea1ed02a
Function based pin construction
Function openmc.model.funcs.pin has replaced the class-based
openmc.model.pin.Pin

Subdivision functionality is maintained by passing a dictionary
of integer ring indexes -> number of divisions to the function

Tests have been updated accordingly and are parametrized
against surface type: X, Y, and Z cylinders
2019-07-05 16:52:24 -05:00
Andrew Johnson
1475e25bf3
Add Universe subclass openmc.model.Pin
Designed to facilitate building universe that represent
pins, or concentric cylinders of materials. Can be built
by passing surfaces and materials, or radii and materials.
Places last material spanning region out to infinity from
the last surface.

Supports subdividing rings into equal volume slices of
unique [cloned] materials, useful for depletion.

Unit tests added for failure modes as well as basic operation
2019-06-30 15:14:14 -05:00
Andrew Johnson
1e6f15236a
fiss_q_values -> fission_q for passing q values 2019-06-28 10:30:28 -05:00
Andrew Johnson
0e125b2548
Option to pass fission q values to Chain, Operator, Model
A dictionary of constant fission q values [eV] can be passed
into the initialization of deplete.Chain, deplete.Operator,
and model.Model objects. This can be used for direct
comparisons with other codes with readily available
constant Q-values.

Tests have been added on the Chain and Operator side.
The additional fiss_q_values passed into Model is forwarded
directly on to the Operator call.
2019-06-27 11:42:18 -05:00
Paul Romano
da5f7440b1 Remove get_ from get_hexagonal_prism, get_rectangular_prism 2019-06-18 06:17:54 -05:00
Andrew Johnson
ed6c78a0e7
Fix documentation in openmc/model/model.py 2019-06-14 13:43:22 -04:00
Andrew Johnson
f1e930b8ba
Remove mention of OPENMC_DEPLETE_CHAIN in model.py 2019-06-13 19:06:07 -04:00
Paul Romano
17d778e57f Allow export_to_xml methods to take a directory 2019-03-12 11:42:51 -05:00
Paul Romano
2d13d41da3
Merge pull request #1189 from pshriwise/corner_radius
Fix for hexagonal prism convenience function
2019-03-12 06:52:05 -05:00
Paul Romano
325f9fcf72 Use lower-case argument names for surfaces consistently 2019-03-08 11:25:26 -06:00
Patrick Shriwise
758d9b45d5 Adding functools partial to model.funcs. Adding a quick test for the hexagonal prism. 2019-03-07 22:20:50 -06:00
Paul Romano
2943e38a81 Add Plane.from_points and cylinder_from_points convenience functions 2019-03-06 15:38:22 -06:00
liangjg
760baa43d6 address review comments from @paulromano 2019-01-31 12:01:55 -05:00
liangjg
cbbac7df8d refactor CE/LI and LE/QI 2019-01-23 15:08:55 -05:00
liangjg
952bddb61e update doc of openmc.deplete and openmc.Model.deplete 2019-01-21 00:00:05 -05:00
Shikhar Kumar
ee9a6ab065 So begins the CMFD Fortran purge :D (~3.6K lines) 2018-11-24 00:13:37 -05:00
amandalund
9b00c61a03 Address @paulromano comments on #1121 2018-11-19 21:55:53 -06:00
amandalund
66fe2185f3 Update TRISO tests 2018-11-14 16:04:30 -06:00
amandalund
c443208e21 Generate sphere packing container from openmc.Region 2018-11-14 16:04:30 -06:00
amandalund
1107457a90 Separate functions for packing spheres and creating TRISOs 2018-11-14 16:04:30 -06:00
amandalund
8d6541951b SphericalShellDomain extends SphericalDomain 2018-11-14 16:04:30 -06:00
amandalund
d0b1287b2e Added spherical shell domain 2018-11-14 16:04:30 -06:00
Patrick Shriwise
5cd52a4048 Fix variable name. 2018-11-07 15:23:40 -06:00
Patrick Shriwise
532667fba5 Adding a check for dagmc when exporting an OpenMC model. 2018-11-07 15:15:49 -06:00