Skip to content

Commit 8740958

Browse files
authored
Merge pull request #29 from nstauff/example-reorg
Completed reorganization of WATTS examples.
2 parents 3f8b812 + 565c5f6 commit 8740958

80 files changed

Lines changed: 454 additions & 1151 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
File renamed without changes.

examples/example1b_BISON/example1b.py renamed to examples/1App_BISON_MetalFuel/watts_exec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
moose_app_type = "bison"
4444
app_dir = os.environ[moose_app_type.upper() + "_DIR"]
45-
moose_plugin = watts.PluginMOOSE(moose_app_type.lower() + '_template', show_stdout=True, n_cpu=2) # show all the output
45+
moose_plugin = watts.PluginMOOSE('bison_template', show_stdout=True, n_cpu=2) # show all the output
4646
moose_plugin.moose_exec = app_dir + "/" + moose_app_type.lower() + "-opt"
4747
moose_result = moose_plugin(params)
4848
for key in moose_result.csv_data:
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# 1App_MOOSE-MultiApp_Simple
2+
3+
## Purpose
4+
5+
This example provides a demonstration on how to use WATTS to perform a simple simulation leveraging MOOSE's MultiApps system.
6+
7+
## Code(s)
8+
9+
- MOOSE MultiApps
10+
11+
## Keywords
12+
13+
- Simple MultiApps
14+
15+
## File descriptions
16+
17+
- [__watts_exec.py__](watts_exec.py): Optimization definition with `SciPy`. This is the file to execute to run the problem described above.
18+
- [__main.tmpl__](main.tmpl): Main MOOSE input file for the main application. This input is templated.
19+
- [__main_in.e__](main_in.e): Mesh file for the MOOSE simulation.
20+
- [__sub.i__](sub.i): Input file for the sub-application.
File renamed without changes.
File renamed without changes.

examples/example5_multiapps/example5a.py renamed to examples/1App_MOOSE-MultiApp_Simple/watts_exec.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# SPDX-FileCopyrightText: 2022 UChicago Argonne, LLC
22
# SPDX-License-Identifier: MIT
33

4+
"""
5+
This example provides a demonstration on how to use WATTS to perform a simple simulation leveraging MOOSE's MultiApps system.
6+
"""
7+
48
from math import cos, pi
59
import os
610
import watts
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# MultiApp_SAM-OpenMC_VHTR
2+
3+
## Purpose
4+
5+
This example provides a demonstration on how to use WATTS to perform a single SAM run followed by OpenMC, where temperature results from SAM are input to OpenMC.
6+
7+
## Code(s)
8+
9+
- SAM
10+
- OpenMC
11+
12+
## Keywords
13+
14+
- Information transfer from SAM to OpenMC
15+
- simple VHTR model
16+
17+
## File descriptions
18+
19+
- [__watts_exec.py__](watts_exec.py): WATTS workflow for this example. This is the file to execute to run the problem described above.
20+
- [__openmc_template__](openmc_template.py): OpenMC templated model.
21+
File renamed without changes.

0 commit comments

Comments
 (0)