34#ifndef SVZERODSOLVER_MODEL_DOFHANDLER_HPP_
35#define SVZERODSOLVER_MODEL_DOFHANDLER_HPP_
54 std::vector<std::string>
56 std::map<std::string, int>
58 std::vector<std::string>
112 int get_index(
const std::string_view& name)
const;
Degree-of-freedom handler.
Definition DOFHandler.h:48
int register_variable(const std::string &name)
Register a new variable at the DOFHandler.
Definition DOFHandler.cpp:42
int get_index(const std::string_view &name) const
Get the index of a variable.
Definition DOFHandler.cpp:62
int get_num_equations() const
Get the number of equations.
Definition DOFHandler.cpp:38
std::vector< std::string > variables
Variable names corresponding to the variable indices.
Definition DOFHandler.h:55
int get_num_variables() const
Get the number of variables.
Definition DOFHandler.cpp:40
int size() const
Get the size of the system.
Definition DOFHandler.cpp:36
std::vector< std::string > equations
Equation names corresponding to the equation indices.
Definition DOFHandler.h:59
int get_variable_index(const std::string &name) const
Get the index of a variable by its name.
Definition DOFHandler.cpp:48
int register_equation(const std::string &name)
Register a new equation at the DOFHandler.
Definition DOFHandler.cpp:57
std::map< std::string, int > variable_name_map
Map between variable name and index.
Definition DOFHandler.h:57