tutorial uncertainty quantification - akunatutorial − uncertainty quantification 1. introduction...

16
April 9, 14 Tutorial - Uncertainty Quantification 1. Introduction 1.1 Objective The objective of this tutorial is to demonstrate an uncertainty quantification (UQ) analysis using Monte Carlo simulation. 1.2 Toolsets/modules exercised The following Akuna modules are being exercised: 1. UQ using Monte Carlo method with Latin Hypercube sampling a. Input parameter selection b. Observation definition 2. Job submission and monitoring 3. Visualization of UQ output The following Amanzi modules are being exercised: 1. Variably saturated flow using Richards equation a. Steady-state b. Transient 2. Transient transport For this tutorial, it is assumed that the 1D-richard model described in Single-Run (SR) Tutorial has been generated. If this simulation has not yet been generated, create a new model by copying the Richards-1D-transport_exa model from tutorial folder. (1) Right click on projects > tutorial > Richards-1D- transport_exa and choose copy. (2) Right-click on your user folder and choose paste. (3) The following window will appear: Figure 1. Select tools to import when copying an existing model (4) Click the radio button for single-run to import the single-run example. Press OK. (5) A new model will appear under the user’s working folder.

Upload: others

Post on 26-Dec-2019

16 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Tutorial Uncertainty Quantification - AkunaTutorial − Uncertainty Quantification 1. Introduction 1.1 Objective The objective of this tutorial is to demonstrate an uncertainty quantification

April 9, 14

Tutorial − Uncertainty Quantification

1. Introduction

1.1 Objective The objective of this tutorial is to demonstrate an uncertainty quantification (UQ) analysis using Monte Carlo simulation.

1.2 Toolsets/modules exercised The following Akuna modules are being exercised:

1. UQ using Monte Carlo method with Latin Hypercube sampling a. Input parameter selection b. Observation definition

2. Job submission and monitoring 3. Visualization of UQ output

The following Amanzi modules are being exercised:

1. Variably saturated flow using Richards equation a. Steady-state b. Transient

2. Transient transport For this tutorial, it is assumed that the 1D-richard model described in Single-Run (SR) Tutorial has been generated. If this simulation has not yet been generated, create a new model by copying the Richards-1D-transport_exa model from tutorial folder.

(1) Right click on projects > tutorial > Richards-1D-transport_exa and choose copy.

(2) Right-click on your user folder and choose paste. (3) The following window will appear:

Figure 1. Select tools to import when copying an existing model

(4) Click the radio button for single-run to import the single-run example. Press OK. (5) A new model will appear under the user’s working folder.

Page 2: Tutorial Uncertainty Quantification - AkunaTutorial − Uncertainty Quantification 1. Introduction 1.1 Objective The objective of this tutorial is to demonstrate an uncertainty quantification

1.3 Problem Description The tutorial problem is a one-dimensional, 3 layer, unsaturated flow and transport problem, where

(1) steady-state unsaturated flow is calculated with a constant infiltration rate, providing the initial conditions for year 1950;

(2) discharge of water and 99Tc occurs at the top of the ground surface between 1950.1-1950.26 years; and

(3) continuing infiltration drives the 99Tc plume downward, to the water table,

which is represented by the bottom boundary of the domain.

Uncertainty in the concentration predictions of 99Tc at different well locations after 2200 years of simulation will be analyzed with respect to 1) uncertainties in permeabilities for the three different geologic layers; and 2) the uncertainty in the rate of discharge for the source released between 1950.1-1950.26 years.

2. Initialize UQ Toolset To start the UQ Toolset:

(1) On the main window (Figure 2), click on the Richards-1D-transport icon1 representing the conceptual model that was built in SR Tutorial; it will be highlighted as shown in the figure below.

(2) Click to launch the Uncertainty Quantification Toolset. The item UQ is not clickable unless a conceptual model is selected.

Figure 2. Create a new UQ Analysis

(3) A window (Figure 3) that prompts for a UQ Name will appear. Name the UQ and click OK.

Figure 3. Provide a name to the UQ Analysis

1 Reminder: A model icon can be identified by .

Page 3: Tutorial Uncertainty Quantification - AkunaTutorial − Uncertainty Quantification 1. Introduction 1.1 Objective The objective of this tutorial is to demonstrate an uncertainty quantification

This action launches the Uncertainty Quantification Toolset window (Figure 4). The tabs are the same as those in the SR Toolset and presented in the SR Tutorial, except for the Analysis Options tab.

