ASPECT
|
Public Member Functions | |
FEVariableCollection () | |
FEVariableCollection (const std::vector< VariableDeclaration< dim >> &variable_definitions) | |
void | initialize (const std::vector< VariableDeclaration< dim >> &variable_definitions) |
const FEVariable< dim > & | variable (const std::string &name) const |
std::vector< const FEVariable< dim > * > | variables_with_name (const std::string &name) const |
bool | variable_exists (const std::string &name) const |
const std::vector< FEVariable< dim > > & | get_variables () const |
unsigned int | n_components () const |
unsigned int | n_blocks () const |
const std::vector< const FiniteElement< dim > * > & | get_fes () const |
const std::vector< unsigned int > & | get_multiplicities () const |
const std::vector< unsigned int > & | get_components_to_blocks () const |
Protected Attributes | |
std::vector< FEVariable< dim > > | variables |
unsigned int | n_components_ |
unsigned int | n_blocks_ |
std::vector< const FiniteElement< dim > * > | fes |
std::vector< unsigned int > | multiplicities |
std::vector< unsigned int > | components_to_blocks |
A class that represents a collection of variables (of type FEVariable) to form a Finite Element system. A ::FESystem can be constructed from it using get_fes() and get_multiplicities(). Other information contained in this class on top of FESystem are names, and the block structure for linear systems.
Definition at line 176 of file fe_variable_collection.h.
aspect::FEVariableCollection< dim >::FEVariableCollection | ( | ) |
Construct an empty object.
aspect::FEVariableCollection< dim >::FEVariableCollection | ( | const std::vector< VariableDeclaration< dim >> & | variable_definitions | ) |
Construct object from a vector of variables (identical to calling initialize()).
void aspect::FEVariableCollection< dim >::initialize | ( | const std::vector< VariableDeclaration< dim >> & | variable_definitions | ) |
Fill this object with the given list of variables
.
const FEVariable<dim>& aspect::FEVariableCollection< dim >::variable | ( | const std::string & | name | ) | const |
Return the variable with name name
. Throws an exception if this variable does not exist. If more than one variable with the same name exists, return the first one. Use variables_with_name() if you want to access all of them.
std::vector<const FEVariable<dim>*> aspect::FEVariableCollection< dim >::variables_with_name | ( | const std::string & | name | ) | const |
Return a vector of pointers of all variables with name name
.
bool aspect::FEVariableCollection< dim >::variable_exists | ( | const std::string & | name | ) | const |
Returns true if the variable with name
exists in the list of variables.
const std::vector<FEVariable<dim> >& aspect::FEVariableCollection< dim >::get_variables | ( | ) | const |
Return the list of all variables.
unsigned int aspect::FEVariableCollection< dim >::n_components | ( | ) | const |
Return the total number of components in the system.
unsigned int aspect::FEVariableCollection< dim >::n_blocks | ( | ) | const |
Return the total number of block of the system.
const std::vector<const FiniteElement<dim> *>& aspect::FEVariableCollection< dim >::get_fes | ( | ) | const |
Return the vector of finite element spaces used for the construction of the FESystem.
const std::vector<unsigned int>& aspect::FEVariableCollection< dim >::get_multiplicities | ( | ) | const |
Return the vector of multiplicities used for the construction of the FESystem.
const std::vector<unsigned int>& aspect::FEVariableCollection< dim >::get_components_to_blocks | ( | ) | const |
Return a variable that describes for each vector component which vector block it corresponds to.
|
protected |
A std::vector that contains a collection of variables.
Definition at line 251 of file fe_variable_collection.h.
|
protected |
Total number of components of all variables, returned by n_components().
Definition at line 256 of file fe_variable_collection.h.
|
protected |
Total number of blocks of all variables, returned by n_blocks().
Definition at line 261 of file fe_variable_collection.h.
|
protected |
Data to be used in the FESystem constructor. The get_fes() function returns a reference to this array.
The pointers stored in this area are not owned by the current object, but are instead pointers to the finite elements owned by the elements of the variables
array. As a consequence, we do not need to explicitly manage the deallocation of these pointers.
Definition at line 272 of file fe_variable_collection.h.
|
protected |
Data to be used in the FESystem constructor, returned by get_multiplicities().
Definition at line 278 of file fe_variable_collection.h.
|
protected |
Mapping from component to block, returned by get_components_to_blocks().
Definition at line 283 of file fe_variable_collection.h.