Go to the documentation of this file.
   20 #ifndef LIBMESH_SPHERE_H 
   21 #define LIBMESH_SPHERE_H 
   24 #include "libmesh/surface.h" 
   25 #include "libmesh/libmesh.h" 
  208   const Real phi = std::atan2(c(1), c(0));
 
  211                 std::atan2( 
std::sqrt( c(0)*c(0) + c(1)*c(1) ), c(2) ),
 
  215   libmesh_not_implemented();
 
  224   const Real r     = sph(0);
 
  225   const Real theta = sph(1);
 
  226   const Real phi   = sph(2);
 
  229   return Point ( r*std::sin(theta)*std::cos(phi) + this->
center()(0),
 
  230                  r*std::sin(theta)*std::sin(phi) + this->
center()(1),
 
  231                  r*std::cos(theta)               + this->
center()(2));
 
  239 #endif // LIBMESH_SPHERE_H 
  
virtual bool below_surface(const Point &p) const override
 
The libMesh namespace provides an interface to certain functionality in the library.
 
MetaPhysicL::DualNumber< T, D > sqrt(const MetaPhysicL::DualNumber< T, D > &in)
 
The base class for all "surface" related geometric objects.
 
This class defines a sphere.
 
Point _cent
The center of the sphere.
 
virtual bool above_surface(const Point &p) const override
 
virtual Point closest_point(const Point &p) const override
 
void libmesh_ignore(const Args &...)
 
virtual bool on_surface(const Point &p) const override
 
A Point defines a location in LIBMESH_DIM dimensional Real space.
 
virtual Point world_coords(const Point &sph) const override
 
virtual Point unit_normal(const Point &p) const override
 
virtual Point surface_coords(const Point &cart) const override
 
Real distance(const Sphere &other_sphere) const
 
void create_from_center_radius(const Point &c, const Real r)
Defines a sphere of radius r centered at c.
 
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
 
bool intersects(const Sphere &other_sphere) const
 
auto norm() const -> decltype(std::norm(T()))
 
const Point & center() const
 
Real _rad
The radius of the sphere.
 
Sphere()
Dummy Constructor.