Adam G Nelson
677f4f7d8b
Merge remote-tracking branch 'upstream/develop' into mgxs_f_to_c
2019-11-11 09:54:59 -06:00
Ethan Peterson
15c7148331
Adding SphericalIndependent source type
...
Applied suggestions from code review
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2019-11-11 10:50:38 -05:00
Paul Romano
f4cbcd20c5
Merge pull request #1400 from pshriwise/cpp_counter_caches
...
C++ Cell and Universe Level Counting
2019-11-11 07:38:03 -06:00
Adam G Nelson
3ccfa08a11
minor change to add an inline version of Mgxs::get_xs just like @gridley did for mg.get_*_xs
2019-11-09 09:24:30 -06:00
Adam G Nelson
524b5344eb
removed MGXS C interface methods (calculate_xs_c, get_name_c, and get_awr_c) that are no longer necessary now that the code is full C++
2019-11-09 09:08:56 -06:00
Adam Nelson
6e262af6c5
Merge pull request #1401 from gridley/mgxsReusable
...
Let MGXS be used in externally linked programs
2019-11-09 08:16:23 -06:00
Patrick Shriwise
4394582657
Addressing PR comments from @paulromano.
2019-11-08 14:47:00 -06:00
Gavin Ridley
8a8bb5f491
class, not struct
2019-11-08 14:57:04 -05:00
Gavin Ridley
2f879c8326
underscore for xsdata class variables
2019-11-08 13:30:41 -05:00
Gavin Ridley
b8d9ae0f8e
PR style changes
2019-11-08 13:25:49 -05:00
Gavin Ridley
5aad0d7169
incorporate requested PR changes
2019-11-07 21:34:28 -05:00
Gavin Ridley
8e1de2a577
match openmc style
2019-11-07 14:01:04 -05:00
Gavin Ridley
a2bcb07e03
Mgxs may now be used in external linked programs
2019-11-07 13:27:16 -05:00
Patrick Shriwise
031047ee80
Moving counters into the model namespace.
2019-11-06 16:07:28 -06:00
Patrick Shriwise
a685e4768c
Removing class defs in favor of STL types.
2019-11-06 16:03:51 -06:00
Patrick Shriwise
d37c416308
Updating attribute name and placing below methods.
2019-11-06 15:28:06 -06:00
Patrick Shriwise
c20e942f1c
Update name of universe level counter.
2019-11-06 09:36:41 -06:00
Patrick Shriwise
4860bd5ed2
Updating name of Universer counter class.
2019-11-06 09:31:56 -06:00
Shikhar Kumar
362e4d16b4
Merge branch 'develop' of github.com:openmc-dev/openmc into cmfd-omp
...
Conflicts:
openmc/cmfd.py
2019-11-04 22:52:16 -05:00
Shikhar Kumar
8e0b616075
Create use_all_threads variable instead of n_threads
2019-11-04 22:35:05 -05:00
Gavin Ridley
9c06a128d9
initial stab at making mgxs externally usable
2019-11-02 22:08:06 -04:00
Patrick Shriwise
739419b8b7
Exposing write summary settings option to CAPI.
2019-10-30 16:04:49 -05:00
Paul Romano
4950392fd0
Support for setting rotation matrix directly
2019-10-16 11:01:34 +07:00
Paul Romano
6799da13f1
Merge pull request #1374 from pshriwise/volume_trigger
...
Volume Calculation Trigger
2019-10-15 15:58:20 +07:00
Patrick Shriwise
143fe64057
Using trigger enum
2019-10-14 20:26:23 -05:00
Paul Romano
711819ef62
Move version number to 0.12.0-dev
2019-10-09 09:33:17 -05:00
Patrick Shriwise
919c19c909
Cleanup from self-review.
2019-10-08 13:53:22 -05:00
Patrick Shriwise
eeb8b3cbb3
Updating name VolumeCalculation attribute.
2019-10-08 13:15:30 -05:00
Patrick Shriwise
24bfa0051a
Updating default trigger value and how trigger value is written to file
2019-10-08 10:55:04 -05:00
Patrick Shriwise
4c344e9626
Removing unused code.
2019-10-08 09:47:15 -05:00
Patrick Shriwise
51ea427b25
Moved trigger logic into main func.
2019-10-08 09:44:24 -05:00
Paul Romano
e07fe06323
Remove -dev tag from version number. Small updates to release notes
2019-10-07 10:33:45 -05:00
Patrick Shriwise
cc6822f171
Pulling in C++ side changes for counter caching.
2019-10-07 00:11:51 -05:00
Patrick Shriwise
85e25d79ea
Finishing addition of a trigger type.
2019-10-05 13:12:31 -05:00
Patrick Shriwise
8d1e8711f5
Adding volume trigger via different methods.
2019-10-05 12:33:00 -05:00
Patrick Shriwise
48fab6dcac
Only write threshold to file if used.
2019-10-05 10:50:32 -05:00
Patrick Shriwise
507bc0d933
Exposing volume trigger through Python API.
2019-10-05 10:23:11 -05:00
Patrick Shriwise
4b690ab751
Fixing a bug.
2019-10-05 02:18:16 -05:00
Patrick Shriwise
5109bd0de1
Adding error trigger attribute to volume calc.
2019-10-05 02:13:12 -05:00
Patrick Shriwise
1c5218aad6
Cleaning up operator a bit.
2019-10-05 01:26:21 -05:00
Patrick Shriwise
130b7a5eeb
Setting up new function implement a stopping criterion for volume calculations.
2019-10-05 01:14:27 -05:00
Paul Romano
ae1209e283
Merge pull request #1367 from pshriwise/initialize_mat_id
...
Correction to `id_` attribute in Material/Filter classes
2019-10-01 08:26:24 -05:00
Paul Romano
db8cdff1c5
Merge pull request #1357 from drewejohnson/internal-tally
...
Create and use internal tallies for depletion
2019-10-01 08:26:12 -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
Patrick Shriwise
e7b28ab8d9
Removing default values for set_id args as requested by @paulromano.
2019-09-30 14:31:26 -05:00
Patrick Shriwise
1b8bc2d01d
Correcting default values in set_id methods. Initializing material ids to match the initialization logic.
2019-09-27 10:43:36 -05: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
Shikhar Kumar
0ce75aa21b
Address Paul comments except setting threads as user param
2019-09-25 18:29:48 -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