Note: this is documentation for an old release. View the latest documentation at docs.fenicsproject.org/dolfinx/v0.9.0/cpp/doxygen/d3/d56/vtk__utils_8h_source.html
DOLFINx 0.6.0
DOLFINx C++ interface
Loading...
Searching...
No Matches
vtk_utils.h
1// Copyright (C) 2020-2022 Garth N. Wells and Jørgen S. Dokken
2//
3// This file is part of DOLFINx (https://www.fenicsproject.org)
4//
5// SPDX-License-Identifier: LGPL-3.0-or-later
6
7#pragma once
8
9#include <array>
10#include <cstdint>
11#include <tuple>
12#include <vector>
13
14namespace dolfinx
15{
16namespace fem
17{
18class FunctionSpace;
19}
20
21namespace mesh
22{
23class Mesh;
24} // namespace mesh
25
26namespace io
27{
42std::tuple<std::vector<double>, std::array<std::size_t, 2>,
43 std::vector<std::int64_t>, std::vector<std::uint8_t>,
44 std::vector<std::int64_t>, std::array<std::size_t, 2>>
45vtk_mesh_from_space(const fem::FunctionSpace& V);
46
58std::pair<std::vector<std::int64_t>, std::array<std::size_t, 2>>
59extract_vtk_connectivity(const mesh::Mesh& mesh);
60
61} // namespace io
62} // namespace dolfinx
std::pair< std::vector< std::int64_t >, std::array< std::size_t, 2 > > extract_vtk_connectivity(const mesh::Mesh &mesh)
Extract the cell topology (connectivity) in VTK ordering for all cells the mesh. The 'topology' inclu...
Definition: vtk_utils.cpp:191
std::tuple< std::vector< double >, 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 &V)
Given a FunctionSpace, create a topology and geometry based on the dof coordinates.
Definition: vtk_utils.cpp:148