-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjetson2d_mgxs.py
More file actions
28 lines (21 loc) · 860 Bytes
/
jetson2d_mgxs.py
File metadata and controls
28 lines (21 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
"""MGXS generation benchmark for the Jetson 2D model.
Builds the continuous-energy Jetson 2D model and generates multigroup cross
sections via the stochastic slab method. This internally runs the OpenMC
executable to compute MGXS data.
"""
from __future__ import annotations
import openmc.mgxs
from benchmarks.config import _CONFIGS
from benchmarks.models._jetson2d import build_base_model
BENCHMARK_NAME = "Jetson2dMgxs"
CONFIGS = tuple(config for config in _CONFIGS if config[1] is None)
def run_benchmark(threads, mpi_procs):
model, mesh, plasma_cell = build_base_model()
group_edges = openmc.mgxs.GROUP_STRUCTURES["CASMO-4"]
model.convert_to_multigroup(
method="stochastic_slab",
nparticles=1000,
groups=openmc.mgxs.EnergyGroups(group_edges),
overwrite_mgxs_library=False,
correction=None,
)