Commit graph

291 commits

Author SHA1 Message Date
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
Rémi Delaporte-Mathurin
f0721ac535
Apply suggestions from code review
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
2022-11-21 14:30:36 -05:00
RemDelaporteMathurin
10a95186e3 origin is tuple + fixed any 2022-11-21 14:07:45 -05:00
RemDelaporteMathurin
f51f181761 fixed optional xml reading 2022-11-21 11:53:49 -05:00
RemDelaporteMathurin
b63ec9cdc3 read mesh optional 2022-11-21 09:48:42 -05:00
RemDelaporteMathurin
df1a45b654 origin from_hdf5 2022-11-21 09:46:13 -05:00
RemDelaporteMathurin
8681751238 check length origin 2022-11-21 09:45:11 -05:00
Rémi Delaporte-Mathurin
6d787d5fb0
Apply suggestions from code review
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
2022-11-21 09:39:01 -05:00
Rémi Delaporte-Mathurin
f60f95feb4
[skip ci] removed # TODOs 2022-11-18 09:03:35 -05:00
Patrick Shriwise
43033b656c Returning a tuple for RegularMesh.dimension 2022-10-27 14:47:16 -05:00
RemDelaporteMathurin
b874d83634 only translate when origin is not 0, 0, 0 2022-10-21 15:55:08 +02:00
RemDelaporteMathurin
b0743dfdea fixed cv.check_type origin 2022-10-21 11:56:21 +02:00
RemDelaporteMathurin
76fbdf7fbf centre to origin 2022-10-11 15:41:38 +00:00
RemDelaporteMathurin
5632a40e5c Merge branch 'develop' into centre_for_cylinder_spherical_meshes 2022-10-07 13:08:51 +00:00
RemDelaporteMathurin
21200d9b6e offsets the write_to_vtk coordinates 2022-10-07 07:42:34 +00:00
RemDelaporteMathurin
16add87c05 now reads back from xml 2022-10-07 07:18:52 +00:00