This class represents a finite element function space defined by a mesh, a finite element, and a local-to-global map of the degrees of freedom (dofmap).
More...
#include <FunctionSpace.h>
This class represents a finite element function space defined by a mesh, a finite element, and a local-to-global map of the degrees of freedom (dofmap).
◆ FunctionSpace()
Create function space for given mesh, element and dofmap.
- Parameters
-
[in] | mesh | The mesh |
[in] | element | The element |
[in] | dofmap | The dofmap |
◆ collapse()
std::pair< FunctionSpace, std::vector< std::int32_t > > collapse |
( |
| ) |
const |
Collapse a subspace and return a new function space and a map from new to old dofs.
- Returns
- The new function space and a map from new to old dofs
◆ component()
std::vector< int > component |
( |
| ) |
const |
Get the component with respect to the root superspace.
- Returns
- The component with respect to the root superspace , i.e. W.sub(1).sub(0) == [1, 0]
◆ contains()
Check whether V is subspace of this, or this itself.
- Parameters
-
[in] | V | The space to be tested for inclusion |
- Returns
- True if V is contained in or is equal to this FunctionSpace
◆ sub()
std::shared_ptr< FunctionSpace > sub |
( |
const std::vector< int > & |
component | ) |
const |
Extract subspace for component.
- Parameters
-
[in] | component | The subspace component |
- Returns
- The subspace
◆ tabulate_dof_coordinates()
std::vector< double > tabulate_dof_coordinates |
( |
bool |
transpose | ) |
const |
Tabulate the physical coordinates of all dofs on this process.
- Todo:
- Remove - see function in interpolate.h
- Parameters
-
[in] | transpose | If false the returned data has shape (num_points, 3) , otherwise it is transposed and has shape (3, num_points) . |
- Returns
- The dof coordinates
[([x0, y0, z0], [x1, y1, z1], ...)
if transpose
is false, and otherwise the returned data is transposed. Storage is row-major.
The documentation for this class was generated from the following files:
- /__w/dolfinx/dolfinx/cpp/dolfinx/fem/FunctionSpace.h
- /__w/dolfinx/dolfinx/cpp/dolfinx/fem/FunctionSpace.cpp