#include <ParameterStudyAction.h>
Public Types | |
typedef DataFileName | DataFileParameterType |
Public Member Functions | |
ParameterStudyAction (const InputParameters ¶ms) | |
virtual void | act () override |
void | timedAct () |
virtual void | addRelationshipManagers (Moose::RelationshipManagerType when_type) |
MooseObjectName | uniqueActionName () const |
const std::string & | specificTaskName () const |
const std::set< std::string > & | getAllTasks () const |
void | appendTask (const std::string &task) |
MooseApp & | getMooseApp () const |
const std::string & | type () const |
virtual const std::string & | name () const |
std::string | typeAndName () const |
std::string | errorPrefix (const std::string &error_type) const |
void | callMooseError (std::string msg, const bool with_prefix) const |
MooseObjectParameterName | uniqueParameterName (const std::string ¶meter_name) const |
const InputParameters & | parameters () const |
MooseObjectName | uniqueName () const |
const T & | getParam (const std::string &name) const |
std::vector< std::pair< T1, T2 > > | getParam (const std::string ¶m1, const std::string ¶m2) const |
const T * | queryParam (const std::string &name) const |
const T & | getRenamedParam (const std::string &old_name, const std::string &new_name) const |
T | getCheckedPointerParam (const std::string &name, const std::string &error_string="") const |
bool | isParamValid (const std::string &name) const |
bool | isParamSetByUser (const std::string &nm) const |
void | paramError (const std::string ¶m, Args... args) const |
void | paramWarning (const std::string ¶m, Args... args) const |
void | paramInfo (const std::string ¶m, Args... args) const |
void | connectControllableParams (const std::string ¶meter, const std::string &object_type, const std::string &object_name, const std::string &object_parameter) const |
void | mooseError (Args &&... args) const |
void | mooseErrorNonPrefixed (Args &&... args) const |
void | mooseDocumentedError (const std::string &repo_name, const unsigned int issue_num, Args &&... args) const |
void | mooseWarning (Args &&... args) const |
void | mooseWarningNonPrefixed (Args &&... args) const |
void | mooseDeprecated (Args &&... args) const |
void | mooseInfo (Args &&... args) const |
std::string | getDataFileName (const std::string ¶m) const |
std::string | getDataFileNameByName (const std::string &relative_path) const |
std::string | getDataFilePath (const std::string &relative_path) const |
PerfGraph & | perfGraph () |
const Parallel::Communicator & | comm () const |
processor_id_type | n_processors () const |
processor_id_type | processor_id () const |
Static Public Member Functions | |
static InputParameters | validParams () |
static MooseEnum | samplingTypes () |
Return an enum of available sampling types for the study. More... | |
static MultiMooseEnum | distributionTypes () |
Return an enum of available distributions for the study. More... | |
Public Attributes | |
const ConsoleStream | _console |
Static Public Attributes | |
static constexpr auto | SYSTEM |
static constexpr auto | NAME |
Protected Member Functions | |
DistributionName | distributionName (unsigned int count) const |
The perscribed name of the distribution. More... | |
std::vector< DistributionName > | distributionNames (unsigned int full_count) const |
SamplerName | samplerName () const |
The perscribed name of the sampler created in this action. More... | |
MultiAppName | multiappName () const |
The perscribed name of the multiapp created in this action. More... | |
std::string | samplerReceiverName () const |
The perscribed name of the control given to the sub-app for parameter transfer. More... | |
std::string | multiappControlName () const |
The perscribed name of the command-line control created in this action. More... | |
std::string | parameterTransferName () const |
The perscribed name of the parameter transfer created in this action. More... | |
std::string | reporterTransferName () const |
The perscribed name of the reporter transfer created in this action. More... | |
std::string | stochasticReporterName () const |
The perscribed name of the QoI storage object created in this action. More... | |
OutputName | outputName (std::string type) const |
The perscribed name of the output objects created in this action. More... | |
ReporterName | quantityOfInterestName (const ReporterName &qoi) const |
The name of the reporter values in the StochasticReporter representing the QoIs. More... | |
std::string | statisticsName () const |
The perscribed name of the statistics object created in this action. More... | |
template<typename T > | |
T | getDistributionParam (std::string param, unsigned int count) const |
Helper function for getting the param value for the distribution index. More... | |
void | showObject (std::string type, std::string name, const InputParameters ¶ms) const |
Helper function to show the object being built. More... | |
bool | addRelationshipManagers (Moose::RelationshipManagerType when_type, const InputParameters &moose_object_pars) |
void | associateWithParameter (const std::string ¶m_name, InputParameters ¶ms) const |
void | associateWithParameter (const InputParameters &from_params, const std::string ¶m_name, InputParameters ¶ms) const |
const T & | getMeshProperty (const std::string &data_name, const std::string &prefix) |
const T & | getMeshProperty (const std::string &data_name) |
bool | hasMeshProperty (const std::string &data_name, const std::string &prefix) const |
bool | hasMeshProperty (const std::string &data_name, const std::string &prefix) const |
bool | hasMeshProperty (const std::string &data_name) const |
bool | hasMeshProperty (const std::string &data_name) const |
std::string | meshPropertyName (const std::string &data_name) const |
PerfID | registerTimedSection (const std::string §ion_name, const unsigned int level) const |
PerfID | registerTimedSection (const std::string §ion_name, const unsigned int level, const std::string &live_message, const bool print_dots=true) const |
std::string | timedSectionName (const std::string §ion_name) const |
Static Protected Member Functions | |
static std::string | meshPropertyName (const std::string &data_name, const std::string &prefix) |
Protected Attributes | |
std::string | _registered_identifier |
std::string | _specific_task_name |
std::set< std::string > | _all_tasks |
ActionWarehouse & | _awh |
const std::string & | _current_task |
std::shared_ptr< MooseMesh > & | _mesh |
std::shared_ptr< MooseMesh > & | _displaced_mesh |
std::shared_ptr< FEProblemBase > & | _problem |
PerfID | _act_timer |
MooseApp & | _app |
const std::string | _type |
const std::string | _name |
const InputParameters & | _pars |
Factory & | _factory |
ActionFactory & | _action_factory |
MooseApp & | _pg_moose_app |
const std::string | _prefix |
const Parallel::Communicator & | _communicator |
Private Member Functions | |
unsigned int | inferMultiAppMode () |
This function will infer the best way to run the multiapps. More... | |
Static Private Member Functions | |
static std::vector< std::map< std::string, bool > > | samplerParameters () |
This is a vector associating the sampling type with a list of associated parameters The list includes the parameter name and whether or not it is required. More... | |
static std::vector< std::vector< std::string > > | distributionParameters () |
This is a vector associating the distribution type and a list of parameters that are needed. More... | |
static std::set< std::string > | statisticsParameters () |
List of parameters that are only associated with computing statistics. More... | |
Private Attributes | |
const std::vector< std::string > & | _parameters |
The inputted parameter vector. More... | |
const unsigned int | _sampling_type |
The sampling type. More... | |
const MultiMooseEnum | _distributions |
The distributions. More... | |
const unsigned int | _multiapp_mode |
The multiapp mode. More... | |
const bool | _compute_stats |
Whether or not we are computing statistics. More... | |
const bool | _show_objects |
Switch to show the objects being built on console. More... | |
Definition at line 18 of file ParameterStudyAction.h.
ParameterStudyAction::ParameterStudyAction | ( | const InputParameters & | params | ) |
Definition at line 170 of file ParameterStudyAction.C.
|
overridevirtual |
Implements Action.
Definition at line 260 of file ParameterStudyAction.C.
|
protected |
The perscribed name of the distribution.
Need this to give the right name to the sampler
count | The index of the distribution |
Definition at line 608 of file ParameterStudyAction.C.
Referenced by act(), and distributionNames().
|
protected |
Definition at line 614 of file ParameterStudyAction.C.
Referenced by act().
|
staticprivate |
This is a vector associating the distribution type and a list of parameters that are needed.
Definition at line 685 of file ParameterStudyAction.C.
Referenced by ParameterStudyAction().
|
static |
Return an enum of available distributions for the study.
Definition at line 254 of file ParameterStudyAction.C.
Referenced by act(), and validParams().
|
protected |
Helper function for getting the param value for the distribution index.
T | The type of parameter, it will be trying to get std::vector<T> |
param | The name of the parameter |
count | The index of the specific distribution |
Definition at line 180 of file ParameterStudyAction.h.
|
private |
This function will infer the best way to run the multiapps.
Definition at line 703 of file ParameterStudyAction.C.
|
inlineprotected |
The perscribed name of the command-line control created in this action.
Definition at line 68 of file ParameterStudyAction.h.
Referenced by act().
|
inlineprotected |
The perscribed name of the multiapp created in this action.
Definition at line 54 of file ParameterStudyAction.h.
Referenced by act().
|
inlineprotected |
The perscribed name of the output objects created in this action.
type | The type of output object created |
Definition at line 97 of file ParameterStudyAction.h.
Referenced by act().
|
inlineprotected |
The perscribed name of the parameter transfer created in this action.
Definition at line 75 of file ParameterStudyAction.h.
Referenced by act().
|
protected |
The name of the reporter values in the StochasticReporter representing the QoIs.
qoi | The name of the reporter on the sub-app |
Definition at line 623 of file ParameterStudyAction.C.
Referenced by act().
|
inlineprotected |
The perscribed name of the reporter transfer created in this action.
Definition at line 82 of file ParameterStudyAction.h.
Referenced by act().
|
inlineprotected |
The perscribed name of the sampler created in this action.
Definition at line 47 of file ParameterStudyAction.h.
Referenced by act().
|
staticprivate |
This is a vector associating the sampling type with a list of associated parameters The list includes the parameter name and whether or not it is required.
Definition at line 674 of file ParameterStudyAction.C.
Referenced by ParameterStudyAction().
|
inlineprotected |
The perscribed name of the control given to the sub-app for parameter transfer.
Definition at line 61 of file ParameterStudyAction.h.
Referenced by act().
|
static |
Return an enum of available sampling types for the study.
Definition at line 248 of file ParameterStudyAction.C.
Referenced by validParams().
|
protected |
Helper function to show the object being built.
Will display:
type | The type of objecte, i.e. "SamplerFullSolveMultiApp" |
name | The name of the object |
params | The parameters used to create the object |
Definition at line 629 of file ParameterStudyAction.C.
Referenced by act().
|
inlineprotected |
The perscribed name of the statistics object created in this action.
Definition at line 112 of file ParameterStudyAction.h.
Referenced by act().
|
staticprivate |
List of parameters that are only associated with computing statistics.
Definition at line 697 of file ParameterStudyAction.C.
Referenced by ParameterStudyAction().
|
inlineprotected |
The perscribed name of the QoI storage object created in this action.
Definition at line 89 of file ParameterStudyAction.h.
Referenced by act(), and quantityOfInterestName().
|
static |
Definition at line 27 of file ParameterStudyAction.C.
|
private |
Whether or not we are computing statistics.
Definition at line 173 of file ParameterStudyAction.h.
Referenced by act(), and ParameterStudyAction().
|
private |
The distributions.
Definition at line 168 of file ParameterStudyAction.h.
Referenced by act(), and ParameterStudyAction().
|
private |
The multiapp mode.
This is used for determining type of execution for the multiapp and the way to send the perturbed parameters
Definition at line 171 of file ParameterStudyAction.h.
Referenced by act().
|
private |
The inputted parameter vector.
Definition at line 164 of file ParameterStudyAction.h.
Referenced by act(), and inferMultiAppMode().
|
private |
The sampling type.
Definition at line 166 of file ParameterStudyAction.h.
Referenced by act(), and ParameterStudyAction().
|
private |
Switch to show the objects being built on console.
Definition at line 175 of file ParameterStudyAction.h.
Referenced by act().