DOLFINx
0.5.1
DOLFINx C++ interface
|
Geometry stores the geometry imposed on a mesh. More...
#include <Geometry.h>
Public Member Functions | |
template<typename AdjacencyList32 , typename Array , typename Vector64 > | |
Geometry (const std::shared_ptr< const common::IndexMap > &index_map, AdjacencyList32 &&dofmap, const fem::CoordinateElement &element, Array &&x, int dim, Vector64 &&input_global_indices) | |
Constructor. More... | |
Geometry (const Geometry &)=default | |
Copy constructor. | |
Geometry (Geometry &&)=default | |
Move constructor. | |
~Geometry ()=default | |
Destructor. | |
Geometry & | operator= (const Geometry &)=delete |
Copy Assignment. | |
Geometry & | operator= (Geometry &&)=default |
Move Assignment. | |
int | dim () const |
Return Euclidean dimension of coordinate system. | |
const graph::AdjacencyList< std::int32_t > & | dofmap () const |
DOF map. | |
std::shared_ptr< const common::IndexMap > | index_map () const |
Index map. | |
std::span< const double > | x () const |
Access geometry degrees-of-freedom data (const version). More... | |
std::span< double > | x () |
Access geometry degrees-of-freedom data (non-const version). More... | |
const fem::CoordinateElement & | cmap () const |
The element that describes the geometry map. More... | |
const std::vector< std::int64_t > & | input_global_indices () const |
Global user indices. | |
Geometry stores the geometry imposed on a mesh.
|
inline |
Constructor.
[in] | index_map | Index map associated with the geometry dofmap |
[in] | dofmap | The geometry (point) dofmap. For a cell, it gives the position in the point array of each local geometry node |
[in] | element | The element that describes the cell geometry map |
[in] | x | The point coordinates. It is a std::vector<double> and uses row-major storage. The shape is (num_points, 3) . |
[in] | dim | The geometric dimension (0 < dim <= 3 ) |
[in] | input_global_indices | The 'global' input index of each point, commonly from a mesh input file. The type is std:vector<std::int64_t> . |
const fem::CoordinateElement & cmap | ( | ) | const |
The element that describes the geometry map.
std::span< double > x | ( | ) |
Access geometry degrees-of-freedom data (non-const version).
std::span< const double > x | ( | ) | const |
Access geometry degrees-of-freedom data (const version).