Commit graph

32 commits

Author SHA1 Message Date
GuySten
ef22558f4a
fix a bug in borated_water temperature assignment (#3662) 2025-11-29 16:28:18 +01:00
Jonathan Shimwell
5d2b352025
f strings instead of .format for string editing (#2987) 2024-04-29 16:45:37 -05: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
Yuvraj Jain
693314d097
Leaky and Albedo Boundary Conditions Implementation (#2724)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-10-30 16:51:31 -04:00
Olek
922b3f9de6
Cylindrical prism with optional filleted edges (#2309)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
Co-authored-by: Paul Wilson <paul.wilson@wisc.edu>
2023-07-18 12:11:06 -05:00
valeriogiusti
249c3618d4
Update funcs.py
This modification will eliminate the warning:
/home/valerio/.local/lib/python3.8/site-packages/openmc/surface.py:1510: FutureWarning: "ZCylinder(…) accepts an argument named ‘r’, not ‘R’. Future versions of OpenMC will not accept the capitalized version.
warn(_WARNING_UPPER.format(type(self).name, ‘r’, ‘R’)
2021-12-17 17:19:02 +01:00
Paul Romano
b489cd628f Support periodic boundaries in rectangular_prism 2021-04-14 09:44:12 -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
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
d8ef73d037 Make sure boundary_type is passed as a keyword argument 2020-03-23 20:55:01 -05:00
Ethan Peterson
3d3a27f841 applied suggestions from code review 2020-02-25 08:42:21 -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
Paul Romano
da5f7440b1 Remove get_ from get_hexagonal_prism, get_rectangular_prism 2019-06-18 06:17:54 -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
Sterling Harper
d34bdf9b98 Address #967 comments 2018-02-11 18:39:06 -05:00
Sterling Harper
9c53c085d6 Change boric_acid to borated_water; add more units 2018-02-11 15:01:51 -05:00
Paul Romano
d3d6dc87dc Remove a few more __future__ imports. Use collections.abc 2018-02-05 23:14:30 -05:00
Paul Romano
c428cee667 Remove __future__ and six imports 2018-02-05 23:14:30 -05:00
Paul Romano
6e9b8a5ce5 Move get_*_prism functions to openmc.model 2017-12-11 13:01:18 +07:00
Paul Romano
198df07311 Add subdivide convenience function 2017-12-11 13:01:18 +07:00