|
template<typename U , typename V , typename W >
requires std::is_convertible_v<std::remove_cvref_t<U>, std::vector<std::int32_t>> and std::is_convertible_v<std::remove_cvref_t<V>, std::vector<T>> and std::is_convertible_v<std::remove_cvref_t<W>, std::vector<std::int64_t>> |
| Geometry (std::shared_ptr< const common::IndexMap > index_map, U &&dofmap, const fem::CoordinateElement< typename std::remove_reference_t< typename V::value_type > > &element, V &&x, int dim, W &&input_global_indices) |
| Constructor of object that holds mesh geometry data.
|
|
template<typename V , typename W >
requires std::is_convertible_v<std::remove_cvref_t<V>, std::vector<T>> and std::is_convertible_v<std::remove_cvref_t<W>, std::vector<std::int64_t>> |
| Geometry (std::shared_ptr< const common::IndexMap > index_map, const std::vector< std::vector< std::int32_t > > &dofmaps, const std::vector< fem::CoordinateElement< typename std::remove_reference_t< typename V::value_type > > > &elements, V &&x, int dim, W &&input_global_indices) |
| Constructor of object that holds mesh geometry data.
|
|
| 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 dimension of the Euclidean coordinate system.
|
|
MDSPAN_IMPL_STANDARD_NAMESPACE::mdspan< const std::int32_t, MDSPAN_IMPL_STANDARD_NAMESPACE::dextents< std::size_t, 2 > > | dofmap () const |
| DofMap for the geometry.
|
|
MDSPAN_IMPL_STANDARD_NAMESPACE::mdspan< const std::int32_t, MDSPAN_IMPL_STANDARD_NAMESPACE::dextents< std::size_t, 2 > > | dofmap (std::int32_t i) const |
| The dofmap associated with the i th coordinate map in the geometry.
|
|
std::shared_ptr< const common::IndexMap > | index_map () const |
| Index map.
|
|
std::span< const value_type > | x () const |
| Access geometry degrees-of-freedom data (const version).
|
|
std::span< value_type > | x () |
| Access geometry degrees-of-freedom data (non-const version).
|
|
const fem::CoordinateElement< value_type > & | cmap () const |
| The element that describes the geometry map.
|
|
const fem::CoordinateElement< value_type > & | cmap (std::int32_t i) const |
| The element that describe the i th geometry map.
|
|
const std::vector< std::int64_t > & | input_global_indices () const |
| Global user indices.
|
|
template<std::floating_point T>
class dolfinx::mesh::Geometry< T >
Geometry stores the geometry imposed on a mesh.
template<std::floating_point T>
template<typename U , typename V , typename W >
requires std::is_convertible_v<std::remove_cvref_t<U>, std::vector<std::int32_t>> and std::is_convertible_v<std::remove_cvref_t<V>, std::vector<T>> and std::is_convertible_v<std::remove_cvref_t<W>, std::vector<std::int64_t>>
Constructor of object that holds mesh geometry data.
- Parameters
-
[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 | Element that describes the cell geometry map. |
[in] | x | The point coordinates. The shape is (num_points, 3) and the storage is row-major. |
[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. |
template<std::floating_point T>
template<typename V , typename W >
requires std::is_convertible_v<std::remove_cvref_t<V>, std::vector<T>> and std::is_convertible_v<std::remove_cvref_t<W>, std::vector<std::int64_t>>
Geometry |
( |
std::shared_ptr< const common::IndexMap > | index_map, |
|
|
const std::vector< std::vector< std::int32_t > > & | dofmaps, |
|
|
const std::vector< fem::CoordinateElement< typename std::remove_reference_t< typename V::value_type > > > & | elements, |
|
|
V && | x, |
|
|
int | dim, |
|
|
W && | input_global_indices ) |
|
inline |
Constructor of object that holds mesh geometry data.
- Parameters
-
[in] | index_map | Index map associated with the geometry dofmap |
[in] | dofmaps | The geometry (point) dofmaps. For a cell, it gives the position in the point array of each local geometry node |
[in] | elements | Elements that describes the cell geometry maps. |
[in] | x | The point coordinates. The shape is (num_points, 3) and the storage is row-major. |
[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. |