svMultiPhysics
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
CANNParameters Class Reference

The CANNParameters class stores the parameters table rows for xml element "Constitutive_model type=CANN". Each row is handled with xml element "Add_row". More...

#include <Parameters.h>

Inheritance diagram for CANNParameters:
[legend]

Public Member Functions

 CANNParameters ()
 Constructor for CANNParameters class. Initializes parameter table.
 
 ~CANNParameters ()
 Destructor for CANNParameters class. Deletes memory dynamically allocated to the rows of the table.
 
bool defined () const
 
void set_values (tinyxml2::XMLElement *con_model_params)
 
void print_parameters ()
 
- Public Member Functions inherited from ParameterLists
void set_xml_element_name (const std::string &name)
 
void set_parameter (const std::string &name, const bool value, bool required, Parameter< bool > &param)
 Set the name, default value and the parameter required flag.
 
void set_parameter (const std::string &name, const double value, bool required, Parameter< double > &param)
 
void set_parameter (const std::string &name, std::initializer_list< double > value, bool required, VectorParameter< double > &param)
 
void set_parameter (const std::string &name, std::initializer_list< int > value, bool required, VectorParameter< int > &param)
 
void set_parameter (const std::string &name, std::initializer_list< std::string > value, bool required, VectorParameter< std::string > &param)
 
void set_parameter (const std::string &name, const int value, bool required, Parameter< int > &param, std::vector< int > range={})
 
void set_parameter (const std::string &name, const std::string &value, bool required, Parameter< std::string > &param)
 
void set_parameter_value_CANN (const std::string &name, const std::string &value)
 set_parameter function to handle CANNRow
 
void set_parameter_value (const std::string &name, const std::string &value)
 Set the value of a paramter from a string.
 
void check_required ()
 Check if any required parameters have not been set.
 
std::map< std::string, std::string > get_parameter_list ()
 Get the defined parameters as a map of strings.
 
void print_parameter_list ()
 Print the parameters.
 

Public Attributes

std::vector< CANNRowParameters * > rows
 
bool value_set = false
 
- Public Attributes inherited from ParameterLists
std::map< std::string, std::variant< Parameter< bool > *, Parameter< double > *, Parameter< int > *, Parameter< std::string > *, VectorParameter< double > *, VectorParameter< int > *, VectorParameter< std::string > * > > params_map
 Map used for storing parameters by name / Parameter template union.
 
std::string xml_element_name = ""
 

Detailed Description

The CANNParameters class stores the parameters table rows for xml element "Constitutive_model type=CANN". Each row is handled with xml element "Add_row".

<Constitutive_model type="CANN">
<Add_row row_name="1">
<Invariant_num> 1 </Invariant_num>
<Activation_functions> (1,1,1) </Activation_functions>
<Weights> (1.0,1.0,1.0) </Weights>
</Add_row>
</Constitutive_model>

Constructor & Destructor Documentation

◆ CANNParameters()

CANNParameters::CANNParameters ( )

Constructor for CANNParameters class. Initializes parameter table.

◆ ~CANNParameters()

CANNParameters::~CANNParameters ( )

Destructor for CANNParameters class. Deletes memory dynamically allocated to the rows of the table.


The documentation for this class was generated from the following files: