This class defines a logically grouped set of variables in the system. 更多...
#include <variable.h>
Public 成员函数 | |
VariableGroup (System *sys, std::vector< std::string > var_names, const unsigned int var_number, const unsigned int first_scalar_num, const FEType &var_type) | |
Constructor. 更多... | |
VariableGroup (System *sys, 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) | |
Constructor. 更多... | |
VariableGroup (const VariableGroup &)=default | |
Standard constructors. 更多... | |
VariableGroup & | operator= (const VariableGroup &)=default |
VariableGroup (VariableGroup &&)=default | |
VariableGroup & | operator= (VariableGroup &&)=default |
bool | operator== (const VariableGroup &other) const |
unsigned int | n_variables () const |
Variable | variable (unsigned int v) const |
Variable | operator() (unsigned int v) const |
Support vg(v). 更多... | |
const std::string & | name (unsigned int v) const |
unsigned int | number (unsigned int v) const |
unsigned int | first_scalar_number (unsigned int v) const |
void | append (std::string var_name) |
Appends a variable to the group. 更多... | |
bool | operator== (const Variable &other) const |
System * | system () const |
const std::string & | name () const |
unsigned int | number () const |
unsigned int | first_scalar_number () const |
const FEType & | type () const |
unsigned int | n_components () const |
bool | active_on_subdomain (subdomain_id_type sid) const |
bool | implicitly_active () const |
const std::set < subdomain_id_type > & | active_subdomains () const |
Protected 属性 | |
std::vector< std::string > | _names |
System * | _sys |
std::string | _name |
std::set< subdomain_id_type > | _active_subdomains |
unsigned int | _number |
unsigned int | _first_scalar_number |
FEType | _type |
This class defines a logically grouped set of variables in the system.
VariableGroup
is appropriate for representing several unknowns in the problem that are all approximated with the same finite element approximation family and (optionally) a list of subdomains to which the variables are restricted.
在文件 variable.h 第 193 行定义.
|
inline |
Constructor.
Omits the subdomain mapping, hence this constructor creates a variable which is active on all subdomains.
在文件 variable.h 第 201 行定义.
|
inline |
Constructor.
Takes a set which contains the subdomain indices for which this variable is active.
在文件 variable.h 第 219 行定义.
|
default |
Standard constructors.
|
default |
|
inlineinherited |
true
if this variable is active on subdomain sid
, false
otherwise._active_subdomains
container as active everywhere, i.e. for all subdomains. 在文件 variable.h 第 157 行定义.
参考 libMesh::Variable::_active_subdomains.
参考自 libMesh::DofMap::_dof_indices(), libMesh::DofMap::distribute_local_dofs_node_major(), libMesh::DofMap::distribute_local_dofs_var_major(), libMesh::DofMap::dof_indices(), libMesh::DofMap::local_variable_indices(), libMesh::DofMap::old_dof_indices() , 以及 libMesh::DofMap::reinit().
|
inlineinherited |
在文件 variable.h 第 171 行定义.
参考 libMesh::Variable::_active_subdomains.
参考自 variable().
|
inline |
Appends a variable to the group.
Really only can be used by System
in a very limited window of opportunity - after the user specifies variables but before the system is initialized.
在文件 variable.h 第 318 行定义.
参考 _names.
|
inlineinherited |
在文件 variable.h 第 134 行定义.
参考 libMesh::Variable::_first_scalar_number.
参考自 variable().
|
inline |
在文件 variable.h 第 307 行定义.
参考 libMesh::Variable::_first_scalar_number , 以及 n_variables().
|
inlineinherited |
true
if this variable is active on all subdomains because it has no specified activity map. This can be used to perform more efficient computations in some places. 在文件 variable.h 第 165 行定义.
参考 libMesh::Variable::_active_subdomains.
|
inlineinherited |
在文件 variable.h 第 146 行定义.
参考 libMesh::Variable::_type , 以及 libMesh::Variable::type().
|
inline |
VariableGroup
在文件 variable.h 第 256 行定义.
参考 _names.
参考自 libMesh::DofMap::add_variable_group(), libMesh::DofMap::distribute_local_dofs_node_major(), libMesh::DofMap::distribute_local_dofs_var_major(), libMesh::DofMap::distribute_scalar_dofs(), libMesh::DofMap::dof_indices(), first_scalar_number(), name(), number(), libMesh::DofMap::old_dof_indices(), libMesh::DofMap::reinit() , 以及 variable().
|
inlineinherited |
|
inline |
|
inlineinherited |
在文件 variable.h 第 127 行定义.
参考 libMesh::Variable::_number.
参考自 variable().
|
inline |
在文件 variable.h 第 294 行定义.
参考 libMesh::Variable::_number , 以及 n_variables().
参考自 libMesh::DofMap::dof_indices() , 以及 libMesh::DofMap::old_dof_indices().
|
inline |
|
default |
|
default |
|
inlineinherited |
other
Variable has the same characteristics and system numbering as this one. 在文件 variable.h 第 101 行定义.
参考 libMesh::Variable::_active_subdomains, libMesh::Variable::_first_scalar_number, libMesh::Variable::_name, libMesh::Variable::_sys , 以及 libMesh::Variable::_type.
|
inline |
other
VariableGroup has exactly the same Variable members as this one. 在文件 variable.h 第 247 行定义.
参考 _names.
|
inlineinherited |
|
inlineinherited |
FEType
for this variable. 在文件 variable.h 第 140 行定义.
参考自 libMesh::DofMap::_dof_indices(), libMesh::DofMap::_node_dof_indices(), libMesh::DofMap::distribute_dofs(), libMesh::DofMap::distribute_local_dofs_node_major(), libMesh::DofMap::distribute_local_dofs_var_major(), libMesh::DofMap::distribute_scalar_dofs(), libMesh::DofMap::dof_indices(), libMesh::Variable::n_components(), libMesh::DofMap::old_dof_indices(), libMesh::DofMap::reinit(), libMesh::DofMap::SCALAR_dof_indices() , 以及 variable().
|
inline |
Variable
object constructed for an individual member of our group. 在文件 variable.h 第 263 行定义.
参考 libMesh::Variable::active_subdomains(), libMesh::Variable::first_scalar_number(), n_variables(), libMesh::Variable::name(), libMesh::Variable::number(), libMesh::Variable::system(), libMesh::Variable::type() , 以及 libMesh::Variable::Variable().
参考自 operator()().
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
在文件 variable.h 第 176 行定义.
参考自 libMesh::Variable::name() , 以及 libMesh::Variable::operator==().
|
protected |
在文件 variable.h 第 322 行定义.
参考自 append(), n_variables(), name() , 以及 operator==().
|
protectedinherited |
在文件 variable.h 第 178 行定义.
参考自 libMesh::Variable::number() , 以及 number().
|
protectedinherited |
在文件 variable.h 第 175 行定义.
参考自 libMesh::Variable::operator==() , 以及 libMesh::Variable::system().
|
protectedinherited |
在文件 variable.h 第 180 行定义.
参考自 libMesh::Variable::n_components(), libMesh::Variable::operator==() , 以及 libMesh::Variable::type().