
Public Member Functions | |
| ComponentSelectFunction (const unsigned int selected, const double value, const unsigned int n_components) | |
| ComponentSelectFunction (const unsigned int selected, const unsigned int n_components) | |
| ComponentSelectFunction (const std::pair< unsigned int, unsigned int > &selected, const unsigned int n_components) | |
| virtual void | vector_value (const Point< dim > &p, Vector< double > &return_value) const |
| virtual void | vector_value_list (const std::vector< Point< dim > > &points, std::vector< Vector< double > > &values) const |
| unsigned int | memory_consumption () const |
Protected Attributes | |
| const std::pair< unsigned int, unsigned int > | selected_components |
VectorTools::integrate_difference, where it allows to integrate only one or a few vector components, rather than the entire vector-valued solution. See the step-20 tutorial program for a detailed explanation.
| ComponentSelectFunction< dim >::ComponentSelectFunction | ( | const unsigned int | selected, | |
| const double | value, | |||
| const unsigned int | n_components | |||
| ) |
Constructor if only a single component shall be non-zero. Arguments denote the component selected, the value for that component and the total number of vector components.
| ComponentSelectFunction< dim >::ComponentSelectFunction | ( | const unsigned int | selected, | |
| const unsigned int | n_components | |||
| ) |
Constructor. As before, but the value for the selected component is assumed to be one. In essence, this function then works as a mask.
| ComponentSelectFunction< dim >::ComponentSelectFunction | ( | const std::pair< unsigned int, unsigned int > & | selected, | |
| const unsigned int | n_components | |||
| ) |
Constructor if multiple components shall have non-zero, unit values (i.e. this should be a mask for multiple components). The first argument denotes a half-open interval of components (for example std::pair(0,dim) for the first dim components), and the second argument is the total number of vector components.
| virtual void ComponentSelectFunction< dim >::vector_value | ( | const Point< dim > & | p, | |
| Vector< double > & | return_value | |||
| ) | const [virtual] |
Return the value of the function at the given point for all components.
Reimplemented from ConstantFunction< dim >.
| virtual void ComponentSelectFunction< dim >::vector_value_list | ( | const std::vector< Point< dim > > & | points, | |
| std::vector< Vector< double > > & | values | |||
| ) | const [virtual] |
Set values to the point values of the function at the points, for all components. It is assumed that values already has the right size, i.e. the same size as the points array.
Reimplemented from ConstantFunction< dim >.
| unsigned int ComponentSelectFunction< dim >::memory_consumption | ( | ) | const |
Determine an estimate for the memory consumption (in bytes) of this object. Since sometimes the size of objects can not be determined exactly (for example: what is the memory consumption of an STL std::map type with a certain number of elements?), this is only an estimate. however often quite close to the true value.
Reimplemented from ConstantFunction< dim >.
const std::pair<unsigned int,unsigned int> ComponentSelectFunction< dim >::selected_components [protected] |
Half-open interval of the indices of selected components.
documentation generated on Fri Nov 21 07:12:54 2008 by
doxygen
1.5.6