7#ifndef SVZERODSOLVER_MODEL_DOFHANDLER_HPP_
8#define SVZERODSOLVER_MODEL_DOFHANDLER_HPP_
27 std::vector<std::string>
29 std::map<std::string, int>
31 std::vector<std::string>
85 int get_index(
const std::string_view& name)
const;
Degree-of-freedom handler.
Definition DOFHandler.h:21
int register_variable(const std::string &name)
Register a new variable at the DOFHandler.
Definition DOFHandler.cpp:14
int get_index(const std::string_view &name) const
Get the index of a variable.
Definition DOFHandler.cpp:34
int get_num_equations() const
Get the number of equations.
Definition DOFHandler.cpp:10
std::vector< std::string > variables
Variable names corresponding to the variable indices.
Definition DOFHandler.h:28
int get_num_variables() const
Get the number of variables.
Definition DOFHandler.cpp:12
int size() const
Get the size of the system.
Definition DOFHandler.cpp:8
std::vector< std::string > equations
Equation names corresponding to the equation indices.
Definition DOFHandler.h:32
int get_variable_index(const std::string &name) const
Get the index of a variable by its name.
Definition DOFHandler.cpp:20
int register_equation(const std::string &name)
Register a new equation at the DOFHandler.
Definition DOFHandler.cpp:29
std::map< std::string, int > variable_name_map
Map between variable name and index.
Definition DOFHandler.h:30