DOLFINx 0.10.0.0
DOLFINx C++ interface
|
Support for file IO. More...
Namespaces | |
namespace | cells |
Functions for the re-ordering of input mesh topology to the DOLFINx ordering, and transpose orderings for file output. | |
namespace | xdmf_function |
Low-level methods for reading/writing XDMF files. | |
namespace | xdmf_mesh |
Low-level methods for reading XDMF files. | |
Classes | |
class | VTKFile |
Output of meshes and functions in VTK/ParaView format. More... | |
class | XDMFFile |
Read and write mesh::Mesh, fem::Function and other objects in XDMF. More... | |
Functions | |
template<typename T > | |
std::tuple< std::vector< T >, std::array< std::size_t, 2 >, std::vector< std::int64_t >, std::vector< std::uint8_t >, std::vector< std::int64_t >, std::array< std::size_t, 2 > > | vtk_mesh_from_space (const fem::FunctionSpace< T > &V) |
Given a FunctionSpace, create a topology and geometry based on the dof coordinates. | |
std::pair< std::vector< std::int64_t >, std::array< std::size_t, 2 > > | extract_vtk_connectivity (MDSPAN_IMPL_STANDARD_NAMESPACE::mdspan< const std::int32_t, MDSPAN_IMPL_STANDARD_NAMESPACE::dextents< std::size_t, 2 > > dofmap_x, mesh::CellType cell_type) |
Extract the cell topology (connectivity) in VTK ordering for all cells the mesh. The 'topology' includes higher-order 'nodes'. | |
Support for file IO.
IO to files for checkpointing and visualisation.
std::pair< std::vector< std::int64_t >, std::array< std::size_t, 2 > > extract_vtk_connectivity | ( | MDSPAN_IMPL_STANDARD_NAMESPACE::mdspan< const std::int32_t, MDSPAN_IMPL_STANDARD_NAMESPACE::dextents< std::size_t, 2 > > | dofmap_x, |
mesh::CellType | cell_type ) |
Extract the cell topology (connectivity) in VTK ordering for all cells the mesh. The 'topology' includes higher-order 'nodes'.
The index of a 'node' corresponds to the index of DOLFINx geometry 'nodes'.
[in] | dofmap_x | Geometry dofmap. |
[in] | cell_type | Cell type. |
std::tuple< std::vector< T >, std::array< std::size_t, 2 >, std::vector< std::int64_t >, std::vector< std::uint8_t >, std::vector< std::int64_t >, std::array< std::size_t, 2 > > vtk_mesh_from_space | ( | const fem::FunctionSpace< T > & | V | ) |
Given a FunctionSpace, create a topology and geometry based on the dof coordinates.
V
must be a (discontinuous) Lagrange space[in] | V | The function space |