15#ifndef dealii_grid_generator_h
16#define dealii_grid_generator_h
102 template <
int dim,
int spacedim>
105 const double left = 0.,
106 const double right = 1.,
153 template <
int dim,
int spacedim>
188 template <
int dim,
int spacedim>
191 const unsigned int repetitions,
192 const double left = 0.,
193 const double right = 1.,
234 template <
int dim,
int spacedim>
294 template <
int dim,
int spacedim>
297 const std::vector<unsigned int> &repetitions,
324 const std::vector<std::vector<double>> &step_sizes,
346 const std::vector<std::vector<double>> &spacing,
378 template <
int dim,
int spacedim>
381 const std::vector<unsigned int> &holes);
435 const double inner_radius = 0.4,
436 const double outer_radius = 1.,
437 const double pad_bottom = 2.,
438 const double pad_top = 2.,
439 const double pad_left = 1.,
440 const double pad_right = 1.,
445 const unsigned int n_slices = 2,
543 const double shell_region_width = 0.03,
544 const unsigned int n_shells = 2,
545 const double skewness = 2.0,
571 template <
int dim,
int spacedim>
644 const unsigned int n_subdivisions,
664 const unsigned int (&n_subdivisions)[dim],
666 const unsigned int *n_subdivisions,
694 template <
int dim,
int spacedim>
699 const std::vector<unsigned int> &subdivisions = {},
725 const double left = 0.,
726 const double right = 1.,
727 const double thickness = 1.,
813 const double radius = 1.,
814 const bool attach_spherical_manifold_on_boundary_cells =
false);
855 const double radius = 1.);
877 const unsigned int n_rotate_middle_square);
902 const bool face_orientation,
903 const bool face_flip,
904 const bool face_rotation,
905 const bool manipulate_left_cube);
936 template <
int spacedim>
940 const double radius = 1.);
982 const double radius = 1.);
1003 const double radius = 1.);
1034 const double radius = 1.,
1035 const double half_length = 1.);
1078 const unsigned int x_subdivisions,
1079 const double radius = 1.,
1080 const double half_length = 1.);
1120 const double radius_0 = 1.0,
1121 const double radius_1 = 0.5,
1122 const double half_length = 1.0);
1247 template <
int dim,
int spacedim>
1252 const double aspect_ratio = 0.5);
1280 template <
int dim,
int spacedim>
1283 const std::vector<unsigned int> &sizes,
1284 const bool colorize_cells =
false);
1324 const double left = -1.,
1325 const double right = 1.,
1359 template <
int dim,
int spacedim>
1362 const std::vector<unsigned int> &repetitions,
1365 const std::vector<int> &n_cells_to_remove);
1389 const double left = 0.,
1390 const double right = 1.,
1454 template <
int dim,
int spacedim>
1458 const double inner_radius,
1459 const double outer_radius,
1460 const unsigned int n_cells = 0,
1501 const double inner_radius,
1502 const double outer_radius,
1503 const unsigned int n_cells);
1538 const double inner_radius,
1539 const double outer_radius,
1540 const unsigned int n_cells = 0,
1573 const double inner_radius,
1574 const double outer_radius,
1575 const unsigned int n_cells = 0,
1612 const double length,
1613 const double inner_radius,
1614 const double outer_radius,
1615 const unsigned int n_radial_cells = 0,
1616 const unsigned int n_axial_cells = 0,
1670 template <
int dim,
int spacedim>
1673 const double centerline_radius,
1674 const double inner_radius,
1675 const unsigned int n_cells_toroidal = 6,
1711 template <
int dim,
int spacedim>
1714 const double inner_radius = .25,
1715 const double outer_radius = .5,
1716 const double L = .5,
1717 const unsigned int repetitions = 1,
1794 const double inner_radius = 0.125,
1795 const double outer_radius = 0.25,
1796 const unsigned int n_shells = 1,
1797 const double skewness = 0.1,
1798 const unsigned int n_cells_per_shell = 0,
1816 const unsigned int n_cells,
1817 const unsigned int n_rotations,
1856 template <
int dim,
int spacedim>
1860 const std::string &grid_generator_function_name,
1861 const std::string &grid_generator_function_arguments);
1920 const double &outer_ball_radius = 1.0);
2009 template <
int dim,
int spacedim>
2014 const double duplicated_vertex_tolerance = 1.0e-12,
2015 const bool copy_manifold_ids =
false,
2016 const bool copy_boundary_ids =
false);
2037 template <
int dim,
int spacedim>
2042 const double duplicated_vertex_tolerance = 1.0e-12,
2043 const bool copy_manifold_ids =
false,
2044 const bool copy_boundary_ids =
false);
2096 template <
int dim,
int spacedim = dim>
2099 const std::vector<unsigned int> &extents,
2139 template <
int dim,
int spacedim>
2182 template <
int dim,
int spacedim>
2263 const unsigned int n_slices,
2264 const double height,
2266 const bool copy_manifold_ids =
false,
2267 const std::vector<types::manifold_id> &manifold_priorities = {});
2278 const unsigned int n_slices,
2279 const double height,
2281 const bool copy_manifold_ids =
false,
2282 const std::vector<types::manifold_id> &manifold_priorities = {});
2306 const std::vector<double> &slice_coordinates,
2308 const bool copy_manifold_ids =
false,
2309 const std::vector<types::manifold_id> &manifold_priorities = {});
2320 const std::vector<double> &slice_coordinates,
2322 const bool copy_manifold_ids =
false,
2323 const std::vector<types::manifold_id> &manifold_priorities = {});
2366 template <
int dim,
int spacedim1,
int spacedim2>
2410 template <
int dim,
int spacedim>
2421 template <
int spacedim>
2450 template <
int dim,
int spacedim>
2658 template <
int dim,
int spacedim>
2662 const std::vector<unsigned int> &repetitions,
2684 template <
int dim,
int spacedim>
2687 const unsigned int repetitions,
2688 const double p1 = 0.0,
2689 const double p2 = 1.0,
2708 template <
template <
int,
int>
class MeshType,
int dim,
int spacedim>
2711 struct ExtractBoundaryMesh
2714 std::map<
typename MeshType<dim - 1, spacedim>::cell_iterator,
2715 typename MeshType<dim, spacedim>::face_iterator>;
2816 template <
template <
int,
int>
class MeshType,
int dim,
int spacedim>
2823 std::map<
typename MeshType<dim - 1, spacedim>::cell_iterator,
2824 typename MeshType<dim, spacedim>::face_iterator>
2826 typename ExtractBoundaryMesh<MeshType, dim, spacedim>::return_type
2830 MeshType<dim - 1, spacedim> &surface_mesh,
2831 const std::set<types::boundary_id> &boundary_ids =
2832 std::set<types::boundary_id>());
2852 <<
"The number of repetitions " << arg1 <<
" must be >=1.");
2858 <<
"The vector of repetitions must have " << arg1
2865 "The input to this function is oriented in a way that will"
2866 " cause all cells to have negative measure.");
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_CXX20_REQUIRES(condition)
#define DEAL_II_NAMESPACE_CLOSE
#define DeclException0(Exception0)
static ::ExceptionBase & ExcInvalidInputOrientation()
static ::ExceptionBase & ExcInvalidRepetitions(int arg1)
#define DeclExceptionMsg(Exception, defaulttext)
static ::ExceptionBase & ExcInvalidRadii()
#define DeclException1(Exception1, type1, outsequence)
static ::ExceptionBase & ExcInvalidRepetitionsDimension(int arg1)
std::vector< index_type > data
void create_triangulation(Triangulation< dim, dim > &tria, const AdditionalData &additional_data=AdditionalData())
void subdivided_hyper_cube_with_simplices(Triangulation< dim, spacedim > &tria, const unsigned int repetitions, const double p1=0.0, const double p2=1.0, const bool colorize=false)
void parallelepiped(Triangulation< dim > &tria, const Point< dim >(&corners)[dim], const bool colorize=false)
void hyper_cross(Triangulation< dim, spacedim > &tria, const std::vector< unsigned int > &sizes, const bool colorize_cells=false)
A center cell with stacks of cell protruding from each surface.
void hyper_cube_with_cylindrical_hole(Triangulation< dim, spacedim > &triangulation, const double inner_radius=.25, const double outer_radius=.5, const double L=.5, const unsigned int repetitions=1, const bool colorize=false)
void hyper_ball_balanced(Triangulation< dim > &tria, const Point< dim > ¢er=Point< dim >(), const double radius=1.)
void plate_with_a_hole(Triangulation< dim > &tria, const double inner_radius=0.4, const double outer_radius=1., const double pad_bottom=2., const double pad_top=2., const double pad_left=1., const double pad_right=1., const Point< dim > ¢er=Point< dim >(), const types::manifold_id polar_manifold_id=0, const types::manifold_id tfi_manifold_id=1, const double L=1., const unsigned int n_slices=2, const bool colorize=false)
Rectangular plate with an (offset) cylindrical hole.
void generate_from_name_and_arguments(Triangulation< dim, spacedim > &tria, const std::string &grid_generator_function_name, const std::string &grid_generator_function_arguments)
void enclosed_hyper_cube(Triangulation< dim > &tria, const double left=0., const double right=1., const double thickness=1., const bool colorize=false)
void replicate_triangulation(const Triangulation< dim, spacedim > &input, const std::vector< unsigned int > &extents, Triangulation< dim, spacedim > &result)
Replicate a given triangulation in multiple coordinate axes.
void parallelogram(Triangulation< dim > &tria, const Point< dim >(&corners)[dim], const bool colorize=false)
void general_cell(Triangulation< dim, spacedim > &tria, const std::vector< Point< spacedim > > &vertices, const bool colorize=false)
void subdivided_hyper_cube(Triangulation< dim, spacedim > &tria, const unsigned int repetitions, const double left=0., const double right=1., const bool colorize=false)
void hyper_shell(Triangulation< dim, spacedim > &tria, const Point< spacedim > ¢er, const double inner_radius, const double outer_radius, const unsigned int n_cells=0, bool colorize=false)
void hyper_L(Triangulation< dim > &tria, const double left=-1., const double right=1., const bool colorize=false)
void hyper_cube_slit(Triangulation< dim > &tria, const double left=0., const double right=1., const bool colorize=false)
void hyper_ball(Triangulation< dim > &tria, const Point< dim > ¢er=Point< dim >(), const double radius=1., const bool attach_spherical_manifold_on_boundary_cells=false)
void eccentric_hyper_shell(Triangulation< dim > &triangulation, const Point< dim > &inner_center, const Point< dim > &outer_center, const double inner_radius, const double outer_radius, const unsigned int n_cells)
void hyper_rectangle(Triangulation< dim, spacedim > &tria, const Point< dim > &p1, const Point< dim > &p2, const bool colorize=false)
void surface_mesh_to_volumetric_mesh(const Triangulation< 2, 3 > &surface_tria, Triangulation< 3 > &vol_tria, const CGALWrappers::AdditionalData< 3 > &data=CGALWrappers::AdditionalData< 3 >{})
void cylinder(Triangulation< dim > &tria, const double radius=1., const double half_length=1.)
void moebius(Triangulation< 3, 3 > &tria, const unsigned int n_cells, const unsigned int n_rotations, const double R, const double r)
void pipe_junction(Triangulation< dim, spacedim > &tria, const std::vector< std::pair< Point< spacedim >, double > > &openings, const std::pair< Point< spacedim >, double > &bifurcation, const double aspect_ratio=0.5)
void extrude_triangulation(const Triangulation< 2, 2 > &input, const unsigned int n_slices, const double height, Triangulation< 3, 3 > &result, const bool copy_manifold_ids=false, const std::vector< types::manifold_id > &manifold_priorities={})
void half_hyper_shell(Triangulation< dim > &tria, const Point< dim > ¢er, const double inner_radius, const double outer_radius, const unsigned int n_cells=0, const bool colorize=false)
void quarter_hyper_ball(Triangulation< dim > &tria, const Point< dim > ¢er=Point< dim >(), const double radius=1.)
void cheese(Triangulation< dim, spacedim > &tria, const std::vector< unsigned int > &holes)
Rectangular domain with rectangular pattern of holes.
void implicit_function(Triangulation< dim, 3 > &tria, const Function< 3 > &implicit_function, const CGALWrappers::AdditionalData< dim > &data=CGALWrappers::AdditionalData< dim >{}, const Point< 3 > &interior_point=Point< 3 >(), const double &outer_ball_radius=1.0)
void create_union_triangulation(const Triangulation< dim, spacedim > &triangulation_1, const Triangulation< dim, spacedim > &triangulation_2, Triangulation< dim, spacedim > &result)
void subdivided_hyper_rectangle_with_simplices(Triangulation< dim, spacedim > &tria, const std::vector< unsigned int > &repetitions, const Point< dim > &p1, const Point< dim > &p2, const bool colorize=false)
void non_standard_orientation_mesh(Triangulation< 2 > &tria, const unsigned int n_rotate_middle_square)
return_type extract_boundary_mesh(const MeshType< dim, spacedim > &volume_mesh, MeshType< dim - 1, spacedim > &surface_mesh, const std::set< types::boundary_id > &boundary_ids=std::set< types::boundary_id >())
void alfeld_split_of_simplex_mesh(const Triangulation< dim, spacedim > &in_tria, Triangulation< dim, spacedim > &out_tria)
void subdivided_parallelepiped(Triangulation< dim > &tria, const unsigned int n_subdivisions, const Point< dim >(&corners)[dim], const bool colorize=false)
void subdivided_cylinder(Triangulation< dim > &tria, const unsigned int x_subdivisions, const double radius=1., const double half_length=1.)
void channel_with_cylinder(Triangulation< dim > &tria, const double shell_region_width=0.03, const unsigned int n_shells=2, const double skewness=2.0, const bool colorize=false)
void subdivided_hyper_L(Triangulation< dim, spacedim > &tria, const std::vector< unsigned int > &repetitions, const Point< dim > &bottom_left, const Point< dim > &top_right, const std::vector< int > &n_cells_to_remove)
void hyper_sphere(Triangulation< spacedim - 1, spacedim > &tria, const Point< spacedim > ¢er=Point< spacedim >(), const double radius=1.)
void concentric_hyper_shells(Triangulation< dim > &triangulation, const Point< dim > ¢er, const double inner_radius=0.125, const double outer_radius=0.25, const unsigned int n_shells=1, const double skewness=0.1, const unsigned int n_cells_per_shell=0, const bool colorize=false)
void convert_hypercube_to_simplex_mesh(const Triangulation< dim, spacedim > &in_tria, Triangulation< dim, spacedim > &out_tria)
void subdivided_hyper_rectangle(Triangulation< dim, spacedim > &tria, const std::vector< unsigned int > &repetitions, const Point< dim > &p1, const Point< dim > &p2, const bool colorize=false)
void quarter_hyper_shell(Triangulation< dim > &tria, const Point< dim > ¢er, const double inner_radius, const double outer_radius, const unsigned int n_cells=0, const bool colorize=false)
void hyper_cube(Triangulation< dim, spacedim > &tria, const double left=0., const double right=1., const bool colorize=false)
void torus(Triangulation< dim, spacedim > &tria, const double centerline_radius, const double inner_radius, const unsigned int n_cells_toroidal=6, const double phi=2.0 *numbers::PI)
void create_triangulation_with_removed_cells(const Triangulation< dim, spacedim > &input_triangulation, const std::set< typename Triangulation< dim, spacedim >::active_cell_iterator > &cells_to_remove, Triangulation< dim, spacedim > &result)
void simplex(Triangulation< dim, dim > &tria, const std::vector< Point< dim > > &vertices)
void truncated_cone(Triangulation< dim > &tria, const double radius_0=1.0, const double radius_1=0.5, const double half_length=1.0)
void merge_triangulations(const Triangulation< dim, spacedim > &triangulation_1, const Triangulation< dim, spacedim > &triangulation_2, Triangulation< dim, spacedim > &result, const double duplicated_vertex_tolerance=1.0e-12, const bool copy_manifold_ids=false, const bool copy_boundary_ids=false)
void reference_cell(Triangulation< dim, spacedim > &tria, const ReferenceCell &reference_cell)
void half_hyper_ball(Triangulation< dim > &tria, const Point< dim > ¢er=Point< dim >(), const double radius=1.)
void cylinder_shell(Triangulation< dim > &tria, const double length, const double inner_radius, const double outer_radius, const unsigned int n_radial_cells=0, const unsigned int n_axial_cells=0, const bool colorize=false)
void flatten_triangulation(const Triangulation< dim, spacedim1 > &in_tria, Triangulation< dim, spacedim2 > &out_tria)
static constexpr double PI
const ::parallel::distributed::Triangulation< dim, spacedim > * triangulation
unsigned int n_subdivision_x_0
unsigned int n_subdivision_y
unsigned int n_subdivision_x_2
void add_parameters(ParameterHandler &prm)
unsigned int airfoil_sampling_factor
unsigned int n_subdivision_x_1
Point< 2, double > joukowski_center