hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
report.hpp
Go to the documentation of this file.
1#pragma once
7
8#include <vector>
9
10#include "hpfem/core/types.hpp"
11#include "hpfem/mesh/mesh.hpp"
12
13namespace hpfem::mesh {
14
15template <int Dim>
39
41template <int Dim>
42[[nodiscard]] MeshReport<Dim> report(const Mesh<Dim>& mesh);
43
50template <int Dim>
58 [[nodiscard]] bool identical() const noexcept {
59 return unmatched_slave == 0 && unmatched_master == 0 && num_master == num_slave;
60 }
61};
62
64template <int Dim>
65[[nodiscard]] PeriodicCheck<Dim> check_periodic(const Mesh<Dim>& mesh, Tag master, Tag slave,
66 const Point<Dim>& shift, Real tolerance = 1e-8);
67
68extern template struct MeshReport<2>;
69extern template struct MeshReport<3>;
70extern template struct PeriodicCheck<2>;
71extern template struct PeriodicCheck<3>;
72extern template MeshReport<2> report<2>(const Mesh<2>&);
73extern template MeshReport<3> report<3>(const Mesh<3>&);
74extern template PeriodicCheck<2> check_periodic<2>(const Mesh<2>&, Tag, Tag, const Point<2>&, Real);
75extern template PeriodicCheck<3> check_periodic<3>(const Mesh<3>&, Tag, Tag, const Point<3>&, Real);
76
77} // namespace hpfem::mesh
Definition mesh.hpp:61
Definition adaptive_mesh.hpp:19
std::int32_t Tag
Integer tag of a physical group (Gmsh convention: positive; 0 means untagged).
Definition mesh.hpp:23
template MeshReport< 2 > report< 2 >(const Mesh< 2 > &)
template PeriodicCheck< 2 > check_periodic< 2 >(const Mesh< 2 > &, Tag, Tag, const Point< 2 > &, Real)
PeriodicCheck< Dim > check_periodic(const Mesh< Dim > &mesh, Tag master, Tag slave, const Point< Dim > &shift, Real tolerance=1e-8)
template MeshReport< 3 > report< 3 >(const Mesh< 3 > &)
template PeriodicCheck< 3 > check_periodic< 3 >(const Mesh< 3 > &, Tag, Tag, const Point< 3 > &, Real)
MeshReport< Dim > report(const Mesh< Dim > &mesh)
double Real
Definition types.hpp:15
Eigen::Matrix< Real, Dim, 1 > Point
Definition types.hpp:27
std::int64_t Index
global indices (DoFs, entities)
Definition types.hpp:17
Definition report.hpp:16
Real max_edge
Definition report.hpp:30
std::vector< Tag > facet_tags
distinct facet tags, ascending
Definition report.hpp:36
Index num_curved
cells with a quadratic geometry
Definition report.hpp:31
std::vector< Index > invalid_cells
Definition report.hpp:33
std::vector< Tag > cell_tags
distinct cell tags, ascending (without kNoTag)
Definition report.hpp:35
Index num_untagged
cells with kNoTag
Definition report.hpp:34
Index num_cells
Definition report.hpp:18
Real mean_edge
Definition report.hpp:29
Index num_vertices
Definition report.hpp:17
Real min_edge
Definition report.hpp:28
Real mean_angle
Definition report.hpp:24
Index num_boundary_facets
Definition report.hpp:20
Real max_aspect_ratio
Definition report.hpp:27
Index num_facets
Definition report.hpp:19
Index num_hanging
hanging edges (+ faces in 3D)
Definition report.hpp:37
Real min_angle
Definition report.hpp:23
Index num_invalid
curved cells whose Jacobian changes sign (sampled)
Definition report.hpp:32
Definition report.hpp:51
Index unmatched_master
Definition report.hpp:56
Real max_mismatch
Definition report.hpp:57
Index num_master
Definition report.hpp:52
Index num_slave
Definition report.hpp:53
Index matched
Definition report.hpp:54
bool identical() const noexcept
Definition report.hpp:58
Index unmatched_slave
Definition report.hpp:55