Commit graph

172 commits

Author SHA1 Message Date
Paul Romano
187160d082
Ability to compute material volume fractions over mesh elements (#2802) 2024-01-19 09:01:18 -06:00
Patrick Shriwise
4fa3fbcb19
Make creation of spatial trees based on usage for unstructured mesh. (#2815) 2024-01-17 12:32:05 -06:00
Patrick Shriwise
e0d03812b9
Mesh Source Class (#2759)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
Co-authored-by: Jonathan Shimwell <drshimwell@gmail.com>
2023-12-02 17:35:23 +00:00
Patrick Shriwise
610a5d8c34
Global Weight Window Generation via CAPI (#2359)
Co-authored-by: Jonathan Shimwell <drshimwell@gmail.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-06-09 10:47:27 -05:00
Paul Romano
f3969daa4a Ensure compilation with gcc 5 works (refs #2474) 2023-04-26 15:48:23 -05:00
Patrick Shriwise
527f5f70aa
Merge branch 'develop' into centre_for_cylinder_spherical_meshes 2023-03-06 13:37:24 -06:00
Patrick Shriwise
b02e558fae Adding docstring. Updating method name 2023-03-04 23:57:55 -06:00
Patrick Shriwise
5946763323 Moving origin data member down into Cylindrical/Spherical mesh using intermediate class 2023-03-04 15:51:56 -06:00
Paul Romano
ce62bbd9c5 Add missing override specifiers 2023-02-16 14:06:59 -06:00
Patrick Shriwise
11eee756dd Corrections to application of origin for sphere and cyl mesh 2023-01-26 14:13:39 -06:00
Patrick Shriwise
d0988327fe Applying formatter 2023-01-13 00:00:16 -06:00
Patrick Shriwise
d4cbcd12fc Addressing comments from @paulromano's review 2023-01-12 23:19:12 -06:00
NybergWISC
2bfdcefcf6 Remove second volume method from mesh header file 2022-12-29 09:23:14 -06:00
NybergWISC
bd60956d20 Second round of comments. volume method is now implemented from Mesh instead of UnstructuredMesh 2022-12-29 09:23:14 -06:00
NybergWISC
7c40badfbc Address comments on initial PR, all changed other than name of class and the use of python API to combine track outputs 2022-12-29 09:23:14 -06:00
NybergWISC
9f6d536959 Commit including most of the sampling work in distribution_spatial.cpp and testing 2022-12-29 09:23:12 -06:00
NybergWISC
238ab5210e Initial Mesh Sampling Changes 2022-12-29 09:22:34 -06:00
Patrick Shriwise
adad6e7cd4 Making origin type Positiong. Adding function to parse position from node. 2022-10-11 11:21:31 -05:00
RemDelaporteMathurin
76fbdf7fbf centre to origin 2022-10-11 15:41:38 +00:00
RemDelaporteMathurin
27e3bb427a array<double, 3> for origin CylindricalMesh 2022-10-11 15:36:58 +00:00
RemDelaporteMathurin
94547f7c4b new type for centre_ 2022-10-11 15:24:13 +00:00
RemDelaporteMathurin
e1dbe49bbb correct type for centre_ 2022-10-07 11:06:24 +00:00
RemDelaporteMathurin
61b4f30dd4 declaring centre_ in C file 2022-10-07 10:59:35 +00:00
Paul Romano
75adc68861
Merge pull request #2103 from pshriwise/vtk_umesh
Store full unstructured mesh definition and add ability to write to VTK
2022-08-01 10:20:22 -05:00
lewisgross1296
7c215543eb added comment to XML constructor. initialized unique_m_ to nullptr to help some compilers 2022-07-27 12:53:19 -05:00
lewisgross1296
3c2d79a241 added back in header (despite redundancy) due to use in mesh files 2022-07-26 17:01:50 -05:00
lewisgross1296
5161da8031 retrireve filename and length_multiplier from XML file and call methods similar to filename case for XML constructor 2022-07-26 16:39:54 -05:00
lewisgross1296
045bc34ec4 moved accessor to one liner in header 2022-07-26 12:59:43 -05:00
lewisgross1296
fd8a820708 added public mesh_ptr() accessor. moved m->prepare_for_use() to filename constructor since it only happens there. for consistency, added theh length_multiplier scale modification to constructors 2022-07-26 12:40:13 -05:00
lewisgross1296
deda82d631 added clarification to comment 2022-07-26 12:20:47 -05:00
lewisgross1296
91000f3ea0 refactored mesh.cpp to allow mesh pointer or filename and reduced copied
code
2022-07-25 16:39:31 -05:00
Patrick Shriwise
b93ab95ba1 Adding more mesh interrogation options for the libmesh
Finishing methods for connectivity and coordinates.

Writing vertices and connectivity to statepoint file

Loading vertices and connectivity from statepoint. Correcting string repr

Correcting connectivity length

Adding method to write the mesh elements to VTK with data applied.

Updating hdf5 output to include element types

Adding support for hex elements when writing unstructured meshes to VTK

Adding simple check for VTK writing if the module is present

Removing centroids from the statepoint file and Python UM class

Updating test check for vtk

Adding warning for skipped elements. Correcting element type

Adding warning for skipped elements.

Using an enum to indicate element types for readability

Updating to element types on the Python side as well

Handling integer data applied to VTK files.

Doc updates for Python API UM class

Incrementing statepoint version number

Refactor of unstructured mesh tests to extract model

Updating inputs for floating point surface coefficients

Adding test for hexes and refactoring comparison funcs

Updating reference mesh files

Adding reference file for the hexes test case

Passing test for hex mesh

Adding inputs for the hexes test case.

Adding hex test meshes.

Skipping hex mesh test if not built with libmesh

Adding small VTK write tests for unstructured mesh.

Allowing file path to be a pathlib path.

Adding skips if libmesh or dagmc not enabled

Adding a few comments to test file

Changing where conversion to str happens for mesh filename. Setting output to false.

Removing VTK check from unstructured mesh regression test

Removnig VTK test files for regression test -- too large

Adding __init__.py file for pytest
2022-07-25 13:17:51 -05:00
aprilnovak
e8982ea981 Reorder member variables to avoid order compile issue. Refs #1962 2022-02-04 10:24:38 -06:00
Olaf Schumann
3b3294662e Addressing comments and suggestions of @paulromano
manually run clang-format on mesh.cpp and mesh.h
2022-01-12 19:43:48 +00:00
Olaf Schumann
53c15b9e7b More updates
after suggestions from @pshriwise
2022-01-04 16:57:30 +01:00
Olaf Schumann
5384734f62
Apply suggestions from code review
added suggestions from pshriwise

Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
2022-01-04 15:17:11 +01:00
Olaf Schumann
d1a1cae278
Update include/openmc/mesh.h
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
2022-01-04 13:38:59 +01:00
Olaf Schumann
8b0b11b6c5 Bug: Forget to declare and define UnstructuredMesh::get_mesh_type() 2021-12-22 18:37:55 +01:00
Olaf Jochen Schumann
776c6baf1f Changes request by @gridley 2021-12-22 16:19:58 +01:00
Olaf Schumann
d723dd7f07 Add Cylindrical & Spherical Mesh for Tally Filter
New method for ray-tracing the mesh, used for both MeshFilter & MeshSurfaceFilter. For all Structured Meshes!
meshes

negative/positive_grid_boundary to non-virtual function for speed

MeshIndex typedef now a std::array instead of int[3] -> Get rid of pointers (see e.g. core quidelines I.13)

MeshDistance class to stroe all relevant information
2021-12-20 19:41:52 +01:00
Patrick Shriwise
a6140709cc Allowing a scaling factor for MOAB meshes too. 2021-09-11 08:02:20 -05:00
April Novak
9165a836fe
Apply suggestions from code review
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
2021-08-19 16:08:57 -05:00
aprilnovak
ea79fa079f Allow constant scaling factor to be applied to libMesh unstructured meshes. Refs #1872 2021-08-18 15:49:58 -05:00
Paul Romano
1bc2bd8460 Apply clang-format on entire source 2021-08-11 11:41:49 -05:00
helen-brooks
b3b325d02f Add new constructor for MOAB Unstructured Mesh class, taking a pointer to an external MOAB instance as an argument 2021-06-15 16:12:01 +01:00
helen-brooks
12bd847129 Promote moab instance from unique to shared ptr and check null before calling constructor 2021-06-15 16:12:01 +01:00
helen-brooks
9ab4ae4755 Small refactor of MOAB construction into its own method 2021-06-15 16:12:00 +01:00
Patrick Shriwise
4abfbead4f Removing extra layer of inheritance for the UnstructuredMesh::surface_bins_crossed method. Correcting some formatting and spelling too. 2021-06-04 21:38:14 -05:00
Gavin Ridley
50d0430496 std::make_unique -> make_unique 2021-05-04 15:55:08 -04:00
Gavin Ridley
061156e79a address PR comments 2021-05-03 18:03:06 -04:00