Figure 4. UQ Toolset window

3. Setup UQ Toolset Akuna simplifies the setup by providing the user with the ability to import existing information from another analysis. Here it is demonstrated how to import the data from the SR Tutorial into the UQ Toolset.

(1) Click on the upper left corner of the UQ Toolset window2. (2) Select all sections to be imported by checking all the radio buttons, as shown in

Figure 5. Press Ok.

2 One may also populate all sections manually.

Page 4: Tutorial Uncertainty Quantification - AkunaTutorial − Uncertainty Quantification 1. Introduction 1.1 Objective The objective of this tutorial is to demonstrate an uncertainty quantification

Figure 5. Select all radio buttons to import all the information.

(3) Select the single-run created in the SR tutorial as shown in Figure 6. Press OK and all the tabs will be filled with data used in the SR.

Figure 6. Import from a SR run that was previously created.

3.1 Parameter Setup The parameters that are considered uncertain in the UQ analysis are setup as follows:

(1) Click the Parameters section and then click to add a parameter, as shown in Figure 7.

Figure 7. Parameters section

Page 5: Tutorial Uncertainty Quantification - AkunaTutorial − Uncertainty Quantification 1. Introduction 1.1 Objective The objective of this tutorial is to demonstrate an uncertainty quantification

(2) The dialog box shown in Figure 8 will appear. Click on to expand the list of

parameters that can be chosen.

Figure 8. Select Parameters From Model Setup window.

(3) For the 1st parameter, choose Material Properties > Facies_1 > Permeability > x Material Properties > Facies_1 > Permeability > y Material Properties > Facies_1 > Permeability > z

simultaneously while holding down the Shift key These three variables will be treated as a single parameter. Click Add.

(4) For the 2nd and 3rd parameters, repeat the previous step with Facies_2 and Facies_3.

(5) For the 4th parameters, choose Boundary Conditions > B17 > 1950.1 y > Liquid Phase > Inward mass flux. Click Add again.

(6) Close the window. (7) Double click on any of the entries in the table to define properties related to each

parameter. Change the various entries to those shown in Figure 9.3

3 The first 3 parameters are examined in the logarithm space and thus the Transformation Type (column 5) is changed to Logarithm. (After selecting the transformation type, the user will be prompted for converting the initial and default values before the transformation is applied.) As a result the distributions of the permeabilities are log-normal when the Distribution Type (column 6) is Normal.

Page 6: Tutorial Uncertainty Quantification - AkunaTutorial − Uncertainty Quantification 1. Introduction 1.1 Objective The objective of this tutorial is to demonstrate an uncertainty quantification

Figure 9. Edit the entries of the Parameter table based on entries shown above.

3.2 Define Observations Observations are defined under the Observations tab. Observations have been prefilled since they were defined during model setup and in the SR Tutorial. Observations can be added or deleted in this tab, if desired.

3.3 Specify Analysis options The analysis options are set in the Analysis Options tab:

(1) Choose Probabilistic predictions for Type. (2) Choose Monte Carlo for Method. (3) Choose Latin Hypercube for Sampling Method. (4) Set the Number of Forward Runs to 100 and press ENTER; the plots on the right

will automatically show the distribution of the samples generated4, as shown in Figure 10.

(5) Change the Random Seed or click found on the upper right corner to generate a different set of parameters.

4 Ensure the generated histograms are consistent with the defined distributions for the parameters.

Page 7: Tutorial Uncertainty Quantification - AkunaTutorial − Uncertainty Quantification 1. Introduction 1.1 Objective The objective of this tutorial is to demonstrate an uncertainty quantification

Figure 10. Generate samples for UQ analysis.

Save the model by clicking at the top left corner. The button will turn green, indicating that all information needed to run the analysis has been provided.

4. Submit UQ Analysis The submission process is similar to job submission demonstrated in the SR Tutorial. The only additional step involves specifying the number of Processors and Processors per Tasks. In the SR Tutorial, only a single simulation is executed, the number of Processors and Processors per Tasks are the same. In the UQ, 100 simulations will be executed simultaneously, with each simulation using 24 processors. Hence, the total number of processors needed is then 2400. Therefore, set Processors to 2400 and Processors per Tasks to 24. The remaining steps for submission and monitoring of jobs follows the SR Tutorial.

