Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
lethe_grid_tools.h File Reference
#include <core/serial_solid.h>
#include <deal.II/base/tensor.h>
#include <deal.II/dofs/dof_handler.h>
#include <deal.II/fe/mapping_q_cache.h>
#include <tuple>
Include dependency graph for lethe_grid_tools.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  LetheGridTools::TriangleProjectionData< dim >
struct  LetheGridTools::hash_cell< dim >
struct  LetheGridTools::equal_cell< dim >

Namespaces

namespace  LetheGridTools

Enumerations

enum class  LetheGridTools::ParticleTriangleContactIndicator : std::uint8_t { LetheGridTools::face_contact , LetheGridTools::edge_contact , LetheGridTools::vertex_contact , LetheGridTools::no_contact }

Functions

template<int dim>
void LetheGridTools::vertices_cell_mapping (const DoFHandler< dim > &dof_handler, std::map< unsigned int, std::set< typename DoFHandler< dim >::active_cell_iterator > > &vertices_cell_map)
template<int dim>
void LetheGridTools::vertices_cell_mapping_with_periodic_boundaries (const DoFHandler< dim > &dof_handler, std::map< unsigned int, std::set< typename DoFHandler< dim >::active_cell_iterator > > &vertices_cell_map)
template<int dim>
DoFHandler< dim >::active_cell_iterator LetheGridTools::find_cell_around_point_with_tree (const DoFHandler< dim > &dof_handler, const Point< dim > &point)
template<int dim>
DoFHandler< dim >::active_cell_iterator LetheGridTools::find_cell_around_point_with_neighbors (const DoFHandler< dim > &dof_handler, std::map< unsigned int, std::set< typename DoFHandler< dim >::active_cell_iterator > > &vertices_cell_map, const typename DoFHandler< dim >::active_cell_iterator &cell, const Point< dim > &point)
template<int dim>
std::vector< typename DoFHandler< dim >::active_cell_iterator > LetheGridTools::find_cells_around_cell (std::map< unsigned int, std::set< typename DoFHandler< dim >::active_cell_iterator > > &vertices_cell_map, const typename DoFHandler< dim >::active_cell_iterator &cell)
template<int dim>
std::vector< typename DoFHandler< dim >::active_cell_iterator > LetheGridTools::find_cells_around_flat_cell (const DoFHandler< dim > &dof_handler, const typename DoFHandler< dim - 1, dim >::active_cell_iterator &cell, std::map< unsigned int, std::set< typename DoFHandler< dim >::active_cell_iterator > > &vertices_cell_map)
template<int dim>
std::vector< typename DoFHandler< dim >::active_cell_iterator > LetheGridTools::find_cells_around_edge (const DoFHandler< dim > &dof_handler, std::map< unsigned int, std::set< typename DoFHandler< dim >::active_cell_iterator > > &vertices_cell_map, const typename DoFHandler< dim >::active_cell_iterator &cell, Point< dim > &point_1, Point< dim > &point_2)
template<int dim>
void LetheGridTools::flag_cells_in_refinement_box (const DoFHandler< dim > &dof_handler, const Triangulation< dim > &box_triangulation)
template<int dim>
std::vector< typename DoFHandler< dim >::active_cell_iterator > LetheGridTools::find_cells_in_cells (const DoFHandler< dim > &dof_handler, const typename DoFHandler< dim >::active_cell_iterator &cell)
template<int dim>
bool LetheGridTools::cell_cut_by_flat (const typename DoFHandler< dim >::active_cell_iterator &cell, const typename DoFHandler< dim - 1, dim >::active_cell_iterator &cell_flat)
template<int dim>
bool LetheGridTools::cell_pierced_by_edge (const typename DoFHandler< dim >::active_cell_iterator &cell, const TriaIterator< CellAccessor< 1, dim > > &cell_edge)
template<int dim>
bool LetheGridTools::cell_pierced_by_edge (const typename DoFHandler< dim >::active_cell_iterator &cell, Point< dim > point_1, Point< dim > point_2)
template<int spacedim, int structdim>
std::pair< std::pair< Point< spacedim >, bool >, Tensor< 1, spacedim > > LetheGridTools::project_to_d_linear_object (const typename DoFHandler< structdim, spacedim >::active_cell_iterator &object, const Point< spacedim > &trial_point)
template<int dim>
std::vector< typename DoFHandler< dim >::active_cell_iterator > LetheGridTools::find_boundary_cells_in_sphere (const DoFHandler< dim > &dof_handler, const Point< dim > &center, const double radius)
template<int spacedim, int structdim>
std::map< typename DoFHandler< spacedim >::active_cell_iterator, std::map< unsigned int, typename DoFHandler< structdim, spacedim >::active_cell_iterator > > LetheGridTools::find_cells_cut_by_object (const DoFHandler< spacedim > &dof_handler, std::map< unsigned int, std::set< typename DoFHandler< spacedim >::active_cell_iterator > > &vertices_cell_map, std::vector< SerialSolid< structdim, spacedim > > &list_of_objects)
template<int dim>
TriangleProjectionData< dim > LetheGridTools::prepare_triangle_projection_data (const std::vector< Point< dim > > &triangle)
template<int dim>
std::tuple< bool, Point< 3 >, Tensor< 1, 3 >, ParticleTriangleContactIndicator > LetheGridTools::find_particle_triangle_projection (const TriangleProjectionData< dim > &triangle_data, const Point< dim > &particle_position, const double cutoff_distance)
template<int dim>
double LetheGridTools::find_point_triangle_distance (const std::vector< Point< dim > > &triangle_vertices, const Point< dim > &point)
template<int dim>
std::vector< Point< dim > > LetheGridTools::find_line_sphere_intersection (const Point< dim > &line_start, const Tensor< 1, dim > &line_direction, const Point< dim > &sphere_center, const double &sphere_diameter)
template<int dim>
double LetheGridTools::find_point_line_distance (const Point< dim > &line_origin, const Tensor< 1, dim > &line_direction, const Point< dim > &point)
template<int dim>
Tensor< 1, dim > LetheGridTools::angular_to_linear_velocity (const double omega, const Tensor< 1, dim > &point, const unsigned int rotation_axis_direction=2)
template<int dim>
void LetheGridTools::rotate_mapping (const DoFHandler< dim > &dof_handler, MappingQCache< dim > &mapping_cache, const Mapping< dim > &mapping, const double rotation_angle, const Point< dim > &center_of_rotation=Point< dim >(), const unsigned int rotation_axis_direction=2)
template<int dim, int spacedim>
void LetheGridTools::vertices_cell_mapping (const Triangulation< dim, spacedim > &tria, std::map< unsigned int, std::set< typename Triangulation< dim, spacedim >::active_cell_iterator > > &vertices_cell_map)
template<int dim, int spacedim = dim>
std::vector< typename Triangulation< dim, spacedim >::active_cell_iterator > LetheGridTools::find_cells_around_cell (std::map< unsigned int, std::set< typename Triangulation< dim, spacedim >::active_cell_iterator > > &vertices_cell_map, const typename Triangulation< dim, spacedim >::active_cell_iterator &cell)