- multi_appThe name of the MultiApp to use.
C++ Type:MultiAppName
Description:The name of the MultiApp to use.
- to_controlThe name of the 'SamplerReceiver' on the sub application to which the Sampler data will be transferred.
C++ Type:std::string
Description:The name of the 'SamplerReceiver' on the sub application to which the Sampler data will be transferred.
SamplerParameterTransfer
The SamplerParameterTransfer works in union with the Samplers and Controls systems to transfer data to sub-applications to perform stochastic simulations.
The use of this object is explained in detail in stochastic_tools module example: Monte Carlo Example.
Input Parameters
- check_multiapp_execute_onFalseWhen false the check between the multiapp and transfer execute on flags is not preformed.
Default:False
C++ Type:bool
Options:
Description:When false the check between the multiapp and transfer execute on flags is not preformed.
- displaced_source_meshFalseWhether or not to use the displaced mesh for the source mesh.
Default:False
C++ Type:bool
Options:
Description:Whether or not to use the displaced mesh for the source mesh.
- displaced_target_meshFalseWhether or not to use the displaced mesh for the target mesh.
Default:False
C++ Type:bool
Options:
Description:Whether or not to use the displaced mesh for the target mesh.
- execute_onSAME_AS_MULTIAPPThe list of flag(s) indicating when this object should be executed, the available options include NONE, INITIAL, LINEAR, NONLINEAR, TIMESTEP_END, TIMESTEP_BEGIN, FINAL, CUSTOM, SAME_AS_MULTIAPP.
Default:SAME_AS_MULTIAPP
C++ Type:ExecFlagEnum
Options:NONE INITIAL LINEAR NONLINEAR TIMESTEP_END TIMESTEP_BEGIN FINAL CUSTOM SAME_AS_MULTIAPP
Description:The list of flag(s) indicating when this object should be executed, the available options include NONE, INITIAL, LINEAR, NONLINEAR, TIMESTEP_END, TIMESTEP_BEGIN, FINAL, CUSTOM, SAME_AS_MULTIAPP.
- parametersA list of parameters (on the sub application) to control with the Sampler data. The order of the parameters listed here should match the order of the items in the Sampler.
C++ Type:std::vector
Options:
Description:A list of parameters (on the sub application) to control with the Sampler data. The order of the parameters listed here should match the order of the items in the Sampler.
- samplerA the Sampler object that Transfer is associated..
C++ Type:SamplerName
Options:
Description:A the Sampler object that Transfer is associated..
Optional Parameters
- control_tagsAdds user-defined labels for accessing object parameters via control logic.
C++ Type:std::vector
Options:
Description:Adds user-defined labels for accessing object parameters via control logic.
- enableTrueSet the enabled status of the MooseObject.
Default:True
C++ Type:bool
Options:
Description:Set the enabled status of the MooseObject.
- use_displaced_meshFalseWhether or not this object should use the displaced mesh for computation. Note that in the case this is true but no displacements are provided in the Mesh block the undisplaced mesh will still be used.
Default:False
C++ Type:bool
Options:
Description:Whether or not this object should use the displaced mesh for computation. Note that in the case this is true but no displacements are provided in the Mesh block the undisplaced mesh will still be used.
Advanced Parameters
Input Files
- modules/stochastic_tools/test/tests/transfers/sampler_transfer/monte_carlo.i
- modules/stochastic_tools/test/tests/transfers/sampler_postprocessor/errors/require_stochastic_results.i
- modules/stochastic_tools/test/tests/transfers/batch_sampler_transfer/master.i
- modules/stochastic_tools/test/tests/transfers/errors/master_wrong_control.i
- modules/stochastic_tools/examples/batch/full_solve.i
- modules/stochastic_tools/test/tests/transfers/sobol/sobol.i
- modules/stochastic_tools/test/tests/transfers/sampler_transfer_vector/master.i
- modules/stochastic_tools/test/tests/vectorpostprocessors/stochastic_results/master.i
- modules/stochastic_tools/test/tests/transfers/errors/master_multiapp_type_error.i
- modules/stochastic_tools/test/tests/transfers/sampler_transfer/errors/master_multiapp_type_error.i
- modules/stochastic_tools/test/tests/transfers/sampler_postprocessor/master.i
- modules/stochastic_tools/test/tests/transfers/sampler_transfer/errors/master_missing_control.i
- modules/stochastic_tools/test/tests/transfers/errors/master_missing_control.i
- modules/stochastic_tools/test/tests/transfers/sampler_transfer_vector/master_not_enough_data.i
- modules/stochastic_tools/test/tests/transfers/sampler_transfer/errors/master_wrong_control.i
- modules/stochastic_tools/test/tests/transfers/sampler_transfer/sobol.i
- modules/stochastic_tools/test/tests/vectorpostprocessors/multiple_stochastic_results/master.i
- modules/stochastic_tools/test/tests/vectorpostprocessors/stochastic_results_complete_history/master.i
- modules/stochastic_tools/test/tests/transfers/sampler_transfer/errors/master_transfer_wrong_sampler.i
- modules/stochastic_tools/test/tests/transfers/sampler_postprocessor/errors/wrong_multi_app.i
- modules/stochastic_tools/test/tests/transfers/errors/master_num_parameters_wrong.i
- modules/stochastic_tools/test/tests/transfers/sampler_transfer_vector/master_size_mismatch.i
- modules/stochastic_tools/examples/batch/transient.i
- modules/stochastic_tools/test/tests/transfers/sampler_transfer/errors/master_num_parameters_wrong.i
- modules/stochastic_tools/test/tests/multiapps/batch_sampler_transient_multiapp/master_transient.i
- modules/stochastic_tools/test/tests/transfers/monte_carlo/monte_carlo.i
modules/stochastic_tools/test/tests/transfers/sampler_transfer/monte_carlo.i
[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 = 5
distributions = 'uniform_left uniform_right'
execute_on = INITIAL
[]
[]
[MultiApps]
[sub]
type = SamplerFullSolveMultiApp
input_files = sub.i
sampler = sample
[]
[]
[Transfers]
[sub]
type = SamplerParameterTransfer
multi_app = sub
sampler = sample
parameters = 'BCs/left/value BCs/right/value'
to_control = 'stochastic'
execute_on = INITIAL
check_multiapp_execute_on = false
[]
[]
[Executioner]
type = Transient
num_steps = 5
dt = 0.01
[]
[Problem]
solve = false
kernel_coverage_check = false
[]
[Outputs]
execute_on = 'INITIAL TIMESTEP_END'
[]
modules/stochastic_tools/test/tests/transfers/sampler_postprocessor/errors/require_stochastic_results.i
[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 = SobolSampler
num_rows = 3
distributions = 'uniform_left uniform_right'
execute_on = INITIAL # create random numbers on initial and use them for each timestep
[]
[]
[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'
execute_on = INITIAL
check_multiapp_execute_on = false
[]
[data]
type = SamplerPostprocessorTransfer
multi_app = sub
sampler = sample
to_vector_postprocessor = storage
from_postprocessor = avg
execute_on = timestep_end
check_multiapp_execute_on = false
[]
[]
[VectorPostprocessors]
[storage]
type = ConstantVectorPostprocessor
value = 0
[]
[]
[Executioner]
type = Transient
num_steps = 5
dt = 0.01
[]
[Problem]
solve = false
kernel_coverage_check = false
[]
[Outputs]
csv = true
[]
modules/stochastic_tools/test/tests/transfers/batch_sampler_transfer/master.i
[Mesh]
type = GeneratedMesh
dim = 1
[]
[Problem]
kernel_coverage_check = false
solve = false
[]
[Distributions]
[uniform_0]
type = UniformDistribution
lower_bound = 100
upper_bound = 200
[]
[uniform_1]
type = UniformDistribution
lower_bound = 1
upper_bound = 2
[]
[]
[Samplers]
[mc]
type = MonteCarloSampler
num_rows = 15
distributions = 'uniform_0 uniform_1'
execute_on = INITIAL
[]
[]
[Executioner]
type = Steady
[]
[MultiApps]
[runner]
type = SamplerFullSolveMultiApp
sampler = mc
input_files = 'sub.i'
mode = batch-reset
[]
[]
[Transfers]
[runner]
type = SamplerParameterTransfer
multi_app = runner
sampler = mc
parameters = 'BCs/left/value BCs/right/value'
to_control = 'stochastic'
[]
[data]
type = SamplerPostprocessorTransfer
multi_app = runner
sampler = mc
to_vector_postprocessor = storage
from_postprocessor = average
[]
[]
[VectorPostprocessors]
[storage]
type = StochasticResults
samplers = mc
execute_on = 'INITIAL TIMESTEP_END'
[]
[data]
type = SamplerData
sampler = mc
[]
[]
[Outputs]
csv = true
execute_on = 'TIMESTEP_END'
[]
modules/stochastic_tools/test/tests/transfers/errors/master_wrong_control.i
[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 = 5
distributions = 'uniform_left uniform_right'
execute_on = 'initial timestep_end'
[]
[]
[MultiApps]
[sub]
type = SamplerTransientMultiApp
input_files = sub_wrong_control.i
sampler = sample
[]
[]
[Transfers]
[sub]
type = SamplerParameterTransfer
multi_app = sub
sampler = sample
parameters = 'BCs/left/value BCs/right/value'
to_control = 'stochastic'
[]
[]
[Executioner]
type = Transient
num_steps = 5
dt = 0.01
[]
[Problem]
solve = false
kernel_coverage_check = false
[]
[Outputs]
execute_on = 'INITIAL TIMESTEP_END'
[]
modules/stochastic_tools/examples/batch/full_solve.i
[Mesh]
type = GeneratedMesh
dim = 1
[]
[Problem]
kernel_coverage_check = false
solve = false
[]
[Distributions]
[uniform]
type = UniformDistribution
lower_bound = 1
upper_bound = 9
[]
[]
[Samplers]
[mc]
type = MonteCarloSampler
n_samples = 10
distributions = 'uniform uniform'
[]
[]
[Executioner]
type = Steady
[]
[MultiApps]
[runner]
type = SamplerFullSolveMultiApp
sampler = mc
input_files = 'sub.i'
mode = batch-restore
[]
[]
[Transfers]
[runner]
type = SamplerParameterTransfer
multi_app = runner
parameters = 'BCs/left/value BCs/right/value'
to_control = receiver
[]
[data]
type = SamplerPostprocessorTransfer
multi_app = runner
vector_postprocessor = storage
postprocessor = average
[]
[]
[VectorPostprocessors]
[storage]
type = StochasticResults
[]
[]
[Postprocessors]
[total]
type = MemoryUsage
execute_on = 'INITIAL TIMESTEP_END'
[]
[per_proc]
type = MemoryUsage
value_type = "average"
execute_on = 'INITIAL TIMESTEP_END'
[]
[max_proc]
type = MemoryUsage
value_type = "max_process"
execute_on = 'INITIAL TIMESTEP_END'
[]
[]
[Outputs]
csv = true
perf_graph = true
[]
modules/stochastic_tools/test/tests/transfers/sobol/sobol.i
[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 = SobolSampler
num_rows = 3
distributions = 'uniform_left uniform_right'
execute_on = INITIAL # create random numbers on initial and use them for each timestep
[]
[]
[MultiApps]
[sub]
type = SamplerTransientMultiApp
input_files = sub.i
sampler = sample
[]
[]
[Transfers]
[sub]
type = SamplerParameterTransfer
multi_app = sub
sampler = sample
parameters = 'BCs/left/value BCs/right/value'
to_control = 'stochastic'
execute_on = INITIAL
check_multiapp_execute_on = false
[]
[]
[Executioner]
type = Transient
num_steps = 5
dt = 0.01
[]
[Problem]
solve = false
kernel_coverage_check = false
[]
[Outputs]
execute_on = 'INITIAL TIMESTEP_END'
[]
modules/stochastic_tools/test/tests/transfers/sampler_transfer_vector/master.i
[Mesh]
type = GeneratedMesh
dim = 1
nx = 1
ny = 1
[]
[Variables]
[u]
[]
[]
[Distributions]
[uniform_left]
type = UniformDistribution
lower_bound = 1
upper_bound = 2
[]
[uniform_right]
type = UniformDistribution
lower_bound = 10
upper_bound = 20
[]
[uniform_prop_a]
type = UniformDistribution
lower_bound = 1980
upper_bound = 1981
[]
[uniform_prop_b]
type = UniformDistribution
lower_bound = 1949
upper_bound = 1950
[]
[]
[Samplers]
[sample]
type = MonteCarloSampler
num_rows = 5
distributions = 'uniform_left uniform_prop_a uniform_prop_b uniform_right'
execute_on = 'initial timestep_end' # create new random numbers on initial and timestep_end
[]
[]
[MultiApps]
[sub]
type = SamplerTransientMultiApp
input_files = sub.i
sampler = sample
execute_on = 'initial timestep_end'
[]
[]
[Transfers]
[sub]
type = SamplerParameterTransfer
multi_app = sub
sampler = sample
parameters = 'BCs/left/value Materials/mat/prop_values BCs/right/value'
to_control = 'stochastic'
execute_on = 'initial timestep_end'
check_multiapp_execute_on = false
[]
[]
[Executioner]
type = Transient
num_steps = 5
dt = 0.01
[]
[Problem]
solve = false
kernel_coverage_check = false
[]
[Outputs]
execute_on = 'initial timestep_end'
[]
modules/stochastic_tools/test/tests/vectorpostprocessors/stochastic_results/master.i
[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 = SobolSampler
num_rows = 3
distributions = 'uniform_left uniform_right'
execute_on = INITIAL # create random numbers on initial and use them for each timestep
[]
[]
[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
to_vector_postprocessor = storage
from_postprocessor = avg
[]
[]
[VectorPostprocessors]
[storage]
type = StochasticResults
parallel_type = DISTRIBUTED
samplers = sample
[]
[]
[Executioner]
type = Transient
num_steps = 1
[]
[Problem]
solve = false
kernel_coverage_check = false
[]
[Outputs]
[out]
type = CSV
execute_on = FINAL
[]
[]
modules/stochastic_tools/test/tests/transfers/errors/master_multiapp_type_error.i
[Mesh]
type = GeneratedMesh
dim = 1
nx = 1
ny = 1
[]
[Variables]
[u]
[]
[]
[Distributions]
[uniform]
type = UniformDistribution
lower_bound = 0
upper_bound = 0.5
[]
[]
[Samplers]
[sample]
type = MonteCarloSampler
num_rows = 5
distributions = 'uniform'
execute_on = 'initial timestep_end'
[]
[]
[MultiApps]
[sub]
type = TransientMultiApp
input_files = sub.i
positions = '0 0 0'
[]
[]
[Transfers]
[sub]
type = SamplerParameterTransfer
multi_app = sub
sampler = sample
parameters = 'BCs/left/value BCs/right/value'
to_control = 'stochasticsub'
[]
[]
[Executioner]
type = Transient
num_steps = 5
dt = 0.01
[]
[Problem]
solve = false
kernel_coverage_check = false
[]
[Outputs]
execute_on = 'INITIAL TIMESTEP_END'
[]
modules/stochastic_tools/test/tests/transfers/sampler_transfer/errors/master_multiapp_type_error.i
[Mesh]
type = GeneratedMesh
dim = 1
nx = 1
ny = 1
[]
[Variables]
[u]
[]
[]
[Distributions]
[uniform]
type = UniformDistribution
lower_bound = 1
upper_bound = 2
[]
[]
[Samplers]
[sample]
type = MonteCarloSampler
num_rows = 3
distributions = 'uniform'
execute_on = INITIAL # create random numbers on initial and use them for each timestep
[]
[]
[MultiApps]
[sub]
type = TransientMultiApp
input_files = sub.i
positions = '0 0 0'
[]
[]
[Transfers]
[sub]
type = SamplerParameterTransfer
multi_app = sub
sampler = sample
parameters = 'BCs/left/value BCs/right/value'
to_control = 'stochasticsub'
[]
[]
[Executioner]
type = Transient
num_steps = 5
dt = 0.01
[]
[Problem]
solve = false
kernel_coverage_check = false
[]
[Outputs]
execute_on = 'INITIAL TIMESTEP_END'
[]
modules/stochastic_tools/test/tests/transfers/sampler_postprocessor/master.i
[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 = SobolSampler
num_rows = 3
distributions = 'uniform_left uniform_right'
execute_on = INITIAL # create random numbers on initial and use them for each timestep
[]
[]
[MultiApps]
[sub]
type = SamplerTransientMultiApp
input_files = sub.i
sampler = sample
execute_on = 'INITIAL TIMESTEP_BEGIN'
[]
[]
[Transfers]
[runner]
type = SamplerParameterTransfer
multi_app = sub
sampler = sample
parameters = 'BCs/left/value BCs/right/value'
to_control = 'stochastic'
execute_on = INITIAL
check_multiapp_execute_on = false
[]
[data]
type = SamplerPostprocessorTransfer
multi_app = sub
sampler = sample
to_vector_postprocessor = storage
from_postprocessor = avg
execute_on = TIMESTEP_BEGIN
check_multiapp_execute_on = false
[]
[]
[VectorPostprocessors]
[storage]
type = StochasticResults
samplers = sample
execute_on = 'INITIAL TIMESTEP_END'
[]
[]
[Executioner]
type = Transient
num_steps = 5
dt = 0.01
[]
[Problem]
solve = false
kernel_coverage_check = false
[]
[Outputs]
csv = true
[]
modules/stochastic_tools/test/tests/transfers/sampler_transfer/errors/master_missing_control.i
[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 = 5
distributions = 'uniform_left uniform_right'
execute_on = 'initial timestep_end'
[]
[]
[MultiApps]
[sub]
type = SamplerTransientMultiApp
input_files = sub_missing_control.i
sampler = sample
[]
[]
[Transfers]
[sub]
type = SamplerParameterTransfer
multi_app = sub
sampler = sample
parameters = 'BCs/left/value BCs/right/value'
to_control = 'stochastic'
[]
[]
[Executioner]
type = Transient
num_steps = 5
dt = 0.01
[]
[Problem]
solve = false
kernel_coverage_check = false
[]
[Outputs]
execute_on = 'INITIAL TIMESTEP_END'
[]
modules/stochastic_tools/test/tests/transfers/errors/master_missing_control.i
[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 = 5
distributions = 'uniform_left uniform_right'
execute_on = 'initial timestep_end'
[]
[]
[MultiApps]
[sub]
type = SamplerTransientMultiApp
input_files = sub_missing_control.i
sampler = sample
[]
[]
[Transfers]
[sub]
type = SamplerParameterTransfer
multi_app = sub
sampler = sample
parameters = 'BCs/left/value BCs/right/value'
to_control = 'stochastic'
[]
[]
[Executioner]
type = Transient
num_steps = 5
dt = 0.01
[]
[Problem]
solve = false
kernel_coverage_check = false
[]
[Outputs]
execute_on = 'INITIAL TIMESTEP_END'
[]
modules/stochastic_tools/test/tests/transfers/sampler_transfer_vector/master_not_enough_data.i
[Mesh]
type = GeneratedMesh
dim = 1
nx = 1
ny = 1
[]
[Variables]
[u]
[]
[]
[Distributions]
[uniform_prop_a]
type = UniformDistribution
lower_bound = 1980
upper_bound = 1981
[]
[]
[Samplers]
[sample]
type = MonteCarloSampler
num_rows = 5
distributions = 'uniform_prop_a'
execute_on = 'initial timestep_end' # create new random numbers on initial and timestep_end
[]
[]
[MultiApps]
[sub]
type = SamplerTransientMultiApp
input_files = sub.i
sampler = sample
execute_on = 'initial timestep_end'
[]
[]
[Transfers]
[sub]
type = SamplerParameterTransfer
multi_app = sub
sampler = sample
parameters = 'Materials/mat/prop_values'
to_control = 'stochastic'
execute_on = 'initial timestep_end'
check_multiapp_execute_on = false
[]
[]
[Executioner]
type = Transient
num_steps = 5
dt = 0.01
[]
[Problem]
solve = false
kernel_coverage_check = false
[]
[Outputs]
execute_on = 'initial timestep_end'
[]
modules/stochastic_tools/test/tests/transfers/sampler_transfer/errors/master_wrong_control.i
[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 = 5
distributions = 'uniform_left uniform_right'
execute_on = 'initial timestep_end'
[]
[]
[MultiApps]
[sub]
type = SamplerTransientMultiApp
input_files = sub_wrong_control.i
sampler = sample
[]
[]
[Transfers]
[sub]
type = SamplerParameterTransfer
multi_app = sub
sampler = sample
parameters = 'BCs/left/value BCs/right/value'
to_control = 'stochastic'
[]
[]
[Executioner]
type = Transient
num_steps = 5
dt = 0.01
[]
[Problem]
solve = false
kernel_coverage_check = false
[]
[Outputs]
execute_on = 'INITIAL TIMESTEP_END'
[]
modules/stochastic_tools/test/tests/transfers/sampler_transfer/sobol.i
[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 = SobolSampler
num_rows = 3
distributions = 'uniform_left uniform_right'
execute_on = INITIAL # create random numbers on initial and use them for each timestep
[]
[]
[MultiApps]
[sub]
type = SamplerTransientMultiApp
input_files = sub.i
sampler = sample
[]
[]
[Transfers]
[sub]
type = SamplerParameterTransfer
multi_app = sub
sampler = sample
parameters = 'BCs/left/value BCs/right/value'
to_control = 'stochastic'
execute_on = INITIAL
check_multiapp_execute_on = false
[]
[]
[Executioner]
type = Transient
num_steps = 5
dt = 0.01
[]
[Problem]
solve = false
kernel_coverage_check = false
[]
[Outputs]
execute_on = 'INITIAL TIMESTEP_END'
[]
modules/stochastic_tools/test/tests/vectorpostprocessors/multiple_stochastic_results/master.i
[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]
[sobol]
type = SobolSampler
num_rows = 3
distributions = 'uniform_left uniform_right'
execute_on = INITIAL # create random numbers on initial and use them for each timestep
[]
[mc]
type = MonteCarloSampler
num_rows = 5
distributions = 'uniform_left uniform_right'
execute_on = INITIAL # create random numbers on initial and use them for each timestep
[]
[]
[MultiApps]
[sobol]
type = SamplerTransientMultiApp
input_files = sub.i
sampler = sobol
[]
[mc]
type = SamplerTransientMultiApp
input_files = sub.i
sampler = mc
[]
[]
[Transfers]
[sobol]
type = SamplerParameterTransfer
multi_app = sobol
sampler = sobol
parameters = 'BCs/left/value BCs/right/value'
to_control = 'stochastic'
[]
[sobol_data]
type = SamplerPostprocessorTransfer
multi_app = sobol
sampler = sobol
to_vector_postprocessor = storage
from_postprocessor = avg
[]
[mc]
type = SamplerParameterTransfer
multi_app = mc
sampler = mc
parameters = 'BCs/left/value BCs/right/value'
to_control = 'stochastic'
[]
[mc_data]
type = SamplerPostprocessorTransfer
multi_app = mc
sampler = mc
to_vector_postprocessor = storage
from_postprocessor = avg
[]
[]
[VectorPostprocessors]
[storage]
type = StochasticResults
parallel_type = REPLICATED
samplers = 'sobol mc'
[]
[]
[Executioner]
type = Transient
num_steps = 1
[]
[Problem]
solve = false
kernel_coverage_check = false
[]
[Outputs]
[out]
type = CSV
execute_on = FINAL
[]
[]
modules/stochastic_tools/test/tests/vectorpostprocessors/stochastic_results_complete_history/master.i
[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_BEGIN'
[]
[]
[MultiApps]
[sub]
type = SamplerTransientMultiApp
input_files = sub.i
sampler = sample
execute_on = 'INITIAL TIMESTEP_BEGIN'
[]
[]
[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
to_vector_postprocessor = storage
from_postprocessor = avg
[]
[]
[VectorPostprocessors]
[storage]
type = StochasticResults
parallel_type = REPLICATED
samplers = sample
contains_complete_history = true
execute_on = 'INITIAL TIMESTEP_END'
[]
[]
[Executioner]
type = Transient
num_steps = 2
[]
[Problem]
solve = false
kernel_coverage_check = false
[]
[Outputs]
[out]
type = CSV
[]
[]
modules/stochastic_tools/test/tests/transfers/sampler_transfer/errors/master_transfer_wrong_sampler.i
[Mesh]
type = GeneratedMesh
dim = 1
nx = 1
ny = 1
[]
[Variables]
[u]
[]
[]
[Distributions]
[uniform]
type = UniformDistribution
lower_bound = 1
upper_bound = 2
[]
[]
[Samplers]
[sample]
type = MonteCarloSampler
num_rows = 3
distributions = 'uniform'
execute_on = INITIAL # create random numbers on initial and use them for each timestep
[]
[wrong]
type = MonteCarloSampler
num_rows = 3
distributions = 'uniform'
execute_on = INITIAL # create random numbers on initial and use them for each timestep
[]
[]
[MultiApps]
[sub]
type = SamplerTransientMultiApp
sampler = sample
input_files = sub.i
[]
[]
[Transfers]
[sub]
type = SamplerParameterTransfer
multi_app = sub
sampler = wrong
parameters = 'BCs/left/value BCs/right/value'
to_control = 'stochasticsub'
[]
[]
[Executioner]
type = Transient
num_steps = 5
dt = 0.01
[]
[Problem]
solve = false
kernel_coverage_check = false
[]
[Outputs]
execute_on = 'INITIAL TIMESTEP_END'
[]
modules/stochastic_tools/test/tests/transfers/sampler_postprocessor/errors/wrong_multi_app.i
[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 = SobolSampler
num_rows = 3
distributions = 'uniform_left uniform_right'
execute_on = INITIAL # create random numbers on initial and use them for each timestep
[]
[]
[MultiApps]
[sub]
type = TransientMultiApp
input_files = sub.i
positions = '0 0 0'
[]
[]
[Transfers]
[runner]
type = SamplerParameterTransfer
multi_app = sub
sampler = sample
parameters = 'BCs/left/value BCs/right/value'
to_control = 'stochastic'
execute_on = INITIAL
check_multiapp_execute_on = false
[]
[data]
type = SamplerPostprocessorTransfer
multi_app = sub
sampler = sample
to_vector_postprocessor = storage
from_postprocessor = avg
execute_on = timestep_end
check_multiapp_execute_on = false
[]
[]
[VectorPostprocessors]
[storage]
type = StochasticResults
samplers = sample
[]
[]
[Executioner]
type = Transient
num_steps = 5
dt = 0.01
[]
[Problem]
solve = false
kernel_coverage_check = false
[]
[Outputs]
csv = true
[]
modules/stochastic_tools/test/tests/transfers/errors/master_num_parameters_wrong.i
[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 = 5
distributions = 'uniform_left uniform_right'
execute_on = 'initial timestep_end'
[]
[]
[MultiApps]
[sub]
type = SamplerTransientMultiApp
input_files = sub.i
sampler = sample
[]
[]
[Transfers]
[sub]
type = SamplerParameterTransfer
multi_app = sub
sampler = sample
parameters = 'BCs/left/value BCs/right/value BCs/right/value'
to_control = 'stochastic'
[]
[]
[Executioner]
type = Transient
num_steps = 5
dt = 0.01
[]
[Problem]
solve = false
kernel_coverage_check = false
[]
[Outputs]
execute_on = 'INITIAL TIMESTEP_END'
[]
modules/stochastic_tools/test/tests/transfers/sampler_transfer_vector/master_size_mismatch.i
[Mesh]
type = GeneratedMesh
dim = 1
nx = 1
ny = 1
[]
[Variables]
[u]
[]
[]
[Distributions]
[uniform_prop_a]
type = UniformDistribution
lower_bound = 1980
upper_bound = 1981
[]
[uniform_prop_b]
type = UniformDistribution
lower_bound = 1949
upper_bound = 1950
[]
[]
[Samplers]
[sample]
type = MonteCarloSampler
num_rows = 5
distributions = 'uniform_prop_a uniform_prop_b'
execute_on = 'initial timestep_end' # create new random numbers on initial and timestep_end
[]
[]
[MultiApps]
[sub]
type = SamplerTransientMultiApp
input_files = sub.i
sampler = sample
execute_on = 'initial timestep_end'
[]
[]
[Transfers]
[sub]
type = SamplerParameterTransfer
multi_app = sub
sampler = sample
parameters = 'Materials/*/prop_values'
to_control = 'stochastic'
execute_on = 'initial timestep_end'
check_multiapp_execute_on = false
[]
[]
[Executioner]
type = Transient
num_steps = 5
dt = 0.01
[]
[Problem]
solve = false
kernel_coverage_check = false
[]
[Outputs]
execute_on = 'initial timestep_end'
[]
modules/stochastic_tools/examples/batch/transient.i
[Mesh]
type = GeneratedMesh
dim = 1
[]
[Problem]
kernel_coverage_check = false
solve = false
[]
[Distributions]
[uniform]
type = UniformDistribution
lower_bound = 1
upper_bound = 9
[]
[]
[Samplers]
[mc]
type = MonteCarloSampler
n_samples = 10
distributions = 'uniform uniform'
[]
[]
[Executioner]
type = Transient
num_steps = 10
[]
[MultiApps]
[runner]
type = SamplerFullSolveMultiApp
sampler = mc
input_files = 'sub.i'
execute_on = 'INITIAL TIMESTEP_END'
mode = batch-restore
[]
[]
[Transfers]
[runner]
type = SamplerParameterTransfer
multi_app = runner
parameters = 'BCs/left/value BCs/right/value'
to_control = receiver
[]
[data]
type = SamplerPostprocessorTransfer
multi_app = runner
vector_postprocessor = storage
postprocessor = average
[]
[]
[VectorPostprocessors]
[storage]
type = StochasticResults
[]
[]
[Postprocessors]
[total]
type = MemoryUsage
execute_on = 'INITIAL TIMESTEP_END'
[]
[per_proc]
type = MemoryUsage
value_type = "average"
execute_on = 'INITIAL TIMESTEP_END'
[]
[max_proc]
type = MemoryUsage
value_type = "max_process"
execute_on = 'INITIAL TIMESTEP_END'
[]
[]
[Outputs]
csv = true
perf_graph = true
[]
modules/stochastic_tools/test/tests/transfers/sampler_transfer/errors/master_num_parameters_wrong.i
[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 = 5
distributions = 'uniform_left uniform_right'
execute_on = 'initial timestep_end'
[]
[]
[MultiApps]
[sub]
type = SamplerTransientMultiApp
input_files = sub.i
sampler = sample
[]
[]
[Transfers]
[sub]
type = SamplerParameterTransfer
multi_app = sub
sampler = sample
parameters = 'BCs/left/value BCs/right/value BCs/right/value'
to_control = 'stochastic'
[]
[]
[Executioner]
type = Transient
num_steps = 5
dt = 0.01
[]
[Problem]
solve = false
kernel_coverage_check = false
[]
[Outputs]
execute_on = 'INITIAL TIMESTEP_END'
[]
modules/stochastic_tools/test/tests/multiapps/batch_sampler_transient_multiapp/master_transient.i
[Mesh]
type = GeneratedMesh
dim = 1
[]
[Problem]
kernel_coverage_check = false
solve = false
[]
[Distributions]
[uniform]
type = UniformDistribution
lower_bound = 2
upper_bound = 4
[]
[]
[Samplers]
[mc]
type = MonteCarloSampler
num_rows = 5
distributions = 'uniform uniform'
execute_on = 'INITIAL TIMESTEP_BEGIN'
[]
[]
[Executioner]
type = Transient
num_steps = 3
[]
[MultiApps]
[runner]
type = SamplerTransientMultiApp
sampler = mc
input_files = 'sub.i'
execute_on = 'INITIAL TIMESTEP_BEGIN'
mode = batch-restore
[]
[]
[Transfers]
[runner]
type = SamplerParameterTransfer
multi_app = runner
sampler = mc
parameters = 'BCs/left/value BCs/right/value'
to_control = 'stochastic'
[]
[data]
type = SamplerPostprocessorTransfer
multi_app = runner
sampler = mc
to_vector_postprocessor = storage
from_postprocessor = average
[]
[]
[VectorPostprocessors]
[storage]
type = StochasticResults
samplers = mc
execute_on = 'INITIAL TIMESTEP_END'
[]
[]
[Outputs]
csv = true
[]
modules/stochastic_tools/test/tests/transfers/monte_carlo/monte_carlo.i
[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 = 10
distributions = 'uniform_left uniform_right'
execute_on = INITIAL # create random numbers on initial and use them for each timestep
[]
[]
[MultiApps]
[sub]
type = SamplerTransientMultiApp
input_files = sub.i
sampler = sample
[]
[]
[Transfers]
[sub]
type = SamplerParameterTransfer
multi_app = sub
sampler = sample
parameters = 'BCs/left/value BCs/right/value'
to_control = 'stochastic'
execute_on = INITIAL
check_multiapp_execute_on = false
[]
[]
[Executioner]
type = Transient
num_steps = 5
dt = 0.01
[]
[Problem]
solve = false
kernel_coverage_check = false
[]
[Outputs]
execute_on = 'INITIAL TIMESTEP_END'
[]