5. Analyze UQ Results When UQ simulations are completed, the Plot button is activated, and is accessible in two places: 1) in the Summary Tab in the right panel; and 2) above the data browser in the left panel. Note that even if all simulations do not run successfully, results from the completed simulations can still be viewed.

5.1 Concentration Histogram

Page 8: Tutorial Uncertainty Quantification - AkunaTutorial − Uncertainty Quantification 1. Introduction 1.1 Objective The objective of this tutorial is to demonstrate an uncertainty quantification

(1) Click on the Plot button, as shown in Figure 11.

Figure 11. Location of the Plot button.

(2) The Analysis windows (Figure 12) will appear. Under the Guided Control in the left column, 3 plot types are available: histogram, scatter plot and line plot. In this exercise, a histogram of aqueous concentrations for all realizations at Well1 will be created. The entries in the Guided Control are changed to those shown in Figure 12.

Figure 12. Entries under Guided Controls for generating a concentration histogram.

(3) Press Generate. Because only two times (year 2180 and 2200) and multiple plots are

selected, then two plots will be generated in the right plotting area, as shown in Figure 13.

Page 9: Tutorial Uncertainty Quantification - AkunaTutorial − Uncertainty Quantification 1. Introduction 1.1 Objective The objective of this tutorial is to demonstrate an uncertainty quantification

Figure 13. Histogram of the results for Well 1 at year 2180 and 2200. (4) Click in the upper left corner to save the results.

5.2 Breakthrough Curves In this exercise, breakthrough curves for all of the simulations will be generated at a single well location. (1) Under the Guided Control in the left column, select the entries as shown in the

Guided Control in Figure 14.

(2) Press Generate. A single plot showing the aqueous concentration vs. time for all 100 simulations is shown in Figure 15.

(3) To plot only the mean and 95% confidence intervals for all 100 simulations, use the

Filters menu in the upper right corner of the plotting panel to select

1) Filters – Add - Mean to add a line that plots the mean concentration at each point in time.

2) Filters – Add - 95% to add the lines plotting the upper and lower 95% confidence bounds.

Page 10: Tutorial Uncertainty Quantification - AkunaTutorial − Uncertainty Quantification 1. Introduction 1.1 Objective The objective of this tutorial is to demonstrate an uncertainty quantification

3) Filters – Remove – Unfiltered data, will turn off the lines for each of the 100 simulations, leaving only the mean and confidence interval lines as shown in Figure 16.

4) Options – Show Legend/Hide Legend to toggle the legend.

Figure 14. Entries under Guided Controls for the generating breakthrough curves at Well1.

Page 11: Tutorial Uncertainty Quantification - AkunaTutorial − Uncertainty Quantification 1. Introduction 1.1 Objective The objective of this tutorial is to demonstrate an uncertainty quantification

Figure 15. Breakthrough curves for all simulations at Well1.

Figure 16. Mean and 95% confidence intervals for concentration vs. time.

Page 12: Tutorial Uncertainty Quantification - AkunaTutorial − Uncertainty Quantification 1. Introduction 1.1 Objective The objective of this tutorial is to demonstrate an uncertainty quantification

5.3 Number of Years to Reach a Minimum or Maximum Concentration

Uncertainty analyses often use the drinking water standard maximum contaminant level (MCL) to determine risk. In this section, a histogram is generated that use a threshold metric (analogous to an MCL) to examine UQ results. The final plot shows the number of years required to reach the peak concentration for the100 simulations. (1) Using the Advanced Controls tab, click on the blue arrow shown in Figure 17. This

creates drop-down menus for plotting.

Figure 17. Startup screen for Advanced Controls tab. (2) Within the Advanced Controls tab, select the entries as shown in the Guided Control

in Figure 18.

Page 13: Tutorial Uncertainty Quantification - AkunaTutorial − Uncertainty Quantification 1. Introduction 1.1 Objective The objective of this tutorial is to demonstrate an uncertainty quantification

Figure 18. Entries under Advanced Controls for generating peak concentration histograms.

(3) Once the plots showing the aqueous concentration for all 100 simulations are

generated for both locations (Well1 and Well2), use the dropdown menus at the right to perform the following steps:

a. Transform – Set lower threshold and check the y-axis check-box, and type 3.5e-7 in the blank next to the y-axis label. Only concentrations above this threshold value will be plotted.

b. Filter – Use Filtered Data. This step allows all subsequent operations to be performed on the modified data set (i.e., all concentrations above the threshold).

