![]() |
PRISMS-PF Manual v3.0-pre
|
Class to manage the variable attributes that the user specifies. More...
#include <variable_attribute_loader.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. | |
std::map< unsigned int, variableAttributes > | get_var_attributes () const |
getter function for variable attributes list (copy). | |
Protected Member Functions | |
virtual void | loadVariableAttributes () |
User-facing method where the variable attributes are set for solution fields and postprocess fields. | |
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 &field_type) |
Set the field type of the variable at index to field_type where field_type can be SCALAR or VECTOR . | |
void | set_variable_equation_type (const unsigned int &index, const PDEType &pde_type) |
Set the PDE type of the variable at index to pde_type where pde_type can be EXPLICIT_TIME_DEPENDENT , IMPLICIT_TIME_DEPENDENT , TIME_INDEPENDENT , AUXILIARY . | |
void | set_is_postprocessed_field (const unsigned int &index, const bool &is_postprocess) |
Set the whether the field is a postprocessed field. | |
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 . | |
Class to manage the variable attributes that the user specifies.
|
protected |
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)"} |
|
protected |
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)"} |
|
protected |
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)"} |
|
protected |
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 variable attributes are set for solution fields and postprocess fields.
Reimplemented in customAttributeLoader.
|
protected |
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)" |
|
protected |
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)" |
|
protected |
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)" |
|
protected |
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)" |
|
protected |
Set the whether the field is a postprocessed field.
index | Index of variable |
is_postprocess | Whether the field is postprocessed. |
|
protected |
Set the PDE type of the variable at index
to pde_type
where pde_type
can be EXPLICIT_TIME_DEPENDENT
, IMPLICIT_TIME_DEPENDENT
, TIME_INDEPENDENT
, AUXILIARY
.
index | Index of variable |
pde_type | PDE type of variable at index . |
|
protected |
Set the name of the variable at index
to name
.
index | Index of variable |
name | Name of variable at index |
|
protected |
Set the field type of the variable at index
to field_type
where field_type
can be SCALAR
or VECTOR
.
index | Index of variable |
field_type | Field type of variable at index (SCALAR or VECTOR ). |