hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Namespaces | Functions | Variables
generators.hpp File Reference
#include <functional>
#include <span>
#include "hpfem/core/types.hpp"
#include "hpfem/mesh/mesh.hpp"
Include dependency graph for generators.hpp:

Go to the source code of this file.

Namespaces

namespace  hpfem
 
namespace  hpfem::mesh
 
namespace  hpfem::mesh::box_tag
 

Functions

Mesh< 2 > hpfem::mesh::rectangle (Index nx, Index ny, const Point< 2 > &lower=Point< 2 >::Zero(), const Point< 2 > &upper=Point< 2 >::Ones(), bool tag_sides=true)
 
Mesh< 3 > hpfem::mesh::box (Index nx, Index ny, Index nz, const Point< 3 > &lower=Point< 3 >::Zero(), const Point< 3 > &upper=Point< 3 >::Ones(), bool tag_sides=true)
 
Mesh< 2 > hpfem::mesh::disc (Index n, const Point< 2 > &center=Point< 2 >::Zero(), Real radius=1.0, bool curved=true)
 
Mesh< 3 > hpfem::mesh::ball (Index n, const Point< 3 > &center=Point< 3 >::Zero(), Real radius=1.0, bool curved=true)
 
Mesh< 2 > hpfem::mesh::square_with_disc (Index n, Real radius, Real half_width, Real outer, Tag inclusion_tag=2)
 
Mesh< 3 > hpfem::mesh::box_with_ball (Index n, Real radius, Real half_width, Real outer, Tag inclusion_tag=2)
 
template<int Dim>
Mesh< Dim > hpfem::mesh::extract (const Mesh< Dim > &mesh, std::span< const Index > cells)
 
template<int Dim>
Mesh< Dim > hpfem::mesh::extract (const Mesh< Dim > &mesh, const std::function< bool(const Point< Dim > &)> &keep)
 Sub-mesh of the cells for which keep(centroid) is true.
 
template Mesh< 2 > hpfem::mesh::extract< 2 > (const Mesh< 2 > &, std::span< const Index >)
 
template Mesh< 3 > hpfem::mesh::extract< 3 > (const Mesh< 3 > &, std::span< const Index >)
 
template Mesh< 2 > hpfem::mesh::extract< 2 > (const Mesh< 2 > &, const std::function< bool(const Point< 2 > &)> &)
 
template Mesh< 3 > hpfem::mesh::extract< 3 > (const Mesh< 3 > &, const std::function< bool(const Point< 3 > &)> &)
 

Variables

constexpr Tag hpfem::mesh::box_tag::kXMin = 1
 
constexpr Tag hpfem::mesh::box_tag::kXMax = 2
 
constexpr Tag hpfem::mesh::box_tag::kYMin = 3
 
constexpr Tag hpfem::mesh::box_tag::kYMax = 4
 
constexpr Tag hpfem::mesh::box_tag::kZMin = 5
 
constexpr Tag hpfem::mesh::box_tag::kZMax = 6
 
constexpr Tag hpfem::mesh::kDiscBoundary = 1
 Facet tag of the boundary of disc and ball.
 

Detailed Description

Structured simplicial meshes of axis-aligned boxes, for tests and simple studies. Numbering and tagging conventions: docs/theory/mesh.md#generators.