Paul Romano
bc09d1ef55
adding back files to be reviewed
2019-10-28 11:55:45 -05:00
Paul Romano
ae28233110
deleting all files to prepare for review
2019-10-28 11:48:19 -05:00
Andrew Johnson
484bf70c86
Tally.get_writable() -> Tally.writable()
...
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2019-09-30 18:55:42 -04:00
Andrew Johnson
801f18b357
Provide Tally writable_ setter and getters
...
New member functions openmc::Tally.set_writable and get_writable
act on the writable attribute. These are used in the external
API with openmc_tally_set_writable and openmc_tally_get_writable
functions.
Cleaned up some other writeable -> writable typos as well
2019-09-26 21:09:13 -04:00
Andrew Johnson
7a1a424d0f
Tally.writeable -> Tally.writable
...
Oops
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2019-09-26 20:34:11 -04:00
Andrew Johnson
e17687d457
Add openmc::Tally.writeable_ attribute
...
Boolean flag that indicates if a tally should be written to
output files. This has no effect on tally scoring, but instead
will be used to skip writing Tally data for those not marked
as writeable.
Related to #1327 as the depletion interface will use this flag
to reduce time spent writing reaction rate tallies and also
reducing the size of the final statepoint files
2019-09-19 09:18:26 -05:00
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
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
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
8a8b7b2c0a
Move cross section caches into Particle class
2019-03-19 13:56:45 -05:00
Paul Romano
b28ee8087c
Move ParticleType into Particle and use for type_ member
2019-03-01 15:59:21 -06:00
Paul Romano
3cac2a6702
Remove Fortan compatibility functions
2019-02-21 22:44:24 -06:00
Paul Romano
e1e4941d8c
Fix all the bugs introduced
2019-02-21 19:30:07 -06:00
Paul Romano
0439eb0fa1
Convert remainder of tallies to C++
2019-02-21 19:30:04 -06:00
Paul Romano
d0b6d9fbd6
Move read_tallies_xml to C++
2019-02-20 23:34:36 -06:00
Paul Romano
3eea8311d3
Move results and global_tallies over to C++
2019-02-20 15:03:36 -06:00
Paul Romano
1542cf7bfd
Remove declaration of global_tally_* values on Fortran side
...
No more OpenMP in Fortran code!
2019-02-20 15:03:36 -06:00
Paul Romano
7325897ee9
Address @smharper comments on #1169
2019-02-19 21:48:20 -06:00
Paul Romano
f8925b25be
Convert transport() and cross_surface() to C++
2019-02-15 10:59:23 -06:00
Sterling Harper
2bc8b9a5ff
Avoid implicit construction of TallyDerivative
2019-02-13 01:05:50 -05:00
Sterling Harper
8b61bc1a77
Respond to @paulromano comments on #1162
2019-02-12 17:10:25 -05:00
Sterling Harper
b350e7dcd6
Move tally filter IDs to C++
2019-02-12 13:14:39 -05:00
Sterling Harper
49daad3f94
Cleanup C++ tallies work
2019-02-11 20:22:48 -05:00
Sterling Harper
743db3c02e
Separate tally scoring from Tally object methods
2019-02-11 14:47:34 -05:00
Sterling Harper
8bb0fa7791
Move write_tallies to C++
2019-02-11 13:58:12 -05:00
Sterling Harper
ddaed7311b
Finish moving apply_derivative_to_score to C++
2019-02-10 21:45:54 -05:00
Sterling Harper
53a0dc8d97
Move openmc_tally_set_nuclides to C++
2019-02-05 17:58:45 -05:00
Sterling Harper
22f8749225
Read tally nuclides from XML in C++
2019-02-05 16:54:17 -05:00
Sterling Harper
ed628b96d2
Move tally scores to C++
2019-02-05 01:54:12 -05:00
Sterling Harper
391c7536d4
Move tally id to C++
2019-02-04 22:32:00 -05:00
Sterling Harper
9fe05ad9c8
Clean up tally triggers
2019-02-02 12:46:43 -05:00
Sterling Harper
3ea876235e
Finish moving triggers to C++
2019-02-02 12:07:24 -05:00
Sterling Harper
a07ea809f2
Remove some tally-related C++/Fortran glue-code
...
This commit also removes some tally trigger special-case code for meshsurface current tallies. That code was broken and is also no longer needed.
2019-01-31 15:58:18 -05:00
Sterling Harper
67b2185860
Move score_surface_tally to C++
2019-01-27 21:30:18 -05:00
Sterling Harper
ba479565c5
Move score_collision_tally to C++
2019-01-27 17:09:21 -05:00
Sterling Harper
f4d7c81bd4
Move tally % nuclide_bins to C++
2019-01-27 14:29:23 -05:00
Sterling Harper
e99fd9e7e4
Move most active_tally lists to C++
2019-01-26 16:26:03 -05:00
Sterling Harper
8c4a74ec84
Move tally % estimator and tally % active to C++
2019-01-26 15:13:32 -05:00
Sterling Harper
fe6fba2954
Use 0-based indexing for tally derivatives
2019-01-26 14:03:30 -05:00
Sterling Harper
9f6a7466e2
Use interoperable TallyDerivative structs
2019-01-26 13:53:01 -05:00
Sterling Harper
06caf67ccf
Create C++ TallyDerivative struct
2019-01-26 12:10:18 -05:00