-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debugging collection models #4
Comments
Here are my reproducibility steps for the w17x17 assembly model (UOX). 0. Clone the repo (~1min)
1. Set up the development environment (up to ~10min)This includes installing requirements in a virtual environment in directory
2. Examine w17x17 files (~10 min)
The configuration file controls everything. You should understand what each part is doing. It is described in the manual: https://scale-olm.readthedocs.io/en/stable/config-file.html. Here is the unaltered configuration file: {
"model": {
"name": "w17x17",
"description": "Library Westinghouse 17x17 design",
"sources":{},
"revision": ["1.0"],
"notes":[]
},
"generate": {
"_type": "scale.olm.generate.root:jt_expander",
"template": "model.jt.inp",
"comp": {
"_type": "scale.olm.generate.comp:uo2_simple",
"density": 10.4
},
"static": {
"_type": "scale.olm.generate.static:pass_through",
"addnux": 4,
"xslib": "xn252"
},
"states": {
"_type": "scale.olm.generate.states:full_hypercube",
"coolant_density": [
0.723
],
"enrichment": [
0.5,
1.5,
2,
3,
4,
5,
6,
7,
8,
8.5
],
"ppm_boron": [
630
],
"specific_power": [
40
]
},
"time": {
"_type": "scale.olm.generate.time:constpower_burndata",
"gwd_burnups": [
0.0,
0.04,
1.04,
3.0,
5.0,
7.5,
10.5,
13.5,
16.5,
19.5,
22.5,
25.5,
28.5,
31.5,
34.5,
37.5,
40.5,
43.5,
46.5,
49.5,
52.5,
55.5,
58.5,
61.5,
64.5,
67.5,
70.5,
73.5,
76.5,
79.5,
82.5
]
}
},
"run": {
"_type": "scale.olm.run:makefile",
"dry_run": false
},
"assemble": {
"_type": "scale.olm.assemble:arpdata_txt",
"fuel_type": "UOX",
"dim_map": {"mod_dens": "coolant_density", "enrichment": "enrichment"},
"keep_every": 1
},
"check": {
"_type": "scale.olm.check:sequencer",
"sequence": [
{
"_type": "scale.olm.check:LowOrderConsistency",
"name": "loc",
"template": "model/origami/system-uox.jt.inp",
"target_q1": 0.70,
"target_q2": 0.95,
"eps0": 1e-12,
"epsa": 1e-6,
"epsr": 1e-3,
"nuclide_compare": ["0092235","0094239","0094240","0094241","0094242"]
}
]
},
"report": {
"_type": "scale.olm.report:rst2pdf",
"template": "report.jt.rst"
}
} This configuration requests 10 different enrichments, which will be 10 different TRITON files. You can observe these by running just the generate stage of the reactor library creation:
You should see something like this: ![]() In this case, there are 10 "permutation" directories representing the various grid of statepoints. In this case, the other state variables only have one point on their grids (moderator density and boron) so we only get 10 inputs for the enrichment cases. If we had 2 moderator densities, we would get 10x2=20 different permutation inputs. Each permutation at this point should just have a data file
This data file {
"static": {
"addnux": 4,
"xslib": "xn252"
},
"comp": {
"density": 10.4,
"uo2": {
"iso": {
"u235": 0.5,
"u238": 99.5,
"u234": 1e-20,
"u236": 1e-20
}
},
... You can see that this is the 0.5 wt% case by the 3. Start some runs.Note that OLM is designed with one command necessary to perform all the stages with Let's modify this data in config.olm.json to only have two enrichments 4,8.5 and 3 burnups. "states": {
"_type": "scale.olm.generate.states:full_hypercube",
"coolant_density": [
0.723
],
"enrichment": [
4,
8.5
],
"ppm_boron": [
630
],
"specific_power": [
40
]
},
"time": {
"_type": "scale.olm.generate.time:constpower_burndata",
"gwd_burnups": [
0.0,
3.0,
5.0
]
} Now you'll need to do
This should start only two inputs despite giving 4 cores ( ![]() 4. Watch the runs.While it's running you can inspect the
Wherever you see a
You may see something like this:
If you watch long enough, you'll see the depletion summaries:
We asked for 3 steps, so this indicates we're almost done. When a calculation is done, the tempdir.path file will be deleted. 5. Assemble the Reactor Library |
Let's use this space to methodically enumerate and tackle issues running the collection models.
The text was updated successfully, but these errors were encountered: