This class defines the notion of a variable in the system. 更多...
#include <variable.h>
Public 成员函数 | |
Variable (System *sys, std::string var_name, const unsigned int var_number, const unsigned int first_scalar_num, const FEType &var_type) | |
Constructor. 更多... | |
Variable (System *sys, 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) | |
Constructor. 更多... | |
Variable (const Variable &)=default | |
Standard constructors. 更多... | |
Variable & | operator= (const Variable &)=default |
Variable (Variable &&)=default | |
Variable & | operator= (Variable &&)=default |
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 属性 | |
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 the notion of a variable in the system.
A variable is one of potentially several unknowns in the problem at hand. A variable is described by a unique name, a finite element approximation family, and (optionally) a list of subdomains to which the variable is restricted.
在文件 variable.h 第 49 行定义.
|
inline |
Constructor.
Omits the subdomain mapping, hence this constructor creates a variable which is active on all subdomains.
在文件 variable.h 第 58 行定义.
参考自 libMesh::VariableGroup::variable().
|
inline |
Constructor.
Takes a set which contains the subdomain indices for which this variable is active.
在文件 variable.h 第 75 行定义.
|
default |
Standard constructors.
|
default |
|
inline |
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::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().
|
inline |
在文件 variable.h 第 171 行定义.
参考自 libMesh::VariableGroup::variable().
|
inline |
在文件 variable.h 第 134 行定义.
参考自 libMesh::VariableGroup::variable().
|
inline |
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 行定义.
|
inline |
|
inline |
在文件 variable.h 第 121 行定义.
参考 _name.
参考自 libMesh::VariableGroup::variable().
|
inline |
在文件 variable.h 第 127 行定义.
参考 _number.
参考自 libMesh::VariableGroup::variable().
|
inline |
other
Variable has the same characteristics and system numbering as this one. 在文件 variable.h 第 101 行定义.
参考 _active_subdomains, _first_scalar_number, _name, _sys , 以及 _type.
|
inline |
|
inline |
FEType
for this variable. 在文件 variable.h 第 140 行定义.
参考 _type.
参考自 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(), n_components(), libMesh::DofMap::old_dof_indices(), libMesh::DofMap::reinit(), libMesh::DofMap::SCALAR_dof_indices() , 以及 libMesh::VariableGroup::variable().
|
protected |
在文件 variable.h 第 177 行定义.
参考自 active_on_subdomain(), active_subdomains(), implicitly_active() , 以及 operator==().
|
protected |
在文件 variable.h 第 179 行定义.
参考自 first_scalar_number(), libMesh::VariableGroup::first_scalar_number() , 以及 operator==().
|
protected |
在文件 variable.h 第 176 行定义.
参考自 name() , 以及 operator==().
|
protected |
在文件 variable.h 第 178 行定义.
参考自 number() , 以及 libMesh::VariableGroup::number().
|
protected |
在文件 variable.h 第 175 行定义.
参考自 operator==() , 以及 system().
|
protected |
在文件 variable.h 第 180 行定义.
参考自 n_components(), operator==() , 以及 type().