Skip to content

Commit 07785d3

Browse files
authored
Merge branch 'openmc-dev:develop' into develop
2 parents 2f6e15e + 23eab2c commit 07785d3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

openmc/data/njoy.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,12 @@
201201
_THERMAL_TEMPLATE_THERMR = """
202202
thermr / %%%%%%%%%%%%%%%% Add thermal scattering data (free gas) %%%%%%%%%%%%%%%
203203
0 {nthermr1_in} {nthermr1}
204-
0 {mat} 12 {num_temp} 1 0 {iform} 1 221 1/
204+
0 {mat} {nbin} {num_temp} 1 0 {iform} 1 221 1/
205205
{temps}
206206
{error} {energy_max}
207207
thermr / %%%%%%%%%%%%%%%% Add thermal scattering data (bound) %%%%%%%%%%%%%%%%%%
208208
{nthermal_endf} {nthermr2_in} {nthermr2}
209-
{mat_thermal} {mat} 16 {num_temp} {inelastic} {elastic} {iform} {natom} 222 1/
209+
{mat_thermal} {mat} {nbin} {num_temp} {inelastic} {elastic} {iform} {natom} 222 1/
210210
{temps}
211211
{error} {energy_max}
212212
"""
@@ -495,7 +495,7 @@ def make_ace(filename, temperatures=None, acer=True, xsdir=None,
495495
def make_ace_thermal(filename, filename_thermal, temperatures=None,
496496
ace=None, xsdir=None, output_dir=None, error=0.001,
497497
iwt=2, evaluation=None, evaluation_thermal=None,
498-
table_name=None, zaids=None, nmix=None, **kwargs):
498+
table_name=None, zaids=None, nmix=None, nbin=16, **kwargs):
499499
"""Generate thermal scattering ACE file from ENDF files
500500
501501
Parameters
@@ -532,6 +532,8 @@ def make_ace_thermal(filename, filename_thermal, temperatures=None,
532532
ZAIDs that the thermal scattering data applies to
533533
nmix : int, optional
534534
Number of atom types in mixed moderator
535+
nbin : int, optional
536+
Number of equi-probable angles
535537
**kwargs
536538
Keyword arguments passed to :func:`openmc.data.njoy.run`
537539

0 commit comments

Comments
 (0)