
Public Member Functions | |
| ConeBoundary (const double radius_0, const double radius_1, const Point< dim > x_0, const Point< dim > x_1) | |
| double | get_radius (const Point< dim > x) const |
| virtual Point< dim > | get_new_point_on_line (const typename Triangulation< dim >::line_iterator &line) const |
| virtual Point< dim > | get_new_point_on_quad (const typename Triangulation< dim >::quad_iterator &quad) const |
| virtual void | get_intermediate_points_on_line (const typename Triangulation< dim >::line_iterator &line, std::vector< Point< dim > > &points) const |
| virtual void | get_intermediate_points_on_quad (const typename Triangulation< dim >::quad_iterator &quad, std::vector< Point< dim > > &points) const |
| virtual void | get_normals_at_vertices (const typename Triangulation< dim >::face_iterator &face, typename Boundary< dim >::FaceVertexNormals &face_vertex_normals) const |
Protected Attributes | |
| const double | radius_0 |
| const double | radius_1 |
| const Point< dim > | x_0 |
| const Point< dim > | x_1 |
Private Member Functions | |
| void | get_intermediate_points_between_points (const Point< dim > &p0, const Point< dim > &p1, std::vector< Point< dim > > &points) const |
Boundary object for the hull of a (truncated) cone with two different radii at the two ends. If one radius is chosen to be 0 the object describes the boundary of a cone. In three dimensions, points are projected on an arbitrarily oriented (truncated) cone described by the two endpoints and the corresponding radii. Similar to HyperBallBoundary, new points are projected by dividing the straight line between the old two points and adjusting the radius from the axis.
This class is derived from StraightBoundary rather than from Boundary, which would seem natural, since this way we can use the StraightBoundary::in_between() function.
As an example of use, consider the following code snippet:
Triangulation<dim> triangulation; GridGenerator::truncated_cone (triangulation); Point<dim> p1, p2; p1[0] = -1; p2[0] = 1; const ConeBoundary<dim> boundary (1, 0.5, p1, p2); triangulation.set_boundary (0, boundary); triangulation.refine_global (2);
This will produce the following meshes after the two refinements we perform, in 2d and 3d, respectively:
Definition at line 223 of file tria_boundary_lib.h.
| ConeBoundary< dim >::ConeBoundary | ( | const double | radius_0, |
| const double | radius_1, | ||
| const Point< dim > | x_0, | ||
| const Point< dim > | x_1 | ||
| ) |
Constructor. Here the boundary object is constructed. The points x_0 and x_1 describe the starting and ending points of the axis of the (truncated) cone. radius_0 denotes the radius corresponding to x_0 and radius_1 the one corresponding to x_1.
| double ConeBoundary< dim >::get_radius | ( | const Point< dim > | x | ) | const |
Return the radius of the (truncated) cone at given point x on the axis.
| virtual Point<dim> ConeBoundary< dim >::get_new_point_on_line | ( | const typename Triangulation< dim >::line_iterator & | line | ) | const [virtual] |
Refer to the general documentation of this class and the documentation of the base class.
| virtual Point<dim> ConeBoundary< dim >::get_new_point_on_quad | ( | const typename Triangulation< dim >::quad_iterator & | quad | ) | const [virtual] |
Refer to the general documentation of this class and the documentation of the base class.
| virtual void ConeBoundary< dim >::get_intermediate_points_on_line | ( | const typename Triangulation< dim >::line_iterator & | line, |
| std::vector< Point< dim > > & | points | ||
| ) | const [virtual] |
Refer to the general documentation of this class and the documentation of the base class.
Calls get_intermediate_points_between_points.
| virtual void ConeBoundary< dim >::get_intermediate_points_on_quad | ( | const typename Triangulation< dim >::quad_iterator & | quad, |
| std::vector< Point< dim > > & | points | ||
| ) | const [virtual] |
Refer to the general documentation of this class and the documentation of the base class.
Only implemented for dim=3 and for points.size()==1.
| virtual void ConeBoundary< dim >::get_normals_at_vertices | ( | const typename Triangulation< dim >::face_iterator & | face, |
| typename Boundary< dim >::FaceVertexNormals & | face_vertex_normals | ||
| ) | const [virtual] |
Compute the normals to the boundary at the vertices of the given face.
Refer to the general documentation of this class and the documentation of the base class.
| void ConeBoundary< dim >::get_intermediate_points_between_points | ( | const Point< dim > & | p0, |
| const Point< dim > & | p1, | ||
| std::vector< Point< dim > > & | points | ||
| ) | const [private] |
Called by get_intermediate_points_on_line and by get_intermediate_points_on_quad.
Refer to the general documentation of get_intermediate_points_on_line in the documentation of the base class.
const double ConeBoundary< dim >::radius_0 [protected] |
First radius of the (truncated) cone.
Definition at line 320 of file tria_boundary_lib.h.
const double ConeBoundary< dim >::radius_1 [protected] |
Second radius of the (truncated) cone.
Definition at line 326 of file tria_boundary_lib.h.
const Point<dim> ConeBoundary< dim >::x_0 [protected] |
Starting point of the axis.
Definition at line 331 of file tria_boundary_lib.h.
const Point<dim> ConeBoundary< dim >::x_1 [protected] |
Ending point of the axis.
Definition at line 336 of file tria_boundary_lib.h.
documentation generated on Thu May 17 2012 20:05:29 by
doxygen
1.7.3