Commit graph

341 commits

Author SHA1 Message Date
Paul Romano
7bbf5466e6 Add missing versionadded directives 2023-03-28 13:34:14 -05:00
Paul Romano
2630dbf4bc
Merge pull request #2362 from eepeterson/polygon_fix
try to constrain triangulation
2023-03-25 15:30:42 -05:00
Ethan Peterson
11e618fe81 adding export_to_xml to run and updating tests 2023-03-24 18:54:54 -04:00
Ethan Peterson
2f5428f739
Update openmc/model/surface_composite.py
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
2023-03-24 12:13:00 -04:00
Patrick Shriwise
a4f498c54f
Merge pull request #2429 from keckler/volume_calculation
Fix small typo in error message
2023-03-17 10:03:36 -05:00
Chris Keckler
c275933aae Fix small typo in error message 2023-03-16 21:24:53 -07:00
Paul Romano
3e6441a0d9 Address @shimwell comments on #2412 2023-03-16 09:45:29 -05:00
Patrick Shriwise
461fd54f11 Updating doc strings 2023-02-16 13:53:57 -06:00
Ethan Peterson
1a2d1237da
Update openmc/model/surface_composite.py
Co-authored-by: Jonathan Shimwell <drshimwell@gmail.com>
2023-02-16 12:27:15 -05:00
Baptiste Mouginot
760ff7e34c fix return _materiaLs_by_id 2023-02-14 15:12:04 +01:00
Baptiste Mouginot
68a0ec7936 fix return _materiaLs_by_id 2023-02-14 15:05:37 +01:00
Ethan Peterson
637080a0c2 address comments from @hassec review 2023-02-06 15:52:46 -05:00
Ethan Peterson
78b0fbaa27 finished polygon self-intersection check 2023-02-05 22:02:14 -05:00
Ethan Peterson
e20e648690 check for duplicate points 2023-01-30 19:40:00 -05:00
Ethan Peterson
4fade673a7 refactor to single validate_points method 2023-01-25 16:27:12 -05:00
Ethan Peterson
afbbc3d845 try to constrain triangulation 2023-01-24 23:00:27 -05:00
Paul Romano
25f2bd50f9 Several small fixes 2022-12-22 18:27:42 -06:00
Patrick Shriwise
2eca57a299 Adding mesh memo to Settings.from_xml_element 2022-12-13 23:16:57 -06:00
Patrick Shriwise
f3bcad37b7 Addressing comments from @paulromano 2022-12-12 21:30:05 -06:00
Patrick Shriwise
145594ebb8
Apply @paulromano suggestions from code review
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-12-12 20:23:49 -06:00
Patrick Shriwise
9c942db45e Correct use of mesh memo in single XML export 2022-12-07 10:10:22 -06:00
Patrick Shriwise
ef13643f29 Some housekeeping in the Python classes 2022-12-07 08:28:23 -06:00
Patrick Shriwise
d639d1dc1b Docstring correction 2022-12-06 14:41:11 -06:00
Patrick Shriwise
574845b18b Moving Model.from_separate_xmls back to Model.from_xml. 2022-12-06 13:18:31 -06:00
Patrick Shriwise
cd7c3bf6ba Updates to import/export methods suggested by @paulromano 2022-12-06 13:03:38 -06:00
Patrick Shriwise
5d1ead2e6a Addressing some more PR comments. A couple of typo fixes too. 2022-12-06 13:03:38 -06:00
Patrick Shriwise
6f7a6febd3 Updating model XML file format w/ indentation. 2022-12-06 13:03:38 -06:00
Patrick Shriwise
d9847163e8 Adding ability to specify an input filename to the executable or to the python exec 2022-12-06 13:03:38 -06:00
Patrick Shriwise
b76825fa9f Addressing some comments from PR 2022-12-06 13:03:38 -06:00
Patrick Shriwise
d034e1de9c Apply suggestions from code review
Incorporating suggestions from @paulromano

Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-12-06 13:03:38 -06:00
Patrick Shriwise
1e7dbe99cf Making sure meshes are only written once to a model.xml file 2022-12-06 13:03:38 -06:00
Patrick Shriwise
021bb280c9 Adding initial test for exporting model.xmls. Correcting material maps 2022-12-06 13:03:38 -06:00
Patrick Shriwise
b4dcc30f92 Removing walrus operator 2022-12-06 13:03:38 -06:00
Patrick Shriwise
2e716589a1 Other bug fixes 2022-12-06 13:03:38 -06:00
Patrick Shriwise
9391f17cff Adding import for single or multiple XMLs 2022-12-06 13:03:38 -06:00
Patrick Shriwise
7a9d8c95af Keeping old option to write separate XMLs so I can still use to tests to make sure I don't break stuff. 2022-12-06 13:03:38 -06:00
Patrick Shriwise
a09a61e77b Writing all output under a single root node 2022-12-06 13:03:38 -06:00
Patrick Shriwise
ad746cb3e1 Writing all main nodes to a single XML file 2022-12-06 13:03:38 -06:00
Ethan Peterson
2283e08fdc add abs_tol to prevent cones with infinite or 0 slope 2022-11-10 13:00:11 -05:00
Ethan Peterson
2adbe97194 updated algorithms and documentation 2022-11-10 11:15:24 -05:00
Ethan Peterson
d314bedbd7 improving documentation and style 2022-11-10 11:15:24 -05:00
Ethan Peterson
b0d71b3146 Apply suggestions from @paulromano code review
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-11-10 11:15:24 -05:00
Ethan Peterson
8ddb045c7d added warning about non-transmissive boundary_type 2022-11-10 11:15:24 -05:00
Ethan Peterson
a587f5e1c9 forgot to remove print 2022-11-10 11:15:24 -05:00
Ethan Peterson
fdc3cfcfbb fixed proper boundary_type setting? 2022-11-10 11:15:24 -05:00
Ethan Peterson
299525984f simplified offset method 2022-11-10 11:15:24 -05:00
Ethan Peterson
bf58a46a9c cleaning up and moving all methods to instance methods rather than module 2022-11-10 11:15:24 -05:00
Ethan Peterson
a26dcc65b7 cleaning up/consolidating functions 2022-11-10 11:15:24 -05:00
Ethan Peterson
3fe2bf4cb6 cleaning up unnecessary methods 2022-11-10 11:15:24 -05:00
Ethan Peterson
f6f2ed7b17 got other basis sets working 2022-11-10 11:15:24 -05:00