DOLFINx 0.7.3
DOLFINx C++ interface
|
A Mesh consists of a set of connected and numbered mesh topological entities, and geometry data. More...
#include <Mesh.h>
Public Types | |
using | geometry_type = Geometry< T > |
Value type. | |
Public Member Functions | |
template<typename V > requires std::is_convertible_v<std::remove_cvref_t<V>, Geometry<T>> | |
Mesh (MPI_Comm comm, std::shared_ptr< Topology > topology, V &&geometry) | |
Create a mesh. | |
Mesh (const Mesh &mesh)=default | |
Copy constructor. | |
Mesh (Mesh &&mesh)=default | |
Move constructor. | |
~Mesh ()=default | |
Destructor. | |
Mesh & | operator= (const Mesh &mesh)=delete |
Mesh & | operator= (Mesh &&mesh)=default |
Assignment move operator. | |
std::shared_ptr< Topology > | topology () |
Get mesh topology. | |
std::shared_ptr< const Topology > | topology () const |
Get mesh topology (const version) | |
std::shared_ptr< Topology > | topology_mutable () const |
Get mesh topology if one really needs the mutable version. | |
Geometry< T > & | geometry () |
Get mesh geometry. | |
const Geometry< T > & | geometry () const |
Get mesh geometry (const version) | |
MPI_Comm | comm () const |
Mesh MPI communicator. | |
Public Attributes | |
std::string | name = "mesh" |
Name. | |
A Mesh consists of a set of connected and numbered mesh topological entities, and geometry data.
The | floating point type for representing the geometry. |
Copy constructor.
[in] | mesh | Mesh to be copied |
Move constructor.
mesh | Mesh to be moved. |
|
inline |
|
inline |
Get mesh geometry.
|
inline |
Get mesh geometry (const version)
Assignment move operator.
mesh | Another Mesh object |
|
inline |
Get mesh topology.
|
inline |
Get mesh topology (const version)
|
inline |
Get mesh topology if one really needs the mutable version.