HyperBallBoundary< dim, spacedim > Class Template Reference
[Boundary description for triangulations]

Inheritance diagram for HyperBallBoundary< dim, spacedim >:

Inheritance graph
[legend]

List of all members.

Classes

class  ExcRadiusNotSet

Public Member Functions

 HyperBallBoundary (const Point< spacedim > p=Point< spacedim >(), const double radius=1.0)
virtual Point< spacedim > get_new_point_on_line (const typename Triangulation< dim, spacedim >::line_iterator &line) const
virtual Point< spacedim > get_new_point_on_quad (const typename Triangulation< dim, spacedim >::quad_iterator &quad) const
virtual void get_intermediate_points_on_line (const typename Triangulation< dim, spacedim >::line_iterator &line, std::vector< Point< spacedim > > &points) const
virtual void get_intermediate_points_on_quad (const typename Triangulation< dim, spacedim >::quad_iterator &quad, std::vector< Point< spacedim > > &points) const
virtual void get_normals_at_vertices (const typename Triangulation< dim, spacedim >::face_iterator &face, typename Boundary< dim, spacedim >::FaceVertexNormals &face_vertex_normals) const
Point< spacedim > get_center () const
double get_radius () const

Protected Attributes

const Point< spacedim > center
const double radius
bool compute_radius_automatically

Private Member Functions

void get_intermediate_points_between_points (const Point< spacedim > &p0, const Point< spacedim > &p1, std::vector< Point< spacedim > > &points) const


Detailed Description

template<int dim, int spacedim = dim>
class HyperBallBoundary< dim, spacedim >

Specialisation of Boundary<dim>, which places the new point on the boundary of a ball in arbitrary dimension. It works by projecting the point in the middle of the old points onto the ball. The middle is defined as the arithmetic mean of the points.

The center of the ball and its radius may be given upon construction of an object of this type. They default to the origin and a radius of 1.0.

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.

Author:
Wolfgang Bangerth, 1998, Ralf Hartmann, 2001

Constructor & Destructor Documentation

template<int dim, int spacedim = dim>
HyperBallBoundary< dim, spacedim >::HyperBallBoundary ( const Point< spacedim >  p = Point< spacedim >(),
const double  radius = 1.0 
)

Constructor


Member Function Documentation

template<int dim, int spacedim = dim>
virtual Point<spacedim> HyperBallBoundary< dim, spacedim >::get_new_point_on_line ( const typename Triangulation< dim, spacedim >::line_iterator &  line  )  const [virtual]

Refer to the general documentation of this class and the documentation of the base class.

Reimplemented from StraightBoundary< dim, spacedim >.

template<int dim, int spacedim = dim>
virtual Point<spacedim> HyperBallBoundary< dim, spacedim >::get_new_point_on_quad ( const typename Triangulation< dim, spacedim >::quad_iterator &  quad  )  const [virtual]

Refer to the general documentation of this class and the documentation of the base class.

Reimplemented from StraightBoundary< dim, spacedim >.

template<int dim, int spacedim = dim>
virtual void HyperBallBoundary< dim, spacedim >::get_intermediate_points_on_line ( const typename Triangulation< dim, spacedim >::line_iterator &  line,
std::vector< Point< spacedim > > &  points 
) const [virtual]

Refer to the general documentation of this class and the documentation of the base class.

Calls get_intermediate_points_between_points.

Reimplemented from StraightBoundary< dim, spacedim >.

template<int dim, int spacedim = dim>
virtual void HyperBallBoundary< dim, spacedim >::get_intermediate_points_on_quad ( const typename Triangulation< dim, spacedim >::quad_iterator &  quad,
std::vector< Point< spacedim > > &  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.

Reimplemented from StraightBoundary< dim, spacedim >.

template<int dim, int spacedim = dim>
virtual void HyperBallBoundary< dim, spacedim >::get_normals_at_vertices ( const typename Triangulation< dim, spacedim >::face_iterator &  face,
typename Boundary< dim, spacedim >::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.

Reimplemented from StraightBoundary< dim, spacedim >.

template<int dim, int spacedim = dim>
Point<spacedim> HyperBallBoundary< dim, spacedim >::get_center (  )  const

Return the center of the ball.

template<int dim, int spacedim = dim>
double HyperBallBoundary< dim, spacedim >::get_radius (  )  const

Return the radius of the ball.

template<int dim, int spacedim = dim>
void HyperBallBoundary< dim, spacedim >::get_intermediate_points_between_points ( const Point< spacedim > &  p0,
const Point< spacedim > &  p1,
std::vector< Point< spacedim > > &  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.


Member Data Documentation

template<int dim, int spacedim = dim>
const Point<spacedim> HyperBallBoundary< dim, spacedim >::center [protected]

Center point of the hyperball.

template<int dim, int spacedim = dim>
const double HyperBallBoundary< dim, spacedim >::radius [protected]

Radius of the hyperball.

template<int dim, int spacedim = dim>
bool HyperBallBoundary< dim, spacedim >::compute_radius_automatically [protected]

This flag is false for this class and for all derived classes that set the radius by the constructor. For example this flag is false for the HalfHyperBallBoundary class but it is true for the HyperShellBoundary class, for example. The latter class doesn't get its radii by the constructor but need to compute the radii automatically each time one of the virtual functions is called.


The documentation for this class was generated from the following file:

deal.II documentation generated on Sat Aug 15 16:52:03 2009 by doxygen 1.5.9