28 virtual void act()
override final;
104 const std::string & param_name,
106 const std::string & param_value)
const;
116 const std::string & param_name,
118 const std::vector<std::string> & param_value)
const;
126 template <
typename T>
128 const std::string & param_name,
129 const std::vector<std::string> & param_value)
const;
138 template <
typename T>
140 const std::string & param_name,
141 const std::vector<std::string> & param_value)
const;
150 template <
typename T>
152 const std::string & param_name,
153 const std::vector<std::string> & param_value)
const;
164 const std::string & action_input_param_name,
165 const std::vector<std::string> & param_names,
166 const std::vector<ParameterType> & param_types,
167 const bool & is_vector =
false)
const;
176 template <
typename T>
178 const std::string & action_input_param_name,
179 const std::string & param_name,
180 const bool & is_vector)
const;
187 template <
typename T>
Action to generate batches of mesh generators from vectors of parameter values.
T convertStringToCompoundRealScalar(const std::string &str) const
Convert a string to a compound real scalar type.
std::vector< std::vector< std::string > > _fixed_vector_input_param_values
Values of the vector input parameters to keep fixed in the batch generation.
const std::vector< ParameterType > _fixed_scalar_input_param_types
Types of the vector input parameters to keep fixed in the batch generation.
std::vector< std::vector< std::string > > _batch_scalar_input_param_values
Values of the scalar input parameters to vary in the batch generation.
const std::vector< std::string > _fixed_vector_input_param_names
Names of the vector input parameters to keep fixed in the batch generation.
const std::string _mesh_generator_type
Type (object name) of the mesh generator to use for batch generation.
bool isCompoundRealScalarType(const ParameterType ¶m_type) const
Check if the parameter type is a compound real scalar type.
const std::string _mesh_name_prefix
Prefix to use for naming the batch generated meshes.
virtual void addMeshGenerators()
const MultiBatchParamsMethod _multi_batch_params_method
Method to use for generating the batch parameters.
static InputParameters validParams()
virtual void act() override final
Method to add objects to the simulation or perform other setup tasks.
const std::vector< std::string > _batch_vector_input_param_names
Names of the vector input parameters to vary in the batch generation.
void checkInputParameterType(const InputParameters ¶ms, const std::string &action_input_param_name, const std::string ¶m_name, const bool &is_vector) const
Check the type of the input parameter is valid, otherwise throw an error.
const std::vector< std::string > _fixed_scalar_input_param_names
Names of the vector input parameters to keep fixed in the batch generation.
const std::vector< ParameterType > _batch_scalar_input_param_types
Types of the scalar input parameters to vary in the batch generation.
const std::vector< ParameterType > _fixed_vector_input_param_types
Types of the vector input parameters to keep fixed in the batch generation.
std::vector< std::vector< std::vector< std::string > > > _batch_vector_input_param_values
Values of the vector input parameters to vary in the batch generation.
void setVectorParams(InputParameters ¶ms, const std::string ¶m_name, const ParameterType ¶m_type, const std::vector< std::string > ¶m_value) const
Set the vector input parameters for a unit mesh generator.
const std::vector< ParameterType > _batch_vector_input_param_types
Types of the vector input parameters to vary in the batch generation.
void convertAndSetNumericVector(InputParameters ¶ms, const std::string ¶m_name, const std::vector< std::string > ¶m_value) const
Convert a vector of strings to a numeric vector and set it in the InputParameters object.
std::vector< std::string > _fixed_scalar_input_param_values
Values of the vector input parameters to keep fixed in the batch generation.
void setScalarParams(InputParameters ¶ms, const std::string ¶m_name, const ParameterType ¶m_type, const std::string ¶m_value) const
Set the scalar input parameters for a unit mesh generator.
void convertAndSetCompoundRealScalarVector(InputParameters ¶ms, const std::string ¶m_name, const std::vector< std::string > ¶m_value) const
Convert a vector of strings to a compound real scalar type vector and set it in the InputParameters o...
void convertAndSetStringLikeVector(InputParameters ¶ms, const std::string ¶m_name, const std::vector< std::string > ¶m_value) const
Convert a vector of strings to a string-derived type vector and set it in the InputParameters object.
void checkInputParametersTypes(const InputParameters ¶ms, const std::string &action_input_param_name, const std::vector< std::string > ¶m_names, const std::vector< ParameterType > ¶m_types, const bool &is_vector=false) const
Check the types of the input parameters are valid, otherwise throw an error.
const std::vector< std::string > _batch_scalar_input_param_names
Names of the scalar input parameters to vary in the batch generation.
const bool _use_decomposed_index
Flag to indicate if the decomposed index should be used in the mesh name.