Reference documentation for deal.II version Git 78a8940608 2021-04-17 09:24:19 -0400
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
grid_generator.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 1999 - 2020 by the deal.II authors
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 
16 #ifndef dealii_grid_generator_h
17 #define dealii_grid_generator_h
18 
19 
20 #include <deal.II/base/config.h>
21 
23 #include <deal.II/base/function.h>
25 #include <deal.II/base/point.h>
26 #include <deal.II/base/table.h>
27 
29 #include <deal.II/grid/tria.h>
30 
31 #include <array>
32 #include <map>
33 
35 
58 namespace GridGenerator
59 {
63 
93  template <int dim, int spacedim>
94  void
96  const double left = 0.,
97  const double right = 1.,
98  const bool colorize = false);
99 
127  template <int dim>
128  void
130  const std::vector<Point<dim>> &vertices);
131 
132  /*
133  * Create a (coarse) grid with a single cell of the shape of the provided
134  * reference cell. This is a generalization of the hyper_cube() and simplex()
135  * functions above.
136  */
137  template <int dim, int spacedim>
138  void
141 
142 
169  template <int dim, int spacedim>
170  void
172  const unsigned int repetitions,
173  const double left = 0.,
174  const double right = 1.,
175  const bool colorize = false);
176 
212  template <int dim, int spacedim>
213  void
215  const Point<dim> & p1,
216  const Point<dim> & p2,
217  const bool colorize = false);
218 
268  template <int dim, int spacedim>
269  void
271  const std::vector<unsigned int> &repetitions,
272  const Point<dim> & p1,
273  const Point<dim> & p2,
274  const bool colorize = false);
275 
291  template <int dim>
292  void
294  const std::vector<std::vector<double>> &step_sizes,
295  const Point<dim> & p_1,
296  const Point<dim> & p_2,
297  const bool colorize = false);
298 
309  template <int dim>
310  void
312  const std::vector<std::vector<double>> &spacing,
313  const Point<dim> & p,
315  const bool colorize = false);
316 
341  template <int dim, int spacedim>
342  void
344  const std::vector<unsigned int> &holes);
345 
389  template <int dim>
390  void
392  const double inner_radius = 0.4,
393  const double outer_radius = 1.,
394  const double pad_bottom = 2.,
395  const double pad_top = 2.,
396  const double pad_left = 1.,
397  const double pad_right = 1.,
398  const Point<dim> center = Point<dim>(),
399  const types::manifold_id polar_manifold_id = 0,
400  const types::manifold_id tfi_manifold_id = 1,
401  const double L = 1.,
402  const unsigned int n_slices = 2,
403  const bool colorize = false);
404 
491  template <int dim>
492  void
494  const double shell_region_width = 0.03,
495  const unsigned int n_shells = 2,
496  const double skewness = 2.0,
497  const bool colorize = false);
498 
519  template <int dim, int spacedim>
520  void
522  const std::vector<Point<spacedim>> &vertices,
523  const bool colorize = false);
524 
541  template <int dim>
542  void
544  const Point<dim> (&corners)[dim],
545  const bool colorize = false);
546 
562  template <int dim>
563  void
565  const Point<dim> (&corners)[dim],
566  const bool colorize = false);
567 
579  template <int dim>
580  void
582  const unsigned int n_subdivisions,
583  const Point<dim> (&corners)[dim],
584  const bool colorize = false);
585 
594  template <int dim>
595  void
597 #ifndef _MSC_VER
598  const unsigned int (&n_subdivisions)[dim],
599 #else
600  const unsigned int *n_subdivisions,
601 #endif
602  const Point<dim> (&corners)[dim],
603  const bool colorize = false);
604 
628  template <int dim, int spacedim>
629  void
631  const Point<spacedim> & origin,
632  const std::array<Tensor<1, spacedim>, dim> &edges,
633  const std::vector<unsigned int> &subdivisions = {},
634  const bool colorize = false);
635 
652  template <int dim>
653  void
655  const double left = 0.,
656  const double right = 1.,
657  const double thickness = 1.,
658  const bool colorize = false);
659 
736  template <int dim>
737  void
739  const Point<dim> & center = Point<dim>(),
740  const double radius = 1.,
741  const bool attach_spherical_manifold_on_boundary_cells = false);
742 
775  template <int dim>
776  void
778  const Point<dim> & center = Point<dim>(),
779  const double radius = 1.);
780 
802  const bool rotate_left_square,
803  const bool rotate_right_square);
804 
827  const bool face_orientation,
828  const bool face_flip,
829  const bool face_rotation,
830  const bool manipulate_left_cube);
831 
832 
858  template <int spacedim>
861  const double radius = 1.);
862 
896  template <int dim>
897  void
899  const Point<dim> & center = Point<dim>(),
900  const double radius = 1.);
901 
914  template <int dim>
915  void
917  const Point<dim> & center = Point<dim>(),
918  const double radius = 1.);
919 
943  template <int dim>
944  void
946  const double radius = 1.,
947  const double half_length = 1.);
948 
949 
983  template <int dim>
984  void
986  const unsigned int x_subdivisions,
987  const double radius = 1.,
988  const double half_length = 1.);
989 
990 
1021  template <int dim>
1022  void
1024  const double radius_0 = 1.0,
1025  const double radius_1 = 0.5,
1026  const double half_length = 1.0);
1027 
1054  template <int dim, int spacedim>
1055  void
1057  const std::vector<unsigned int> &sizes,
1058  const bool colorize_cells = false);
1059 
1095  template <int dim>
1096  void
1098  const double left = -1.,
1099  const double right = 1.,
1100  const bool colorize = false);
1101 
1131  template <int dim, int spacedim>
1132  void
1134  const std::vector<unsigned int> &repetitions,
1135  const Point<dim> & bottom_left,
1136  const Point<dim> & top_right,
1137  const std::vector<int> & n_cells_to_remove);
1138 
1158  template <int dim>
1159  void
1161  const double left = 0.,
1162  const double right = 1.,
1163  const bool colorize = false);
1164 
1222  template <int dim>
1223  void
1225  const Point<dim> & center,
1226  const double inner_radius,
1227  const double outer_radius,
1228  const unsigned int n_cells = 0,
1229  bool colorize = false);
1230 
1264  template <int dim>
1265  void
1267  const Point<dim> & inner_center,
1268  const Point<dim> & outer_center,
1269  const double inner_radius,
1270  const double outer_radius,
1271  const unsigned int n_cells);
1272 
1302  template <int dim>
1303  void
1305  const Point<dim> & center,
1306  const double inner_radius,
1307  const double outer_radius,
1308  const unsigned int n_cells = 0,
1309  const bool colorize = false);
1310 
1311 
1337  template <int dim>
1338  void
1340  const Point<dim> & center,
1341  const double inner_radius,
1342  const double outer_radius,
1343  const unsigned int n_cells = 0,
1344  const bool colorize = false);
1345 
1372  template <int dim>
1373  void
1375  const double length,
1376  const double inner_radius,
1377  const double outer_radius,
1378  const unsigned int n_radial_cells = 0,
1379  const unsigned int n_axial_cells = 0);
1380 
1430  template <int dim, int spacedim>
1431  void
1433  const double R,
1434  const double r,
1435  const unsigned int n_cells_toroidal = 6,
1436  const double phi = 2.0 * numbers::PI);
1437 
1467  template <int dim>
1468  void
1470  const double inner_radius = .25,
1471  const double outer_radius = .5,
1472  const double L = .5,
1473  const unsigned int repetitions = 1,
1474  const bool colorize = false);
1475 
1546  template <int dim>
1547  void
1549  const Point<dim> & center,
1550  const double inner_radius = 0.125,
1551  const double outer_radius = 0.25,
1552  const unsigned int n_shells = 1,
1553  const double skewness = 0.1,
1554  const unsigned int n_cells_per_shell = 0,
1555  const bool colorize = false);
1556 
1570  void moebius(Triangulation<3, 3> &tria,
1571  const unsigned int n_cells,
1572  const unsigned int n_rotations,
1573  const double R,
1574  const double r);
1575 
1611  template <int dim, int spacedim>
1612  void
1615  const std::string & grid_generator_function_name,
1616  const std::string & grid_generator_function_arguments);
1618 
1622 
1685  template <int dim, int spacedim>
1686  void
1687  merge_triangulations(const Triangulation<dim, spacedim> &triangulation_1,
1688  const Triangulation<dim, spacedim> &triangulation_2,
1690  const double duplicated_vertex_tolerance = 1.0e-12,
1691  const bool copy_manifold_ids = false);
1692 
1707  template <int dim, int spacedim>
1708  void
1710  const std::vector<const Triangulation<dim, spacedim> *> &triangulations,
1712  const double duplicated_vertex_tolerance = 1.0e-12,
1713  const bool copy_manifold_ids = false);
1714 
1762  template <int dim, int spacedim = dim>
1763  void
1765  const std::vector<unsigned int> & extents,
1766  Triangulation<dim, spacedim> & result);
1767 
1804  template <int dim, int spacedim>
1805  void
1807  const Triangulation<dim, spacedim> &triangulation_1,
1808  const Triangulation<dim, spacedim> &triangulation_2,
1809  Triangulation<dim, spacedim> & result);
1810 
1847  template <int dim, int spacedim>
1848  void
1850  const Triangulation<dim, spacedim> &input_triangulation,
1852  & cells_to_remove,
1854 
1911  void
1913  const Triangulation<2, 2> & input,
1914  const unsigned int n_slices,
1915  const double height,
1916  Triangulation<3, 3> & result,
1917  const bool copy_manifold_ids = false,
1918  const std::vector<types::manifold_id> &manifold_priorities = {});
1919 
1926  void
1928  const Triangulation<2, 2> & input,
1929  const unsigned int n_slices,
1930  const double height,
1931  Triangulation<2, 2> & result,
1932  const bool copy_manifold_ids = false,
1933  const std::vector<types::manifold_id> &manifold_priorities = {});
1934 
1935 
1954  void
1956  const Triangulation<2, 2> & input,
1957  const std::vector<double> & slice_coordinates,
1958  Triangulation<3, 3> & result,
1959  const bool copy_manifold_ids = false,
1960  const std::vector<types::manifold_id> &manifold_priorities = {});
1961 
1968  void
1970  const Triangulation<2, 2> & input,
1971  const std::vector<double> & slice_coordinates,
1972  Triangulation<2, 2> & result,
1973  const bool copy_manifold_ids = false,
1974  const std::vector<types::manifold_id> &manifold_priorities = {});
1975 
1976 
1977 
2010  template <int dim, int spacedim1, int spacedim2>
2011  void
2013  Triangulation<dim, spacedim2> & out_tria);
2014 
2044  template <int dim, int spacedim>
2045  void
2047  Triangulation<dim, spacedim> &out_tria);
2048 
2052  template <int spacedim>
2053  void
2055  Triangulation<1, spacedim> & out_tria);
2056 
2057 
2064  namespace Airfoil
2065  {
2071  {
2076  std::string airfoil_type;
2077 
2085  std::string naca_id;
2086 
2093 
2099 
2104  double height;
2105 
2109  double length_b2;
2110 
2127 
2134  double bias_factor;
2135 
2139  unsigned int refinements;
2140 
2144  unsigned int n_subdivision_x_0;
2145 
2149  unsigned int n_subdivision_x_1;
2150 
2154  unsigned int n_subdivision_x_2;
2155 
2159  unsigned int n_subdivision_y;
2160 
2173 
2177  AdditionalData();
2178 
2184  void
2186  };
2187 
2217  template <int dim>
2218  void
2221  const AdditionalData & additional_data = AdditionalData());
2222 
2223 
2224 
2237  template <int dim>
2238  void
2240  Triangulation<dim, dim> & tria,
2241  std::vector<GridTools::PeriodicFacePair<
2242  typename Triangulation<dim, dim>::cell_iterator>> &periodic_faces,
2243  const AdditionalData &additional_data = AdditionalData());
2244 
2245  } // namespace Airfoil
2246 
2260  template <int dim, int spacedim>
2261  void
2264  const std::vector<unsigned int> &repetitions,
2265  const Point<dim> & p1,
2266  const Point<dim> & p2,
2267  const bool colorize = false);
2268 
2283  template <int dim, int spacedim>
2284  void
2286  const unsigned int repetitions,
2287  const double p1 = 0.0,
2288  const double p2 = 1.0,
2289  const bool colorize = false);
2290 
2292 
2298 
2300 #ifdef _MSC_VER
2301  // Microsoft's VC++ has a bug where it doesn't want to recognize that
2302  // an implementation (definition) of the extract_boundary_mesh function
2303  // matches a declaration. This can apparently only be avoided by
2304  // doing some contortion with the return type using the following
2305  // intermediate type. This is only used when using MS VC++ and uses
2306  // the direct way of doing it otherwise
2307  template <template <int, int> class MeshType, int dim, int spacedim>
2308  struct ExtractBoundaryMesh
2309  {
2310  using return_type =
2311  std::map<typename MeshType<dim - 1, spacedim>::cell_iterator,
2312  typename MeshType<dim, spacedim>::face_iterator>;
2313  };
2314 #endif
2315 
2391  template <template <int, int> class MeshType, int dim, int spacedim>
2392 #ifndef _MSC_VER
2393  std::map<typename MeshType<dim - 1, spacedim>::cell_iterator,
2394  typename MeshType<dim, spacedim>::face_iterator>
2395 #else
2396  typename ExtractBoundaryMesh<MeshType, dim, spacedim>::return_type
2397 #endif
2398  extract_boundary_mesh(const MeshType<dim, spacedim> & volume_mesh,
2399  MeshType<dim - 1, spacedim> & surface_mesh,
2400  const std::set<types::boundary_id> &boundary_ids =
2401  std::set<types::boundary_id>());
2402 
2404 
2405 
2409 
2411 
2420  int,
2421  << "The number of repetitions " << arg1 << " must be >=1.");
2426  int,
2427  << "The vector of repetitions must have " << arg1
2428  << " elements.");
2429 
2434  "The input to this function is oriented in a way that will"
2435  " cause all cells to have negative measure.");
2437 
2438 #ifndef DOXYGEN
2439  // These functions are only implemented with specializations; declare them
2440  // here
2441  template <>
2443  const double,
2444  const double,
2445  const double,
2446  const unsigned int,
2447  const bool);
2448 
2449  template <>
2451  const double,
2452  const double,
2453  const double,
2454  const unsigned int,
2455  const bool);
2456 
2457  template <>
2459  const double,
2460  const double,
2461  const double,
2462  const unsigned int,
2463  const bool);
2464 
2465  template <>
2467  const double,
2468  const unsigned int,
2469  const double,
2470  const bool);
2471 
2472  template <>
2474  const double,
2475  const unsigned int,
2476  const double,
2477  const bool);
2478 
2479  template <>
2481  const double,
2482  const unsigned int,
2483  const double,
2484  const bool);
2485 #endif
2486 } // namespace GridGenerator
2487 
2488 
2489 
2491 
2492 #endif
void create_union_triangulation(const Triangulation< dim, spacedim > &triangulation_1, const Triangulation< dim, spacedim > &triangulation_2, Triangulation< dim, spacedim > &result)
static const char L
void torus(Triangulation< dim, spacedim > &tria, const double R, const double r, const unsigned int n_cells_toroidal=6, const double phi=2.0 *numbers::PI)
void simplex(Triangulation< dim, dim > &tria, const std::vector< Point< dim >> &vertices)
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)
SymmetricTensor< 2, dim, Number > e(const Tensor< 2, dim, Number > &F)
void concentric_hyper_shells(Triangulation< dim > &triangulation, const Point< dim > &center, 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 general_cell(Triangulation< dim, spacedim > &tria, const std::vector< Point< spacedim >> &vertices, const bool colorize=false)
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 hyper_rectangle(Triangulation< dim, spacedim > &tria, const Point< dim > &p1, const Point< dim > &p2, const bool colorize=false)
void moebius(Triangulation< 3, 3 > &tria, const unsigned int n_cells, const unsigned int n_rotations, const double R, const double r)
void flatten_triangulation(const Triangulation< dim, spacedim1 > &in_tria, Triangulation< dim, spacedim2 > &out_tria)
void quarter_hyper_shell(Triangulation< dim > &tria, const Point< dim > &center, const double inner_radius, const double outer_radius, const unsigned int n_cells=0, const bool colorize=false)
void enclosed_hyper_cube(Triangulation< dim > &tria, const double left=0., const double right=1., const double thickness=1., const bool colorize=false)
void subdivided_parallelepiped(Triangulation< dim > &tria, const unsigned int n_subdivisions, const Point< dim >(&corners)[dim], const bool colorize=false)
static ::ExceptionBase & ExcInvalidRepetitionsDimension(int arg1)
unsigned int material_id
Definition: types.h:152
void parallelogram(Triangulation< dim > &tria, const Point< dim >(&corners)[dim], 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 > &tria, const Point< dim > &center, const double inner_radius, const double outer_radius, const unsigned int n_cells=0, bool colorize=false)
static ::ExceptionBase & ExcInvalidInputOrientation()
std::map< typename MeshType< dim - 1, spacedim >::cell_iterator, typename MeshType< dim, spacedim >::face_iterator > 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 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)
void create_triangulation(Triangulation< dim, dim > &tria, const AdditionalData &additional_data=AdditionalData())
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_L(Triangulation< dim > &tria, const double left=-1., const double right=1., const bool colorize=false)
void half_hyper_ball(Triangulation< dim > &tria, const Point< dim > &center=Point< dim >(), const double radius=1.)
#define DeclException1(Exception1, type1, outsequence)
Definition: exceptions.h:515
void hyper_sphere(Triangulation< spacedim - 1, spacedim > &tria, const Point< spacedim > &center=Point< spacedim >(), const double radius=1.)
void non_standard_orientation_mesh(Triangulation< 2 > &tria, const bool rotate_left_square, const bool rotate_right_square)
void cylinder(Triangulation< dim > &tria, const double radius=1., const double half_length=1.)
void reference_cell(const ReferenceCell &reference_cell, Triangulation< dim, spacedim > &tria)
#define DeclExceptionMsg(Exception, defaulttext)
Definition: exceptions.h:493
void hyper_ball_balanced(Triangulation< dim > &tria, const Point< dim > &center=Point< dim >(), const double radius=1.)
#define DeclException0(Exception0)
Definition: exceptions.h:470
void quarter_hyper_ball(Triangulation< dim > &tria, const Point< dim > &center=Point< dim >(), const double radius=1.)
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:396
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 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 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={})
Point< 3 > vertices[4]
void add_parameters(ParameterHandler &prm)
void hyper_cube_slit(Triangulation< dim > &tria, const double left=0., const double right=1., const bool colorize=false)
unsigned int n_cells(const internal::TriangulationImplementation::NumberCache< 1 > &c)
Definition: tria.cc:12655
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 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)
void generate_from_name_and_arguments(Triangulation< dim, spacedim > &tria, const std::string &grid_generator_function_name, const std::string &grid_generator_function_arguments)
static ::ExceptionBase & ExcInvalidRadii()
void cheese(Triangulation< dim, spacedim > &tria, const std::vector< unsigned int > &holes)
Rectangular domain with rectangular pattern of holes.
__global__ void set(Number *val, const Number s, const size_type N)
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 subdivided_cylinder(Triangulation< dim > &tria, const unsigned int x_subdivisions, const double radius=1., const double half_length=1.)
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 parallelepiped(Triangulation< dim > &tria, const Point< dim >(&corners)[dim], const bool colorize=false)
void half_hyper_shell(Triangulation< dim > &tria, const Point< dim > &center, const double inner_radius, const double outer_radius, const unsigned int n_cells=0, const bool colorize=false)
static constexpr double PI
Definition: numbers.h:231
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:395
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 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 hyper_cube(Triangulation< dim, spacedim > &tria, const double left=0., const double right=1., const bool colorize=false)
Point< 3 > center
void hyper_ball(Triangulation< dim > &tria, const Point< dim > &center=Point< dim >(), const double radius=1., const bool attach_spherical_manifold_on_boundary_cells=false)
bool colorize
Definition: grid_out.cc:4589
const ::parallel::distributed::Triangulation< dim, spacedim > * triangulation
void convert_hypercube_to_simplex_mesh(const Triangulation< dim, spacedim > &in_tria, Triangulation< dim, spacedim > &out_tria)
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 > center=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 hyper_cube_with_cylindrical_hole(Triangulation< dim > &triangulation, const double inner_radius=.25, const double outer_radius=.5, const double L=.5, const unsigned int repetitions=1, const bool colorize=false)
static ::ExceptionBase & ExcInvalidRepetitions(int arg1)