Commit graph

1672 commits

Author SHA1 Message Date
myerspat
82bbf71413 Reduced contains_complex to one while loop 2022-08-15 15:04:03 -04:00
Lewis Gross
70598087cd
forgot to change name of arrgument from id to index in header
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-08-15 13:33:49 -05:00
Patrick Myers
03deeca32d
Merge branch 'openmc-dev:develop' into infix-sense-evaluation 2022-08-15 09:19:30 -05:00
myerspat
809863c15c Removed second region expression so search finding relys on region_ 2022-08-15 10:18:45 -04:00
lewisgross1296
30b1ae92cb changed name and return type. added signature to capi.h. TODO error handling in tally.cpp 2022-08-11 13:45:28 -05:00
Lewis Gross
6ef62fcaf1
documentation fix tally.h
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
2022-08-11 13:26:29 -05:00
Lewis Gross
3ff11280a1
documentation fix tally.h
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
2022-08-11 13:26:12 -05:00
lewisgross1296
8140ff492c added some commenting and the extern remove_tally_from_tallies function 2022-08-10 14:23:26 -05:00
myerspat
bce3cc0da4 Added rpn back for bounding box 2022-08-04 15:46:10 -04: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
Patrick Shriwise
ecb2c57cdd
Merge pull request #2137 from lewisgross1296/create_mesh_no_file
Add constructor to create a libMesh mesh from a libMesh pointer, as opposed to a mesh input file
2022-07-28 17:13:00 -05:00
Amelia J Trainer
a18abd4fd9
Merge pull request #2134 from paulromano/thermal-mixed-elastic
Add support for mixed incoherent/coherent elastic thermal scattering
2022-07-28 15:43:55 -04:00
myerspat
8a5df89ea5 enforced precedence if intersections proceed unions without parenthesis 2022-07-28 12:22:28 -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
myerspat
cd216c7502 Merge branch 'infix-sense-evaluation' of github.com:myerspat/openmc into infix-sense-evaluation 2022-07-27 12:15:51 -05:00
myerspat
7dfb35a39a removed rpn_ and changed to only region_ 2022-07-27 12:15:46 -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
David Andrs
23646c3c7c
Allow OpenMC to compile against fmt v9 2022-07-25 20:59:26 -06: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
Paul Romano
4e611f59b9 Make incoherent XS polymorphic in MixedElasticAE 2022-07-22 07:49:00 -05:00
Paul Romano
70c16d4b04 Implement mixed coherent/incoheret thermal elastic 2022-07-22 07:49:00 -05:00
Paul Romano
8bb2002d8f Add open_object, close_object functions in HDF5 interface 2022-07-21 14:02:04 -05:00
Paul Romano
d024a3e008 Implementation of C++ Sum1D function 2022-07-21 14:02:04 -05:00
Paul Romano
b1267f0544 Allow openmc_sample_external_source to produce multiple samples 2022-07-15 20:12:10 -05:00
Patrick Myers
d80bf7bdb5
Added comments explaining reasoning for 2D xtensor xs in photon.h
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-06-29 09:25:59 -05:00
Pat Myers
8eb21c0af2 Merge branch 'develop' of github.com:myerspat/openmc into otimize-photon-calcxs 2022-06-09 11:14:15 -05:00
Patrick Shriwise
fe230168fb
Merge pull request #2071 from paulromano/flf-improve-track
Major overhaul of track file capability
2022-06-02 14:32:49 -05:00
Paul Romano
6c07553b89 Add cell instance to particle track file (thanks @pshriwise for suggestion) 2022-05-31 17:08:40 -05:00
Paul Romano
a21174e4f9
Merge pull request #2036 from helen-brooks/refactor-dagmc-universes
Support external DAGMC instance
2022-05-31 16:48:24 -05:00
Patrick Myers
687d43b0ab added external xtensor within PhotonInteraction for all shell photoelectric xs to utilize contiguous memory in calculate_xs 2022-05-25 09:06:53 -05:00
helen-brooks
4d52218178 Remove redundant uwuw_disabled boolean member in DAGUniverse 2022-05-25 15:05:33 +01:00
helen-brooks
8bf7de39ca Add empty string default argument for external DAGMC Universe constructor 2022-05-25 15:05:33 +01:00
helen-brooks
d9498216dd Apply minor changes from pshriwise code review
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
2022-05-25 15:05:33 +01:00
helen-brooks
751e92f63b Run clang-format 2022-05-25 15:05:32 +01:00
Paul Romano
2e0472d57c Respond to @shimwell comments on #2071 2022-05-23 12:28:28 -05:00
Paul Romano
e34bf445f0 Add max_tracks setting (maximum number of tracks per process) 2022-05-20 10:46:59 -05:00
Paul Romano
93e7471132 Update io_formats documentation for track files (and file version) 2022-05-19 13:27:34 -04:00
Paul Romano
365aa0b0eb Write all tracks to a single file 2022-05-19 13:27:33 -04:00
Paul Romano
b32d4b5ed3 Write particle types separately for track files 2022-05-19 13:27:33 -04:00
Paul Romano
a6bd42ee8e Expand Particle::tracks_ to include full state 2022-05-19 13:27:32 -04:00
cpf
5ce9e3998f Merge remote-tracking branch 'origin/develop' into theta_distribution_spherical_independent
merged with the new changes from origin/develop
2022-05-13 20:41:57 +02:00
Hunter Belanger
df30923a33 Adds include guards to version.h.in 2022-05-09 21:47:06 +02:00
cpf
b9b119bc73 changed theta to cos_theta in .h file 2022-05-09 20:09:32 +02:00
helen-brooks
5dd6da91c5 Only expose methods that are needed externally 2022-04-20 15:12:52 +01:00
helen-brooks
fb9c12bd14 Add switch to disable uwuw in DAGUniverse with external DAG 2022-04-20 15:12:52 +01:00