Commit graph

46 commits

Author SHA1 Message Date
GuySten
61c8a59cff
Override NJOY default damage energy threshold (#4022)
Some checks are pending
Tests and Coverage / filter-changes (push) Waiting to run
Tests and Coverage / Python 3.13 (omp=n, mpi=n, dagmc=, libmesh=, event= (push) Blocked by required conditions
Tests and Coverage / Python 3.14 (omp=n, mpi=n, dagmc=, libmesh=, event= (push) Blocked by required conditions
Tests and Coverage / Python 3.14t (omp=n, mpi=n, dagmc=, libmesh=, event= (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=n, mpi=n, dagmc=n, libmesh=n, event=n (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=y, mpi=n, dagmc=n, libmesh=n, event=n (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=n, mpi=y, dagmc=n, libmesh=n, event=n (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=y, mpi=y, dagmc=n, libmesh=n, event=n (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=y, mpi=n, dagmc=, libmesh=y, event= (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=y, mpi=n, dagmc=, libmesh=, event=y (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=y, mpi=y, dagmc=y, libmesh=, event= (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=y, mpi=y, dagmc=, libmesh=y, event= (push) Blocked by required conditions
Tests and Coverage / coverage (push) Blocked by required conditions
Tests and Coverage / Check CI status (push) Blocked by required conditions
dockerhub-publish-develop / main (push) Waiting to run
dockerhub-publish-develop-dagmc-libmesh / main (push) Waiting to run
dockerhub-publish-develop-dagmc / main (push) Waiting to run
dockerhub-publish-develop-libmesh / main (push) Waiting to run
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2026-07-20 14:52:30 +00:00
Paul Romano
932f36f411
Add recognized thermal scattering names for JEFF 4.0 and JENDL 5 (#3693) 2026-01-02 12:31:46 +02:00
Jan Malec
23eab2c89b
Allow specifying number of equiprobable angles for thermal scattering data generation (#3346)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-06-14 06:39:31 +00:00
Paul Romano
9170bf34ad
Update recognized thermal scattering materials for ENDF/B-VIII.1 (#3267) 2025-01-20 14:51:13 +01:00
Jan Malec
d2edf0ce4e
Fix path handling for thermal ACE generation (#3171)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-01-11 01:23:35 +00:00
Jon Shimwell
9483cce0bc
Remove resonance reconstruction and Cython dependency (#3111)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2024-08-14 14:34:17 +00:00
Paul Romano
1f3280461f
Make sure skewed dataset is cast to bool properly (#3001) 2024-06-11 22:49:01 -04:00
Jonathan Shimwell
5d2b352025
f strings instead of .format for string editing (#2987) 2024-04-29 16:45:37 -05:00
Paul Romano
ba074c5a5a Fix several thermal scattering nuclide assignments 2023-02-10 14:59:57 -06:00
Joffrey Dorville
fc3d94b781 Apply @paulromano suggestions 2022-08-04 11:38:04 -06:00
Paul Romano
cdc1bd0217 Changes in njoy.py 2022-04-26 17:00:11 -05:00
Joffrey Dorville
cbe9cc8c29 Kalbach-Mann slope calculation for ENDF files when the projectile is a neutron 2022-04-02 00:30:27 -06:00
Paul Romano
fa76ae54d1 Use nza input on ACER card 8 (for thermal scattering) 2021-09-03 15:25:32 -05:00
Paul Romano
6fd8971eb7 Update recognized thermal scattering materials for ENDF/B-VIII.1 2021-08-30 22:41:44 -05:00
Paul Romano
81791293a6 Another (more elegant) fix for missing zsymam in ENDF files 2020-05-18 07:06:11 -05:00
Paul Romano
319e64d8f3 Fix make_ace(_thermal) when descriptive data in MF=1,MT=451 is missing 2020-05-15 11:11:33 -05:00
Paul Romano
c109a205e4 Fix output directory for xsdir in make_ace_thermal 2020-03-20 06:51:50 -05:00
Paul Romano
3a79748ec3 Fix for Python 3.5 2020-03-17 20:40:54 -05:00
Paul Romano
5b7929b6ef Ensure NJOY output for multiple temperatures goes to specified output dir 2020-03-17 10:40:53 -05:00
Paul Romano
829f12b1b5 Move thermal scattering MAT number bug fixes into a dedicated function 2019-10-03 11:49:56 -05:00
Paul Romano
92d410ed77 Ensure all thermal scattering evals from ENDF/B-VIII.0 and JEFF 3.3 work 2019-10-02 21:35:51 -05:00
Paul Romano
fe7a968819 Run HEATR twice to get kermas including local photon energy deposition 2019-09-13 07:10:43 -05:00
Andrew Johnson
76adfb231c
Combine acer, ace arguments to openmc.data.make_ace
Passing ace to make_ace is not supported. Use acer instead.

The acer argument now signals if the acer njoy module should
be run and where to save the output file. xsdir defaults to
None now, rather than "xsdir". This change allows the xsdir
file to be written to the same directory as acer, or a user
supplied location potentially separate from ace file.
2019-09-05 10:57:02 -05:00
Andrew Johnson
6b23c21327
Pass output_dir to make_ace to collect files
The user can now pass a single argument indicating where output
tapes for each njoy module should be written. The default argument
is the current working directory, useful for removing any temporary
files created during testing.

 The pendf, broadr, heatr, gaspr, and purr arguments can either
be booleans or strings. A boolean value indicates the module output
should be written into a file named after the module, e.g. heatr output
written to <output_dir>/heatr.

ace and xsdir can be None or strings. A value of None means the
final ace and xsdir files will be written to
<output_dir>/ace and <output_dir>/xsdir, respectively. The temporary
temperature-dependent ace and xsdir files are now always named
"ace_<temp>" and "xsdir_<temp>", as the ace and xsdir arguments can
be more than "ace" and "xsdir".

openmc.data.IncidentNeutron.from_njoy knows to use this output_dir
argument to ensure all created tape files are written into the
temporary directory or the user requested directory, if applicable.
This commit was written because simply writing the broadr, gaspr,
and purr output files to "broadr", "gaspr", and "purr" resulted
in left over files after running tests.
2019-09-04 14:31:06 -05:00
Andrew Johnson
7badc48c22
Instruct njoy interface to retain heatr output
HEATR contains the 318 fission heating data needed to
construct the energy deposition tally. Until now, the output
tape was left in the njoy temporary directory with the other
output tapes. This commit instructs openmc.data.njoy to move
the heatr output from the running directory used in njoy.run
to the working directory used in njoy.make_ace

Removed unused imports argparse and sys
2019-09-03 16:16:13 -05:00
Paul Romano
707eefbf65 Allow iwt to be specified on ACER runs for thermal scattering 2019-06-25 07:31:53 -05:00
Paul Romano
30483039c9 Fix docstring of make_ace as suggested by @liangjg 2019-03-12 06:50:49 -05:00
Paul Romano
08fd6b9cb1 Enable from_njoy methods to use evaluation from ENDF tape containing multiple
materials
2019-03-11 13:03:23 -05:00
Paul Romano
a48d590158 Store heating, gas production, and damage energy as redundant reactions 2019-03-10 14:42:13 -05:00
Paul Romano
05e66155a2 Support pathlib in openmc.data 2018-11-06 09:01:37 -06:00
Paul Romano
1ccf6c3e5e Use tempfile.TemporaryDirectory() 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
530f33907b Raise CalledProcessError when NJOY fails. Py2 fix in laboratory.py 2018-01-09 06:22:55 -06:00
liangjg
18f7ae3a46 address @Paul's comments
write NJOY input into file rather than printing on screen
_ACE_TEMPLATE -> _TEMPLATE
2017-08-02 11:08:33 -04:00
liangjg
3f1416a17c add argument to support printing NJOY input commands 2017-08-01 09:55:32 -04:00
liangjg
ac4b8d752a allow to omit specific modules in generating data from njoy
added several arguments for the modules
2017-07-31 22:48:56 -04:00
liangjg
8bb990b65a remove the argument "error" out of "from_njoy" function 2017-07-31 21:51:11 -04:00
liangjg
7988bad6da made error tolerance a parameter for generating data from njoy 2017-07-28 12:00:27 -04:00
Paul Romano
b2213ff343 Set elastic type in ACER card 9 correctly 2017-06-19 11:12:08 -05:00
Paul Romano
c9e2e4337b Fix maximum energy for generating thermal ACE files 2017-06-07 20:12:51 -05:00
Paul Romano
c1850bd926 Always calculating heating partials for MT=302,318,402 2017-05-03 11:23:35 -05:00
Paul Romano
cbf539dae3 Change thnmax for BROADR and only specify one sigz for PURR 2017-05-03 06:04:39 -05:00
Paul Romano
31e5a9e081 Fix saving pendf in make_ace 2017-04-28 06:42:29 -05:00
Paul Romano
09ce720dc1 Add ThermalScattering.from_njoy 2017-04-28 06:42:26 -05:00
Paul Romano
d01f9d5576 Add initial version of IncidentNeutron.from_njoy 2017-04-26 14:59:58 -05:00
Paul Romano
cf18bbd8f8 Add original version of NJOY interface 2017-04-26 14:59:58 -05:00