forked from idaholab/moose
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support ability to append data to StochasticResults
(closes idaholab#14412) (refs idaholab#14410)
- Loading branch information
1 parent
84d3f94
commit d06a6dc
Showing
5 changed files
with
179 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...ests/vectorpostprocessors/stochastic_results_complete_history/gold/master_out_storage.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
sample | ||
0.21807618260197 | ||
0.29861301975328 | ||
0.26436928795656 | ||
0.27233202431949 | ||
0.37553147478812 | ||
0.35621162097419 |
84 changes: 84 additions & 0 deletions
84
...hastic_tools/test/tests/vectorpostprocessors/stochastic_results_complete_history/master.i
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
[Mesh] | ||
type = GeneratedMesh | ||
dim = 1 | ||
nx = 1 | ||
ny = 1 | ||
[] | ||
|
||
[Variables] | ||
[u] | ||
[] | ||
[] | ||
|
||
[Distributions] | ||
[uniform_left] | ||
type = UniformDistribution | ||
lower_bound = 0 | ||
upper_bound = 0.5 | ||
[] | ||
[uniform_right] | ||
type = UniformDistribution | ||
lower_bound = 1 | ||
upper_bound = 2 | ||
[] | ||
[] | ||
|
||
[Samplers] | ||
[sample] | ||
type = MonteCarloSampler | ||
num_rows = 3 | ||
distributions = 'uniform_left uniform_right' | ||
execute_on = 'INITIAL TIMESTEP_END' | ||
[] | ||
[] | ||
|
||
[MultiApps] | ||
[sub] | ||
type = SamplerTransientMultiApp | ||
input_files = sub.i | ||
sampler = sample | ||
[] | ||
[] | ||
|
||
[Transfers] | ||
[runner] | ||
type = SamplerParameterTransfer | ||
multi_app = sub | ||
sampler = sample | ||
parameters = 'BCs/left/value BCs/right/value' | ||
to_control = 'stochastic' | ||
[] | ||
[data] | ||
type = SamplerPostprocessorTransfer | ||
multi_app = sub | ||
sampler = sample | ||
vector_postprocessor = storage | ||
postprocessor = avg | ||
[] | ||
[] | ||
|
||
[VectorPostprocessors] | ||
[storage] | ||
type = StochasticResults | ||
parallel_type = DISTRIBUTED | ||
samplers = sample | ||
contains_complete_history = true | ||
[] | ||
[] | ||
|
||
[Executioner] | ||
type = Transient | ||
num_steps = 2 | ||
[] | ||
|
||
[Problem] | ||
solve = false | ||
kernel_coverage_check = false | ||
[] | ||
|
||
[Outputs] | ||
[out] | ||
type = CSV | ||
execute_on = FINAL | ||
[] | ||
[] |
61 changes: 61 additions & 0 deletions
61
...tochastic_tools/test/tests/vectorpostprocessors/stochastic_results_complete_history/sub.i
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
[Mesh] | ||
type = GeneratedMesh | ||
dim = 1 | ||
nx = 10 | ||
[] | ||
|
||
[Variables] | ||
[u] | ||
[] | ||
[] | ||
|
||
[Kernels] | ||
[diff] | ||
type = Diffusion | ||
variable = u | ||
[] | ||
[time] | ||
type = TimeDerivative | ||
variable = u | ||
[] | ||
[] | ||
|
||
[BCs] | ||
[left] | ||
type = DirichletBC | ||
variable = u | ||
boundary = left | ||
value = 0 | ||
[] | ||
[right] | ||
type = DirichletBC | ||
variable = u | ||
boundary = right | ||
value = 1 | ||
[] | ||
[] | ||
|
||
[Executioner] | ||
type = Transient | ||
num_steps = 2 | ||
dt = 0.01 | ||
solve_type = PJFNK | ||
petsc_options_iname = '-pc_type -pc_hypre_type' | ||
petsc_options_value = 'hypre boomeramg' | ||
[] | ||
|
||
[Controls] | ||
[stochastic] | ||
type = SamplerReceiver | ||
[] | ||
[] | ||
|
||
[Postprocessors] | ||
[avg] | ||
type = AverageNodalVariableValue | ||
variable = u | ||
[] | ||
[] | ||
|
||
[Outputs] | ||
[] |
13 changes: 13 additions & 0 deletions
13
...tochastic_tools/test/tests/vectorpostprocessors/stochastic_results_complete_history/tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[Tests] | ||
issues = '#14412' | ||
design = 'StochasticResults.md' | ||
|
||
[test] | ||
type = CSVDiff | ||
input = master.i | ||
csvdiff = master_out_storage.csv | ||
|
||
requirement = "The system shall support the collection of stochastic data that can be appended " | ||
"into a single data set." | ||
[] | ||
[] |