This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def mag(x): | |
return int(np.log10(np.abs(x))) | |
def fortranPrint(array, unc) | |
""" | |
Prints a numpy array in format for F90 hard-coding. | |
array - a numpy array | |
unc - fractional uncertainty in entries, for rounding. | |
""" | |
shap = np.shape(array) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set title "OpenMC comparison" | |
mat fuel -10.29769 | |
92234.06c 4.4843e-6 | |
92235.06c 5.5815e-4 | |
92238.06c 2.2408e-2 | |
8016.06c 4.5829e-2 | |
mat clad -6.55 | |
40090.06c 2.1827e-2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import openmc | |
import numpy as np | |
def pwr_assembly(): | |
"""Create a PWR assembly model. | |
This model is a reflected 17x17 fuel assembly from the the `BEAVRS | |
<http://crpg.mit.edu/research/beavrs>`_ benchmark. The fuel is 2.4 w/o | |
enriched UO2 corresponding to a beginning-of-cycle condition. Note that the | |
number of particles/batches is initially set very low for testing purposes. |