Commit graph

256 commits

Author SHA1 Message Date
Paul Romano
f14fc55e60
Add bounding_box property to RectilinearMesh and UnstructuredMesh (#2861) 2024-01-30 21:24:30 -06:00
Paul Romano
fb65dfd53c
Avoid high memory use when writing unstructured mesh VTK files (#2806) 2023-12-14 10:49:59 -06:00
Paul Romano
3efd24289d
Fix creation of meshes when from loading settings from XML (#2805) 2023-12-13 08:41:51 -06:00
Jonathan Shimwell
a833c176ab
Adding get cylindrical mesh index at specified coordinates (#2782)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-12-12 13:29:43 -06:00
Patrick Shriwise
19f121a45a
Python mesh coordinates reorder (#2730)
Co-authored-by: Ethan Peterson <eepeterson3@gmail.com>
2023-11-01 11:19:27 -06:00
Paul Romano
94f02ae10b
Bump version to 0.14.0-dev (#2740) 2023-10-31 16:55:19 -05:00
Patrick Shriwise
e851c57b7b
Correct cylindrical/spherical centroids. (#2736) 2023-10-20 10:14:11 -05:00
Patrick Shriwise
55a682d44d
Property name swap for points in local mesh coordinates (#2732) 2023-10-19 16:29:50 -05:00
Patrick Shriwise
4d3a198c52
Updates to mesh vertices and centroids (#2711) 2023-10-17 11:21:57 -04:00
Patrick Shriwise
f7bb27e0d9
Making z-grid relative to the mesh origin in from_domain. (#2710) 2023-09-27 18:46:53 +00:00
Paul Romano
0c6da383b6
Ensure that property setters are used in CylindricalMesh and SphericalMesh (#2709) 2023-09-26 22:17:49 -05:00
Jonathan Shimwell
be7a9c375a
cylindrical mesh lower left Z value corrected (#2684) 2023-09-05 22:25:47 -05:00
Jonathan Shimwell
a42b9ba4f9
cy mesh origin from start of z_grid and _r_grid (#2680) 2023-09-04 16:08:47 -05:00
Jonathan Shimwell
2de2023c05
Adding missing origin to CylindricalMesh.from_domain (#2676)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-09-04 08:52:23 +01:00
Christopher Billingham
75a5d84a5b
Cylindrical bb (#2621)
Co-authored-by: Jonathan Shimwell <drshimwell@gmail.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-08-06 09:26:48 +00:00
Christopher Billingham
cce80fe7da
Spherical bb (#2620)
Co-authored-by: Jonathan Shimwell <drshimwell@gmail.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-08-06 00:31:38 +00:00
Jonathan Shimwell
557880aefc
Allowing CylindricalMesh and SphericalMesh to be fully made via constructor+ type hints (#2619)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-08-05 16:16:42 -04:00
Jonathan Shimwell
7397dae12d
Mesh dimension doc string to include order details (#2610) 2023-07-22 01:45:13 +00:00
Jonathan Shimwell
50c3103ca3
Adding type hints to meshes (#2601)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-07-21 17:08:02 +00:00
Jonathan Shimwell
ee7b95245a
Static errors continuation (#2557)
Co-authored-by: Christina Cai <chrsitinacai48933@gmail.com>
Co-authored-by: christinacai123 <63215816+christinacai123@users.noreply.github.com>
2023-06-16 22:34:02 -05:00
Patrick Shriwise
0fcb174b2a
Add support for curvilinear elements when exporting cylindrical and spherical meshes to VTK (#2533)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-06-16 15:17:33 -05:00
Patrick Shriwise
7479a9022a
Fix spherical coords again. (#2538) 2023-06-06 12:01:59 -04:00
Jonathan Shimwell
3a939299ea
adding BoundingBox.extent and RegularMesh.bounding_box (#2507) 2023-05-22 16:32:19 -05:00
Patrick Myers
1cb22075ef
Changed xml to lxml (#2489) 2023-05-09 10:41:04 -05:00
Rémi Delaporte-Mathurin
10f2a945ca
Merge branch 'develop' into centre_for_cylinder_spherical_meshes 2023-03-22 10:08:32 -04:00
Patrick Shriwise
2d573c3fa1
Merge branch 'develop' into centre_for_cylinder_spherical_meshes 2023-03-16 11:26:40 -05:00
Patrick Shriwise
c487090b3f Correcting spherical to cartesian coordinate conversion 2023-03-08 17:29:04 -06:00
Patrick Shriwise
527f5f70aa
Merge branch 'develop' into centre_for_cylinder_spherical_meshes 2023-03-06 13:37:24 -06:00
Rémi Delaporte-Mathurin
308be3f1ea
Update openmc/mesh.py
Co-authored-by: Ethan Peterson <ethan.peterson@mit.edu>
2023-02-27 16:23:45 -05:00
Rémi Delaporte-Mathurin
972e1c12ec
[skip ci] Minor refactoring
Co-authored-by: Ethan Peterson <ethan.peterson@mit.edu>
2023-02-27 16:22:10 -05:00
RemDelaporteMathurin
9ca6f1b65b fixed docstrings for origin 2023-02-27 16:13:31 -05:00
RemDelaporteMathurin
c61e735a70 empty_like instead of copy 2023-02-27 16:10:55 -05:00
RemDelaporteMathurin
2f9f500542 removed check and always offset origin 2023-02-27 16:10:27 -05:00
Patrick Shriwise
a270d4c01a Using vertices property where possible. Correcting volume ordering in normalization 2023-02-23 23:39:03 -06:00
RemDelaporteMathurin
c634a14674 added origin to docstrings 2023-02-17 10:56:42 -05:00
Paul Romano
61b30f5dcc
Merge pull request #2334 from pshriwise/umesh_sampling
Unstructured Mesh Sampling Updates
2023-02-16 07:24:13 -06:00
Patrick Shriwise
3d548c882f Addressing latest comments from @paulromano 2023-02-13 09:52:17 -06:00
Patrick Shriwise
75fe7f00a9
Apply code suggestions from @paulromano
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-02-13 09:40:21 -06:00
Patrick Shriwise
283e3ee6aa Adjust the read_meshes function to search only for mesh elements directly below the element passed in 2023-02-03 22:55:47 -06:00
Patrick Shriwise
fc67b38ba4 Adding roundtrip test for mesh sampling 2023-02-03 20:11:35 -06:00
RemDelaporteMathurin
90995dc512 Merge branch 'develop' into centre_for_cylinder_spherical_meshes 2023-02-02 08:47:28 -05:00
Rémi Delaporte-Mathurin
a51d31ec78
Update openmc/mesh.py
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-01-28 08:50:45 -05:00
Rémi Delaporte-Mathurin
198b5bdad4
Update openmc/mesh.py
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-01-28 08:50:39 -05:00
RemDelaporteMathurin
c84336878b replace is_flat by a one-line check 2023-01-27 08:58:10 -05:00
RemDelaporteMathurin
ba1cd67d52 added test to catch bug + fix 2023-01-27 08:32:02 -05:00
Patrick Shriwise
3703fdbdd7 Adding origin to sphere and cyl mesh str 2023-01-26 14:15:08 -06:00
RemDelaporteMathurin
a976703556 Raise error if mesh is flat 2023-01-26 14:06:48 -05:00
Patrick Shriwise
03811745a0 Skip mesh elements without an ID due to overlap in name with WW element 2022-12-29 09:23:14 -06:00
Ethan Peterson
3794673c70
Apply suggestions from code review
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
2022-11-27 15:54:03 -05:00
Ethan Peterson
5a716f1f3a moved coordinate axis to 0 2022-11-22 11:01:18 -05:00