Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
boundary_cells_info_struct.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) 2020-2022, 2024 The Lethe Authors
2// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
3
4#ifndef lethe_boundary_cells_info_struct_h
5#define lethe_boundary_cells_info_struct_h
6
7#include <deal.II/base/point.h>
8#include <deal.II/base/tensor.h>
9
10#include <deal.II/distributed/tria.h>
11
12using namespace dealii;
13
14/**
15 * @brief Handle the information related to the boundary cells
16 * which will be used for particle-wall contact detection.
17 */
18template <int dim>
20{
21 // The boundary cell
22 typename Triangulation<dim>::active_cell_iterator cell;
23
24 // ID of boundary
25 types::boundary_id boundary_id;
26
27 // ID of boundary face in the boundary cell
28 unsigned int global_face_id;
29
30 // Normal vector of the boundary face
31 Tensor<1, dim> normal_vector;
32
33 // A point on the boundary face
34 Point<dim> point_on_face;
35};
36
37/**
38 * @brief Handle the information related to the periodic boundary cells
39 * which will be used for particle-wall contact detection.
40 */
41template <int dim>
43{
44 // The boundary cell
45 typename Triangulation<dim>::active_cell_iterator cell;
46
47 // ID of boundary
48 types::boundary_id boundary_id;
49
50 // Normal vector of the boundary face
51 Tensor<1, dim> normal_vector;
52
53 // A point on the boundary face
54 Point<dim> point_on_face;
55
56 // The periodic boundary cell
57 typename Triangulation<dim>::active_cell_iterator periodic_cell;
58
59 // Normal vector of the periodic boundary face
60 Tensor<1, dim> periodic_normal_vector;
61
62 // A point on the periodic boundary face
64};
65
66#endif
Handle the information related to the boundary cells which will be used for particle-wall contact det...
Triangulation< dim >::active_cell_iterator cell
Handle the information related to the periodic boundary cells which will be used for particle-wall co...
Triangulation< dim >::active_cell_iterator periodic_cell
Triangulation< dim >::active_cell_iterator cell