20 #ifndef LIBMESH_RB_PARAMETRIZED_H 21 #define LIBMESH_RB_PARAMETRIZED_H 24 #include "libmesh/rb_parameters.h" 27 #include "libmesh/reference_counted_object.h" 69 virtual void clear ();
80 const std::map<std::string, std::vector<Real>> & discrete_parameter_values);
102 #ifdef LIBMESH_ENABLE_DEPRECATED 112 #endif // LIBMESH_ENABLE_DEPRECATED 160 const std::string & discrete_param_file_name,
161 const bool write_binary_data);
167 const std::string & discrete_param_file_name,
168 const bool read_binary_data);
201 const bool write_binary);
207 const bool write_binary_data);
214 const bool read_binary,
222 const bool read_binary_data,
223 std::map<std::string, std::vector<Real>> & discrete_parameter_values_in);
268 #endif // LIBMESH_RB_PARAMETRIZED_H virtual void clear()
Clear all the data structures associated with the system.
bool parameters_initialized
Flag indicating whether the parameters have been initialized.
void write_parameter_data_to_files(const std::string &continuous_param_file_name, const std::string &discrete_param_file_name, const bool write_binary_data)
Write out the parameter ranges to files.
void read_parameter_ranges_from_file(const std::string &file_name, const bool read_binary, RBParameters ¶m_min, RBParameters ¶m_max)
Read in the parameter ranges from file.
Real get_parameter_min(const std::string ¶m_name) const
Get minimum allowable value of parameter param_name.
Real get_parameter_max(const std::string ¶m_name) const
Get maximum allowable value of parameter param_name.
RBParametrized & operator=(RBParametrized &&)=default
void write_discrete_parameter_values_to_file(const std::string &file_name, const bool write_binary_data)
Write out the discrete parameter values to file.
const RBParameters & get_parameters_max() const
Get an RBParameters object that specifies the maximum allowable value for each parameter.
virtual ~RBParametrized()
void read_discrete_parameter_values_from_file(const std::string &file_name, const bool read_binary_data, std::map< std::string, std::vector< Real >> &discrete_parameter_values_in)
Read in the discrete parameter values from file, if we have any.
void read_parameter_data_from_files(const std::string &continuous_param_file_name, const std::string &discrete_param_file_name, const bool read_binary_data)
Read in the parameter ranges from files.
The libMesh namespace provides an interface to certain functionality in the library.
static Real get_closest_value(Real value, const std::vector< Real > &list_of_values)
static bool is_value_in_list(Real value, const std::vector< Real > &list_of_values, Real tol)
Helper function to check if the specified value is in the list of values (within a tolerance given by...
unsigned int get_n_discrete_params() const
Get the number of discrete parameters.
RBParameters parameters_min
Vectors that define the ranges (min and max) for the parameters.
const RBParameters & get_parameters_min() const
Get an RBParameters object that specifies the minimum allowable value for each parameter.
std::set< std::string > get_parameter_names() const
Get a set that stores the parameter names.
void write_parameter_ranges_to_file(const std::string &file_name, const bool write_binary)
Write out the parameter ranges to file.
RBParametrized()
Constructor.
const std::map< std::string, std::vector< Real > > & get_discrete_parameter_values() const
Get a const reference to the discrete parameter values.
const RBParameters & get_parameters() const
Get the current parameters.
void print_parameters() const
Print the current parameters.
This class is part of the rbOOmit framework.
std::map< std::string, std::vector< Real > > _discrete_parameter_values
Map that defines the allowable values of any discrete parameters.
unsigned int get_n_continuous_params() const
Get the number of continuous parameters.
bool verbose_mode
Public boolean to toggle verbose mode.
This class implements reference counting.
bool set_parameters(const RBParameters ¶ms)
Set the current parameters to params The parameters are checked for validity; an error is thrown if t...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
This class is part of the rbOOmit framework.
RBParameters parameters_max
bool check_if_valid_params(const RBParameters ¶ms) const
Helper function to check that params is valid:
void initialize_parameters(const RBParameters &mu_min_in, const RBParameters &mu_max_in, const std::map< std::string, std::vector< Real >> &discrete_parameter_values)
Initialize the parameter ranges and set current_parameters.
unsigned int get_n_params() const
Get the number of parameters.
bool is_discrete_parameter(const std::string &mu_name) const
Is parameter mu_name discrete?
void print_discrete_parameter_values() const
Print out all the discrete parameter values.
RBParameters parameters
Vector storing the current parameters.