Class the stores and manages user-defined constants.
More...
#include <user_constants.h>
|
| class | VariantPrinter |
| | Class for printing of variant types. This is bad practice and should be fixed. More...
|
| |
|
| unsigned int | compute_tensor_parentheses (const unsigned int &n_elements, const std::vector< std::string > &tensor_elements) |
| | Compute the number of tensor rows.
|
| |
| void | remove_parentheses (std::vector< std::string > &tensor_elements) |
| | Remove and leading and trailing parentheses.
|
| |
| dealii::Tensor< 1, dim > | compute_rank_1_tensor_constant (const unsigned int &n_elements, const std::vector< std::string > &tensor_elements) |
| | Compute a 1st rank tensor from user inputs .
|
| |
| dealii::Tensor< 2, dim > | compute_rank_2_tensor_constant (const unsigned int &n_elements, const std::vector< std::string > &tensor_elements) |
| | Compute a 2nd rank tensor from user inputs .
|
| |
| InputVariant | primitive_model_constant (std::vector< std::string > &model_constants_strings) |
| | Assign the primitive user constants (e.g., int, double, bool).
|
| |
| dealii::Tensor< 2,(2 *dim) - 1+(dim/3)> | get_cij_tensor (std::vector< double > elastic_constants, const std::string &elastic_const_symmetry) const |
| |
| dealii::Tensor< 2,(2 *dim) - 1+(dim/3)> | get_cij_matrix (const ElasticityModel &model, const std::vector< double > &constants) const |
| |
Class the stores and manages user-defined constants.
◆ InputVariant
◆ add_user_constant()
| void UserConstants< dim >::add_user_constant |
( |
const std::string & |
constant_name, |
|
|
std::vector< std::string > & |
model_constants_strings |
|
) |
| |
|
inline |
Print all user-specified constants.
◆ compute_rank_1_tensor_constant()
Compute a 1st rank tensor from user inputs .
◆ compute_rank_2_tensor_constant()
Compute a 2nd rank tensor from user inputs .
◆ compute_tensor_parentheses()
Compute the number of tensor rows.
◆ construct_user_constant()
Assign the specified user constant to whatever type.
◆ get_cij_matrix()
◆ get_cij_tensor()
| dealii::Tensor< 2,(2 *dim) - 1+(dim/3)> UserConstants< dim >::get_cij_tensor |
( |
std::vector< double > |
elastic_constants, |
|
|
const std::string & |
elastic_const_symmetry |
|
) |
| const |
|
inlineprivate |
◆ get_model_constant_bool()
Retrieve the bool from the model_constants that are defined from the parameters.prm parser. This is essentially just a wrapper for boost::get.
- Parameters
-
| constant_name | Name of the constant to retrieve. |
◆ get_model_constant_double()
Retrieve the double from the model_constants that are defined from the parameters.prm parser. This is essentially just a wrapper for boost::get.
- Parameters
-
| constant_name | Name of the constant to retrieve. |
◆ get_model_constant_elasticity_tensor()
| dealii::Tensor< 2,(2 *dim) - 1+(dim/3)> UserConstants< dim >::get_model_constant_elasticity_tensor |
( |
const std::string & |
constant_name | ) |
const |
|
inline |
Retrieve the elasticity tensor from the model_constants that are defined from the parameters.prm parser. This is essentially just a wrapper for boost::get.
- Parameters
-
| constant_name | Name of the constant to retrieve. |
◆ get_model_constant_int()
Retrieve the int from the model_constants that are defined from the parameters.prm parser. This is essentially just a wrapper for boost::get.
- Parameters
-
| constant_name | Name of the constant to retrieve. |
◆ get_model_constant_rank_1_tensor()
| dealii::Tensor< 1, dim > UserConstants< dim >::get_model_constant_rank_1_tensor |
( |
const std::string & |
constant_name | ) |
const |
|
inline |
Retrieve the rank 1 tensor from the model_constants that are defined from the parameters.prm parser. This is essentially just a wrapper for boost::get.
- Parameters
-
| constant_name | Name of the constant to retrieve. |
◆ get_model_constant_rank_2_tensor()
| dealii::Tensor< 2, dim > UserConstants< dim >::get_model_constant_rank_2_tensor |
( |
const std::string & |
constant_name | ) |
const |
|
inline |
Retrieve the rank 2 tensor from the model_constants that are defined from the parameters.prm parser. This is essentially just a wrapper for boost::get.
- Parameters
-
| constant_name | Name of the constant to retrieve. |
◆ primitive_model_constant()
Assign the primitive user constants (e.g., int, double, bool).
◆ print()
Print all user-specified constants.
◆ remove_parentheses()
Remove and leading and trailing parentheses.
◆ model_constants
List of user-defined constants.
The documentation for this class was generated from the following file:
- /home/runner/work/phaseField/phaseField/include/prismspf/user_inputs/user_constants.h