Paul Romano
b489cd628f
Support periodic boundaries in rectangular_prism
2021-04-14 09:44:12 -05:00
Patrick Shriwise
654d27a3e5
Typo fix in RectangularParallelepiped.__pos__ method.
2020-11-12 12:43:40 -06:00
Paul Romano
f3dd04ebcc
Add some value checks on parameters for composite surfaces
2020-07-09 16:07:56 -05:00
Paul Romano
0ce9490187
Remove (incomplete) Box composite surface
2020-07-08 21:21:51 -05:00
Paul Romano
f3a88bc3f9
Address @eepeterson comments on #1602
2020-07-08 21:21:43 -05:00
Paul Romano
9bbd63185b
Remove Surface as parent class of composite surfaces
2020-07-06 21:46:43 -05:00
Paul Romano
f24a058624
Fix rotate and add boundary_type property on composite surfaces
2020-07-06 10:32:10 -05:00
Paul Romano
df7b525306
Add docstrings to composite surface classes
2020-07-06 10:32:10 -05:00
Paul Romano
37ab9c7560
Add composite surfaces
2020-07-06 10:32:10 -05:00
Paul Romano
5547ecf88f
Add versionadded directive for new arguments/functions in 0.12
2020-04-10 21:52:43 -05:00
Paul Romano
4943ae9307
Alphabetize import ordering (and use relative imports in a few places)
2020-04-06 15:16:09 -05:00
Paul Romano
945b80f8fd
Address most @pshriwise comments on #1538
2020-04-06 13:24:20 -05:00
Paul Romano
d5b54e8cb5
Consistent use of ABC instead of ABCMeta where possible
2020-04-01 14:13:05 -05:00
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