Go to the documentation of this file.
26 #include "libmesh/tensor_value.h"
27 #include "libmesh/sphere.h"
46 libmesh_assert_greater (r, 0.);
77 libmesh_assert_greater (
std::abs(D), 1e-12);
102 #else // LIBMESH_DIM > 2
104 libmesh_not_implemented();
121 libmesh_assert_greater (this->
radius(), 0.);
128 return distance(other_sphere) < 0 ? true :
false;
135 libmesh_assert_greater ( this->
radius(), 0. );
136 libmesh_assert_greater ( other_sphere.
radius(), 0. );
140 return the_distance - (this->
radius() + other_sphere.
radius());
147 libmesh_assert_greater (this->
radius(), 0.);
162 libmesh_assert_greater (this->
radius(), 0.);
171 libmesh_assert_greater (this->
radius(), 0.);
188 libmesh_assert_greater (this->
radius(), 0.);
205 libmesh_assert_greater (this->
radius(), 0.);
207 libmesh_assert_not_equal_to (p, this->
center());
virtual bool below_surface(const Point &p) const override
The libMesh namespace provides an interface to certain functionality in the library.
The base class for all "surface" related geometric objects.
This class defines a sphere.
MetaPhysicL::DualNumber< T, D > abs(const MetaPhysicL::DualNumber< T, D > &in)
auto norm_sq() const -> decltype(std::norm(T()))
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
This class defines a tensor in LIBMESH_DIM dimensional Real or Complex space.
A Point defines a location in LIBMESH_DIM dimensional Real space.
virtual Point unit_normal(const Point &p) 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.
TypeVector< T > unit() const
MetaPhysicL::DualNumber< T, D > norm(const MetaPhysicL::DualNumber< T, D > &in)
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
Sphere()
Dummy Constructor.