18 #ifndef LIBMESH_VARIABLE_H 19 #define LIBMESH_VARIABLE_H 59 const std::string & var_name,
60 const unsigned int var_number,
61 const unsigned int first_scalar_num,
76 const std::string & var_name,
77 const unsigned int var_number,
78 const unsigned int first_scalar_num,
80 const std::set<subdomain_id_type> & var_active_subdomains) :
100 const std::string &
name()
const 181 const std::vector<std::string> & var_names,
182 const unsigned int var_number,
183 const unsigned int first_scalar_num,
184 const FEType & var_type) :
199 const std::vector<std::string> & var_names,
200 const unsigned int var_number,
201 const unsigned int first_scalar_num,
203 const std::set<subdomain_id_type> & var_active_subdomains) :
210 var_active_subdomains),
218 {
return cast_int<unsigned int>(
_names.size()); }
246 const std::string &
name(
unsigned int v)
const 255 unsigned int number(
unsigned int v)
const 279 void append (
const std::string & var_name)
280 {
_names.push_back (var_name); }
288 #endif // LIBMESH_VARIABLE_H Manages the family, order, etc. parameters for a given FE.
std::set< subdomain_id_type > _active_subdomains
VariableGroup(System *sys, const std::vector< std::string > &var_names, const unsigned int var_number, const unsigned int first_scalar_num, const FEType &var_type, const std::set< subdomain_id_type > &var_active_subdomains)
Variable(System *sys, const std::string &var_name, const unsigned int var_number, const unsigned int first_scalar_num, const FEType &var_type)
const std::string & name(unsigned int v) const
VariableGroup(System *sys, const std::vector< std::string > &var_names, const unsigned int var_number, const unsigned int first_scalar_num, const FEType &var_type)
Variable(System *sys, const std::string &var_name, const unsigned int var_number, const unsigned int first_scalar_num, const FEType &var_type, const std::set< subdomain_id_type > &var_active_subdomains)
unsigned int _first_scalar_number
unsigned int first_scalar_number() const
A variable which is solved for in a System of equations.
const std::set< subdomain_id_type > & active_subdomains() const
unsigned int n_variables() const
unsigned int n_components() const
Manages consistently variables, degrees of freedom, and coefficient vectors.
std::vector< std::string > _names
bool active_on_subdomain(subdomain_id_type sid) const
void append(const std::string &var_name)
Variable variable(unsigned int v) const
Variable operator()(unsigned int v) const
bool implicitly_active() const
unsigned int number(unsigned int v) const
const std::string & name() const
unsigned int number() const
unsigned int first_scalar_number(unsigned int v) const
const FEType & type() const