![]() |
PRISMS-PF Manual
|
Class to manage the variable attributes that the user specifies. More...
#include <variableAttributeLoader.h>
Public Member Functions | |
| variableAttributeLoader ()=default | |
| Constructor. | |
| virtual | ~variableAttributeLoader ()=default |
| Destructor. | |
| void | init_variable_attributes () |
Initialize the variable attributes from the two user-facing methods loadVariableAttributes() and loadPostProcessorVariableAttributes(). This must be called after the default constructor for derived classes. | |
| AttributesList | get_var_attributes () const |
| getter function for variable attributes list (copy). | |
| AttributesList | get_pp_attributes () const |
| getter function for postprocessing attributes list (copy). | |
| void | set_variable_name (const unsigned int &index, const std::string &name) |
Set the name of the variable at index to name. | |
| void | set_variable_type (const unsigned int &index, const fieldType &var_type) |
Set the field type of the variable at index to var_type where var_type can be SCALAR or VECTOR. | |
| void | set_variable_equation_type (const unsigned int &index, const PDEType &var_eq_type) |
Set the PDE type of the variable at index to var_eq_type where var_eq_typecan be EXPLICIT_TIME_DEPENDENT, IMPLICIT_TIME_DEPENDENT, TIME_INDEPENDENT, AUXILIARY. | |
| void | set_dependencies_value_term_RHS (const unsigned int &index, const std::string &dependencies) |
Add dependencies for the value term of the RHS equation of the variable at index. | |
| void | set_dependencies_gradient_term_RHS (const unsigned int &index, const std::string &dependencies) |
Add dependencies for the gradient term of the RHS equation of the variable at index. | |
| void | set_dependencies_value_term_LHS (const unsigned int &index, const std::string &dependencies) |
Add dependencies for the value term of the LHS equation of the variable at index. | |
| void | set_dependencies_gradient_term_LHS (const unsigned int &index, const std::string &dependencies) |
Add dependencies for the gradient term of the LHS equation of the variable at index. | |
| template<typename Iterable > | |
| void | insert_dependencies_value_term_RHS (const unsigned int &index, const Iterable &dependencies) |
Insert dependencies for the value term of the RHS equation of the variable at index. | |
| template<typename Iterable > | |
| void | insert_dependencies_gradient_term_RHS (const unsigned int &index, const Iterable &dependencies) |
Insert dependencies for the gradient term of the RHS equation of the variable at index. | |
| template<typename Iterable > | |
| void | insert_dependencies_value_term_LHS (const unsigned int &index, const Iterable &dependencies) |
Insert dependencies for the value term of the LHS equation of the variable at index. | |
| template<typename Iterable > | |
| void | insert_dependencies_gradient_term_LHS (const unsigned int &index, const Iterable &dependencies) |
Insert dependencies for the gradient term of the LHS equation of the variable at index. | |
| void | set_need_value_nucleation (const unsigned int &index, const bool &flag) |
Flag whether the variable at index is needed to calculate the nucleation probability. | |
| void | set_allowed_to_nucleate (const unsigned int &index, const bool &flag) |
Flag whether the variable at index is can have a nucleation event. | |
| void | set_output_integral (const unsigned int &index, const bool &flag) |
(Postprocess only) Flag whether the postprocessing variable at index should have its domain integral calculated and output. | |
Protected Member Functions | |
| virtual void | loadVariableAttributes () |
| User-facing method where the variable attributes are set. | |
| virtual void | loadPostProcessorVariableAttributes () |
| User-facing method where the postprocessing variable attributes are set. | |
Class to manage the variable attributes that the user specifies.
| void variableAttributeLoader::insert_dependencies_gradient_term_LHS | ( | const unsigned int & | index, |
| const Iterable & | dependencies | ||
| ) |
Insert dependencies for the gradient term of the LHS equation of the variable at index.
| index | Index of variable |
| dependencies | Container containing list of dependency strings for variable at index Hint: {"variable", "grad(variable)", "hess(variable)"} |
| void variableAttributeLoader::insert_dependencies_gradient_term_RHS | ( | const unsigned int & | index, |
| const Iterable & | dependencies | ||
| ) |
Insert dependencies for the gradient term of the RHS equation of the variable at index.
| index | Index of variable |
| dependencies | Container containing list of dependency strings for variable at index Hint: {"variable", "grad(variable)", "hess(variable)"} |
| void variableAttributeLoader::insert_dependencies_value_term_LHS | ( | const unsigned int & | index, |
| const Iterable & | dependencies | ||
| ) |
Insert dependencies for the value term of the LHS equation of the variable at index.
| index | Index of variable |
| dependencies | Container containing list of dependency strings for variable at index Hint: {"variable", "grad(variable)", "hess(variable)"} |
| void variableAttributeLoader::insert_dependencies_value_term_RHS | ( | const unsigned int & | index, |
| const Iterable & | dependencies | ||
| ) |
Insert dependencies for the value term of the RHS equation of the variable at index.
| index | Index of variable |
| dependencies | Container containing list of dependency strings for variable at index Hint: {"variable", "grad(variable)", "hess(variable)"} |
|
protectedvirtual |
User-facing method where the postprocessing variable attributes are set.
Reimplemented in customAttributeLoader.
|
protectedvirtual |
User-facing method where the variable attributes are set.
Reimplemented in customAttributeLoader.
| void variableAttributeLoader::set_allowed_to_nucleate | ( | const unsigned int & | index, |
| const bool & | flag | ||
| ) |
Flag whether the variable at index is can have a nucleation event.
| index | Index of variable |
| flag | true: variable can nucleate, false: variable can not nucleate. |
| void variableAttributeLoader::set_dependencies_gradient_term_LHS | ( | const unsigned int & | index, |
| const std::string & | dependencies | ||
| ) |
Add dependencies for the gradient term of the LHS equation of the variable at index.
| index | Index of variable |
| dependencies | String containing comma-separated list of dependencies for variable at index Hint: "variable, grad(variable), hess(variable)" |
| void variableAttributeLoader::set_dependencies_gradient_term_RHS | ( | const unsigned int & | index, |
| const std::string & | dependencies | ||
| ) |
Add dependencies for the gradient term of the RHS equation of the variable at index.
| index | Index of variable |
| dependencies | String containing comma-separated list of dependencies for variable at index Hint: "variable, grad(variable), hess(variable)" |
| void variableAttributeLoader::set_dependencies_value_term_LHS | ( | const unsigned int & | index, |
| const std::string & | dependencies | ||
| ) |
Add dependencies for the value term of the LHS equation of the variable at index.
| index | Index of variable |
| dependencies | String containing comma-separated list of dependencies for variable at index Hint: "variable, grad(variable), hess(variable)" |
| void variableAttributeLoader::set_dependencies_value_term_RHS | ( | const unsigned int & | index, |
| const std::string & | dependencies | ||
| ) |
Add dependencies for the value term of the RHS equation of the variable at index.
| index | Index of variable |
| dependencies | String containing comma-separated list of dependencies for variable at index Hint: "variable, grad(variable), hess(variable)" |
| void variableAttributeLoader::set_need_value_nucleation | ( | const unsigned int & | index, |
| const bool & | flag | ||
| ) |
Flag whether the variable at index is needed to calculate the nucleation probability.
| index | Index of variable |
| flag | true: variable is needed, false: variable is not needed. |
| void variableAttributeLoader::set_output_integral | ( | const unsigned int & | index, |
| const bool & | flag | ||
| ) |
(Postprocess only) Flag whether the postprocessing variable at index should have its domain integral calculated and output.
| index | Index of variable |
| flag | true: calculate and output the integral of the field over the domain, false: do nothing |
| void variableAttributeLoader::set_variable_equation_type | ( | const unsigned int & | index, |
| const PDEType & | var_eq_type | ||
| ) |
Set the PDE type of the variable at index to var_eq_type where var_eq_typecan be EXPLICIT_TIME_DEPENDENT, IMPLICIT_TIME_DEPENDENT, TIME_INDEPENDENT, AUXILIARY.
| index | Index of variable |
| var_eq_type | PDE type of variable at index. |
| void variableAttributeLoader::set_variable_name | ( | const unsigned int & | index, |
| const std::string & | name | ||
| ) |
Set the name of the variable at index to name.
| index | Index of variable |
| name | Name of variable at index |
| void variableAttributeLoader::set_variable_type | ( | const unsigned int & | index, |
| const fieldType & | var_type | ||
| ) |
Set the field type of the variable at index to var_type where var_type can be SCALAR or VECTOR.
| index | Index of variable |
| var_type | Field type of variable at index (SCALAR or VECTOR). |