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
3e165c0d54
Iterate over all libraries, not children, in Element.expand
...
After PR #1247 , the cross section file is allowed to contain
the depletion chain file. This is present as a new tag, of
the form
```
<depletion_chain path="path.xml" type="depletion_chain" />
```
The Element.expand method looked for `material` attributes
in all children of the OPENMC_CROSS_SECTION file.
This caused an error for the depletion_chain element.
Now, only those children with the `library` tag are
iterated over.
2019-06-20 08:26:43 -05:00
Paul Romano
deab4b3d33
Use empty-argument form of super()
2018-02-05 23:14:30 -05:00
Paul Romano
c428cee667
Remove __future__ and six imports
2018-02-05 23:14:30 -05:00
Paul Romano
2b6cd880f1
Auto-expand elements at the time they are added to a material
2017-12-17 07:16:06 +07:00
Paul Romano
ee2f7e925f
Make Nuclide, Element, and Macroscopic subclasses of str
2017-12-17 07:16:06 +07:00
Paul Romano
f722d57ca3
Change input format for isotropic-in-lab scattering
2017-12-17 07:16:06 +07:00
Paul Romano
4d162335f9
Remove __eq__ and __hash__ on Element
2017-12-17 07:16:06 +07:00
Paul Romano
a41a4d1feb
Update correlation used for U weight fractions based on enrichment
2017-10-04 14:15:13 -05:00
Adam Nelson
995ba26694
Moved plotting and calculate_xs routines to plotter, condensed code as needed.
2016-11-11 21:58:31 -05:00
Adam Nelson
d4f4166ba7
resolved most of the comments from @samuelshaner
2016-11-11 20:37:03 -05:00
Adam Nelson
2a50aff588
Pre-PR cleanup and addition of ability to read MT in types
2016-11-11 15:20:40 -05:00
Adam Nelson
240028d13d
Added ability to provide an axis to the plot_xs routines, and added a type for slowing-down power so we can plot moderating ratios. Why not right?
2016-11-11 14:50:24 -05:00
Adam Nelson
4fe275b381
Code and resultant plot cleanup; also ensured every plot type explicitly included MT=2 so that S(a,b) data could properly be spliced in
2016-11-11 06:22:38 -05:00
Adam Nelson
7524637e23
Added kwargs to plots, switched to taking a file string for the cross_sections.xml file instead of an initialized DataLibrary, and avoided precision issues when calculating the inelastic xs
2016-11-11 05:20:38 -05:00
Adam Nelson
76991a223f
Extended plots to elements and nuclides
2016-11-09 18:10:41 -05:00
Sam Shaner
7a500d6bfb
removed catenation of element expand atomic amount
2016-10-30 17:33:31 -04:00
Sam Shaner
d278b861a3
changed element expand to use ordered dict
2016-10-30 17:25:16 -04:00
samuel shaner
68cabf713d
changed precision on element expand from 12 to 10
2016-10-28 15:07:16 +00:00
samuel shaner
dfdb77619e
reverted to old triso test with 12 digits of precision on element expansion
2016-10-28 13:24:35 +00:00
samuel shaner
bfc06a7341
limited precision of isotopes of expanded elements to 14 digits
2016-10-28 01:06:50 +00:00
Sam Shaner
8a02b76b96
fixed typo and moved a section of code in input_xml.F90
2016-10-25 21:13:14 -04:00
Sam Shaner
a042ff60ed
addressed PR comments
2016-10-25 20:54:56 -04:00
Sam Shaner
af29379f12
removed shortening of nuclide pct in element.expand()
2016-10-25 17:21:48 -04:00
Sam Shaner
6b1ff61284
updated input files
2016-10-24 09:50:46 -04:00
Sam Shaner
b0a5be1c1c
updated documentation and comments in Python API
2016-10-24 09:12:57 -04:00
Sam Shaner
716b6a92f5
removed element expansion in Fortran and added it to Python API
2016-10-23 16:11:18 -04:00
Sam Shaner
2b8c0d4561
Merge remote-tracking branch 'upstream/develop' into element-wo
2016-10-19 13:37:29 -04:00
Sam Shaner
663636ce2e
added enrichment and wo element support in Python API and added new tests
2016-10-16 22:09:25 -04:00
Paul Romano
5a126d086e
Use six.string_types instead of basestring
2016-10-06 21:55:12 -05:00
Adam Nelson
dfe2420b4a
Updated pyapi and docs to support new default_temperature/temperature and lack of default_xs/xs
2016-08-21 14:36:58 -04:00
Paul Romano
e2112b86ae
Respond to @smharper comments on #684
2016-07-25 06:33:37 -05:00
Paul Romano
20a2499587
Make module-level variables in openmc.data.data uppercase
2016-07-19 22:16:24 -05:00
Paul Romano
b483cfe0b6
Respond to @wbinventor comments on #679
2016-07-02 15:21:58 +07:00
Paul Romano
c7a0b716d2
General cleanup -- both bugs and style issues -- based on running pylint
2016-07-02 11:04:25 +07:00
Paul Romano
e7a9a1e236
When expanding natural elements, make sure order is consistent
2016-06-07 09:17:21 -05:00
samuel shaner
9898eea1f2
fixed issue with expanded elements into their naturally-occurring isotopes
2016-05-29 17:05:24 +00:00
Paul Romano
0cabfec5e7
A little error checking on Element.name
2016-05-11 09:46:58 -05:00
Paul Romano
879728ea5d
Add ability to expand natural elements in Python API
2016-05-03 14:57:07 -06:00
Paul Romano
14dc134869
Complete overhaul of Python API documentation
2016-04-14 07:22:31 -05:00
wbinventor@gmail.com
bbbb115196
Implemented __gt__ method for AggregateFilter
2016-02-11 12:07:23 -05:00
wbinventor@gmail.com
077eff7f19
Fixed some bugs in tally merging with introduction of comparison operators for filers and nuclides
2016-02-07 13:24:14 -05:00
wbinventor@gmail.com
7be1b7a609
Now using hash(repr(self)) instead of hash(str(self)) in Python API
2015-12-01 10:13:37 -05:00
wbinventor@gmail.com
4be3c64da9
Added __hash__ routines to all Python classes based on __repr__ methods
2015-11-29 09:00:47 -05:00
Will Boyd
baa0b4c10c
Now using a "data" descriptor rather than "ace" for the nuclide/element scattering XML tag
2015-11-09 09:26:48 -05:00
Will Boyd
3e34c5882c
Now using property getters in Nuclide and Element __repr__ routines
2015-11-08 17:36:59 -05:00
Will Boyd
81116a2049
Elements can now use iso-in-lab scattering in adddition to Nuclides
2015-11-08 17:34:04 -05:00
Will Boyd
54f40eed32
Moved Python builtin routines to beginning of each Python API class
2015-10-08 14:23:19 -04:00
Will Boyd
fe16bb4b10
Fixed tiling/repeating for tally arithmetic needed for micro xs in Python API
2015-09-27 00:29:46 -04:00