www.mooseframework.org
SamplerMultiApp.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 // StochasticTools includes
9 #include "SamplerMultiApp.h"
10 
11 template <>
12 InputParameters
14 {
15  InputParameters params = validParams<TransientMultiApp>();
16  params.addClassDescription("Creates a sub-application for each row of each Sampler matrix.");
17  params.addParam<SamplerName>("sampler", "The Sampler object to utilize for creating MultiApps.");
18  params.suppressParameter<std::vector<Point>>("positions");
19  params.suppressParameter<bool>("output_in_position");
20  params.suppressParameter<std::vector<FileName>>("positions_file");
21  params.suppressParameter<Real>("move_time");
22  params.suppressParameter<std::vector<Point>>("move_positions");
23  params.suppressParameter<std::vector<unsigned int>>("move_apps");
24  params.set<bool>("use_positions") = false;
25  return params;
26 }
27 
28 SamplerMultiApp::SamplerMultiApp(const InputParameters & parameters)
29  : TransientMultiApp(parameters),
30  SamplerInterface(this),
31  _sampler(SamplerInterface::getSampler("sampler"))
32 {
33  init(_sampler.getTotalNumberOfRows());
34 }
InputParameters validParams< SamplerMultiApp >()
Sampler & _sampler
Sampler to utilize for creating MultiApps.
SamplerMultiApp(const InputParameters &parameters)