c. Extract – Time (years) to y-axis. This step plots the time in years along the y-axis at which concentrations are above the threshold occur.

d. Transform – Shift, check the y-axis check-box, and enter the value -1950.1, the year the source was released. This will calculate the number of years from the time of release that the concentration was above the threshold.

e. Filters – Add – Min. This action will extract the year on the y-axis in which the concentration first exceeds the threshold concentration.

f. Filter – Remove – Unfiltered Data. Removing the unfiltered data will permit only the minimum to be plotted.

g. Options – Render as – Histogram – Use 10 bins to change the chart type to a histogram. This will yield the histogram shown in Figure 19, which shows the number of years it takes to reach the threshold concentration at Well1 and Well2.

Page 14: Tutorial Uncertainty Quantification - AkunaTutorial − Uncertainty Quantification 1. Introduction 1.1 Objective The objective of this tutorial is to demonstrate an uncertainty quantification

Figure 19. Number of years to reach the threshold concentration at locations Well1 and Well2.

To plot the number of years required to reach the peak concentration, perform the following steps: 1) Using the Advanced Controls tab, click on the blue arrow shown in Figure 17, if the

Plot Controls menu is not already showing. Then create the same entries as shown in Figure 18.

2) Once the plots showing the aqueous concentration for all 100 simulations are generated for both locations (Well1 and Well2), use the menus at the top right of the plotting window:

a) Filters – Add - Max. This action will plot the maximum concentration for each

run as a separate data set. b) Filter – Remove Unfiltered Data. This step allows all subsequent operations to

only be performed on the modified (filtered) data set (i.e., the maximum concentration for each run).

c) Extract – Time (years) to y-axis. This step plots the time in years along the y-axis at which the maximum concentration occurs.

d) Transform – Shift, check the y-axis check-box, and enter the value -1950.1, the year the source was released. This will calculate the number of years from the time of release to the time the peak concentration occurred.

e) Options – Render as – Histogram – Use 10 bins to change the chart type to a histogram. This will yield the histogram shown in Figure 20, which shows the number of years it takes to reach the peak concentration at Well1 and Well2.

Page 15: Tutorial Uncertainty Quantification - AkunaTutorial − Uncertainty Quantification 1. Introduction 1.1 Objective The objective of this tutorial is to demonstrate an uncertainty quantification

Figure 20. Number of years to reach the peak concentration at locations Well1 and Well2.

5.4 Number of Years Above a Threshold Concentration Uncertainty analyses often use the drinking water standard maximum contaminant level (MCL) to determine risk. In this section, a histogram is generated that use a threshold metric (analogous to an MCL) to examine UQ results. The final plot shows the number of years that the concentration is above the threshold concentration (i.e., MCL). 3) Using the Advanced Controls tab, click on the blue arrow shown in Figure 17, if the

Plot Controls menu is not already showing. Then create the same entries shown in Figure 18 that were used in the previous section.

4) Once the plots showing the aqueous concentration for all 100 simulations are generated for both locations (Well1 and Well2), use the menus at the top right of the plotting window to perform the following steps:

a) Transform – Set lower threshold and check the y-axis check-box, and type 3.5e-7 in the blank next to the y-axis label. Only concentrations above this threshold value will be plotted.

b) Filter – Use Filtered Data. This step allows the following operations to be performed on the modified data set (i.e., all concentrations above the threshold).

Page 16: Tutorial Uncertainty Quantification - AkunaTutorial − Uncertainty Quantification 1. Introduction 1.1 Objective The objective of this tutorial is to demonstrate an uncertainty quantification

c) Extract – Time (years) to y-axis. This step plots the time in years along the y-axis at which concentrations are above the threshold occur.

d) Transform – Shift, check the y-axis check-box, and enter the value -1950.1, the year the source was released. This will calculate the number of years from the time of release that the concentration was above the threshold.

e) Filters – Add - Range. This action will extract the range of years on the y-axis, for which the concentration was above the threshold.

f) Filter – Remove – Unfiltered Data. Removing the unfiltered data will permit only the range to be plotted.

g) Options – Render as – Histogram – Use 10 bins to change the chart type to a histogram. This will yield the histogram shown in Figure 21, which shows the number of years the threshold concentration is exceeded at Well1 and Well2.

Figure 21. Number of years the threshold concentration is exceeded at Well1 and Well2.