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
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
66593fd7e1
Expose tally.writeable_ through openmc.lib
...
Add two functions to capi.h:
openmc_tally_set_writeable and openmc_tally_get_writeable
which are exposed to the Python API through the
openmc.lib.Tally.writeable property. These functions are very
similar to the set/get active counterparts as both act on a boolean
Tally attribute
A new unit test test_tally_writeable has been added that toggles
the writeable state of a tally. It is important to note that the
writeable state must be reset, otherwise tallies in subsequent
tests will be skewed. This is because the test_tally_writeable
function requires the capi_simulation_init fixture and the tallies
are shared by those functions that use the capi_run fixture
2019-09-20 10:13: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
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
72e92e9ad0
More updates. Adding complex cell test to unit tests.
2019-07-18 18:14:57 -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
Paul Romano
9632630c0a
Make all filter data members private or protected
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
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
cb9d0a92b0
Merge pull request #1222 from shikhar413/cmfd-added-funcs
...
Added CMFD Functionality - Tally windows, statepoint write/restart, in-memory functions
2019-06-13 08:01:47 -05:00
aprilnovak
be7022aff7
Added method to get total material density. Refs #1253
2019-06-09 21:44:18 -07:00
Shikhar Kumar
5e8f50dd2e
Merge branch 'develop' of https://github.com/openmc-dev/openmc into cmfd-added-funcs
2019-06-04 18:28:40 -04:00
Shikhar Kumar
c16154e84a
Remove openmc_load_cmfd_tallies, address comments from @paulromano
2019-06-04 18:28:19 -04:00
aprilnovak
18b225f14d
Add openmc_cell_get_temperature method. Refs #1223
2019-05-07 16:05:21 -07:00
Shikhar Kumar
196d24f0db
Merge branch 'develop' into cmfd-added-funcs
2019-04-07 22:37:45 -04:00
Patrick Shriwise
378268bb37
Lassoing stars.
2019-03-19 08:44:36 -05:00
Patrick Shriwise
cdaad6ad54
Making pointer for property_map const and fixing property_map tests.
2019-03-19 08:42:59 -05:00
Patrick Shriwise
b9a57b02d4
Exposing properties via capi and Python interface.
2019-03-19 08:42:59 -05:00
Patrick Shriwise
14e4665301
Addressing more of @promano's comments.
2019-03-14 11:10:45 -05:00
Shikhar Kumar
58b5a265c2
Remove unnecessary lines
2019-03-12 19:51:18 -04:00
Shikhar Kumar
bf4ae24639
Be able to read CMFD data and load CMFD tallies from statepoint file
2019-03-12 17:35:14 -04:00
Patrick Shriwise
e7b3175da1
Addressing @promano's comments.
2019-03-12 11:53:50 -05:00
Patrick Shriwise
a371f402a2
Correction to n_coord reset on particle for proper handling of universes.
...
Renaming CPlot to PlotBase and adding a capi test.
Mirroring use of Bank in the capi.
Updating header name. Adding documentation to capi plot module.
Removing plot base header and struct.
2019-03-12 11:53:50 -05:00
Shikhar Kumar
8424a2c850
First pass at statepoint_write
2019-03-12 01:54:30 -04:00
Paul Romano
368f89697d
Use Position and Direction in Particle class
2019-03-01 16:00:36 -06:00
Paul Romano
6712de2ad9
Remove remaining Fortran source files
2019-02-21 22:44:20 -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
487b62f760
Change how tally filters are created from C API
2019-02-21 00:05:34 -06:00
Paul Romano
3eea8311d3
Move results and global_tallies over to C++
2019-02-20 15:03:36 -06:00
Paul Romano
968e9a95d4
Convert particle restart to C++
2019-02-15 10:59:23 -06:00
Paul Romano
2591a7054a
Remove nuclides array on Fortran side
2019-02-15 10:59:23 -06:00
Sterling Harper
08e50977f0
Merge remote-tracking branch 'upstream/develop' into cpp_tallies
2019-02-12 12:35:32 -05:00
Paul Romano
8f5517c212
Start translating openmc_statepoint_write to C++
2019-02-06 07:11:44 -06:00
Sterling Harper
2d0ea1154b
Merge remote-tracking branch 'upstream/develop' into cpp_tallies
2019-02-05 14:05:15 -05:00
Paul Romano
e1899244cb
Merge branch 'develop' into cpp-material
2019-02-01 17:15:40 -06:00
Paul Romano
06751d5373
Move openmc_load_nuclide, openmc_material_add_nuclide, and read_mgxs to C++
2019-01-30 22:15:48 -06:00
Patrick Shriwise
1a56c2d283
Moving dagmc_enabled variable... again.
2019-01-30 20:37:17 -06:00
Patrick Shriwise
69f8f5853f
Moving dagmc_enabled variable to the capi header.
2019-01-30 20:37:17 -06:00
Sterling Harper
5e03599f32
Move tally filter strides to C++
2019-01-23 23:41:21 -05:00
Shikhar Kumar
0a43a465d4
Merge remote-tracking branch 'upstream/develop' into cmfd-capi
2018-12-11 18:02:23 -05:00
Shikhar Kumar
2874b4a2f9
Address @paulromano and @smharper comments
2018-12-11 18:00:06 -05:00
Paul Romano
b8187571b3
Move source and fission banks to C++
2018-11-26 23:00:44 -06:00
Paul Romano
624e9875d6
Namespacing for sources and surfaces
2018-11-14 15:00:16 -06:00
Paul Romano
6393db8daa
Put plots in model namespace
2018-11-14 15:00:16 -06:00