Commit graph

597 commits

Author SHA1 Message Date
Andrew Johnson
9b7ab0bacb
Expose/improve EnergyFunctionFilter through C-API
Add three functions that can be used to modify EnergyFunctionFilters
through the C-API:
- openmc_energyfunc_filter_set_data: set energy and y data
- openmc_energyfunc_filter_get_energy: obtain energies used in
interpolation
- openmc_energyfunc_filter_get_y: obtain ordinate values
These functions are modeled after openmc_energy_filter_[get|set]_bins.

The set_data function relies upon the new
EnergyFunctionFilter::set_data function, which is analogous
to EnergyFilter::set_bins function. Checks are performed
to make sure the energy and ordinate vectors are of equal
size before resetting and populating energy and y
private members.

An EnergyFunctionFilter did exist in openmc.capi, and has
now been flushed out to provide a better __init__ method,
as well as properties for retrieving energies and ordinates
for interpolation.
2019-07-30 11:49:21 -05:00
Patrick Shriwise
5ad4f94f3a Removing CAPI function for bounding box of any type. Moving to a cell-only function. Tests are adjusted as needed. 2019-07-24 13:10:03 -05:00
Patrick Shriwise
3439797e32 Update for case where the entire region is a complement. Addition of a cell and redefinition of another to test more robustly. 2019-07-24 03:02:10 -05:00
Patrick Shriwise
d820e6777a
Apply suggestions from code review
Accessing cell/material names through accessor. Returning a const reference from `name()` accessor in both cases.

Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2019-07-23 14:33:35 -05:00
Patrick Shriwise
c1ca3028cb A few more small updates. 2019-07-18 22:43:21 -05:00
Patrick Shriwise
933a5c4770 Updates based on suggestions from @paulromano. 2019-07-18 22:21:55 -05:00
Patrick Shriwise
72e92e9ad0 More updates. Adding complex cell test to unit tests. 2019-07-18 18:14:57 -05:00
Patrick Shriwise
81bf0a67da Implementing intersection and union operators for BoundingBox. 2019-07-18 13:54:24 -05:00
Patrick Shriwise
6d97188413 Creating a default virtual definition for a surfce bounding box and removing redundant definitions of surfaces with unbounded boxes. 2019-07-18 12:57:23 -05:00
Patrick Shriwise
54df651888 Adding Material accessors for name. 2019-07-18 12:25:53 -05:00
Patrick Shriwise
df379471dd Adding Cell accessors for name. 2019-07-18 12:19:13 -05:00
Patrick Shriwise
08e78a3215 Removing unecessary forward declaration. 2019-07-16 17:09:44 -05:00
Patrick Shriwise
1d02c87466 Some self-review. 2019-07-16 16:52:30 -05:00
Patrick Shriwise
d223046b30 Adding complement operator back into internal cell RPN. Updating complex_cell bounding box algorithm to parse existing RPN. 2019-07-16 16:52:30 -05:00
Patrick Shriwise
e9ac007367 Removing complement from internal RPN. 2019-07-16 16:52:30 -05:00
Patrick Shriwise
1d075cefdd Adding name property to CAPI cell/material classes. 2019-07-16 16:52:30 -05:00
Patrick Shriwise
a105702455 Updates to CAPI bounding box methods. Addition of global bounding box method. Adding tests for PWR pincell model. 2019-07-16 16:52:30 -05:00
Patrick Shriwise
ecbf7596c0 Corrections to surface bounding boxes based on sign. Corrections to cell/universe bounding boxes and capi exposure. 2019-07-16 16:52:30 -05:00
Patrick Shriwise
08239a98d2 Adding a bounding box method to the universe class. 2019-07-16 16:52:30 -05:00
Patrick Shriwise
470e26c783 Adding bbox defs for cells. 2019-07-16 16:52:30 -05:00
Patrick Shriwise
446e78cb87 Updating bounding box definitions for all surfaces. 2019-07-16 16:52:30 -05:00
Patrick Shriwise
b68e7ca902 Adding bounding box methods to all Surface types. 2019-07-16 16:50:33 -05:00
Paul Romano
5b0d8ed80c Add temperature interface for Cell 2019-07-09 06:43:16 -05:00
Paul Romano
9632630c0a Make all filter data members private or protected 2019-07-09 06:43:16 -05:00
Paul Romano
26a0d7d972 Add comments in filter headers 2019-07-09 06:43:16 -05:00
Paul Romano
6984b695c0 Make data members of filter protected/private 2019-07-09 06:43:16 -05:00
Paul Romano
c68052da6b Reorder declarations in Tally, Filter, and Material classes 2019-07-09 06:43:16 -05:00
Paul Romano
6e9c731b0c Move tally creating logic into Tally::Tally(pugi::xml_node) 2019-07-09 06:43:16 -05:00
Paul Romano
7db1511f00 Add destructors that remove key-value pairs from maps 2019-07-09 06:43:16 -05:00
Paul Romano
0c32470551 Finish improving Material interface 2019-07-09 06:43:16 -05:00
Paul Romano
bbf529bef0 Add Material::volume() accessor function 2019-07-09 06:43:16 -05:00
Paul Romano
1c97438be0 Remove return value on Material::set_density 2019-07-09 06:43:16 -05:00
Paul Romano
5d3afc1110 Add accessors for Material.density_ and density_gpcc_ 2019-07-09 06:43:16 -05:00
Paul Romano
4815cfebac Move openmc_material_add_nuclide into Material::add_nuclide 2019-07-09 06:43:16 -05:00
Paul Romano
0e15cb58d3 Add getter for MaterialFilter::materials_ 2019-07-09 06:43:16 -05:00
Paul Romano
b0704a674f Add Tally::set_active method 2019-07-09 06:43:16 -05:00
Paul Romano
9553f2908a Improvements in Tally interfaces 2019-07-09 06:43:16 -05:00
Paul Romano
13c2c837b1 Major cleanup of tally filter interfaces 2019-07-09 06:43:16 -05:00
Paul Romano
d9b27cca53 Respond to @nelsonag comments on #1271 2019-07-01 07:09:10 -05:00
Paul Romano
c2e612a503 Update HDF5 data version to 3.0 2019-06-25 07:31:53 -05:00
Paul Romano
c851030511 Refactor ThermalScattering::calculate_xs and add energy_max to class 2019-06-25 07:31:53 -05:00
Paul Romano
fd1f01a911 Move thermal scattering reaction data into ThermalData::Reaction type 2019-06-25 07:31:53 -05:00
Paul Romano
3e4fe61673 Start adding thermal angle-energy classes on C++ side 2019-06-25 07:31:53 -05:00
Paul Romano
c0f90effcd Merge branch 'develop' into rotate-lattice 2019-06-18 06:17:33 -05:00
Sterling Harper
2c0b16e73d
Merge pull request #1216 from dryuri92/newhex
Support different orientations for hexagonal lattices
2019-06-17 15:21:49 -04:00
Sterling Harper
1f44d74690
Merge pull request #1259 from paulromano/dev-version
Increment version to 0.11.0-dev and some documentation changes
2019-06-17 14:50:45 -04:00
Paul Romano
7ca97676aa
Merge pull request #1260 from pshriwise/overlap_plotting
Overlap plotting
2019-06-17 07:08:12 -05:00
Paul Romano
41bb3cf6be
Merge pull request #1255 from pshriwise/dagmc_rayhist
Adding RayHistory to DagMC
2019-06-17 07:04:40 -05:00
Patrick Shriwise
cb3f878d11 Renaming test. Altering includes in surface/cell.h to isolate external package includes. 2019-06-16 22:02:03 -05:00
Paul Romano
b64f17e62e
Merge pull request #1249 from liangjg/windows
Compiling OpenMC using Visual Studio
2019-06-14 22:30:54 -05:00