12 #ifndef CD_SphereSdf_H
13 #define CD_SphereSdf_H
19 #include <CD_NamespaceHeader.H>
33 SphereSdf(
const RealVect& a_center,
const Real& a_radius,
const bool& a_fluidInside);
51 value(
const RealVect& a_point)
const;
76 #include <CD_NamespaceFooter.H>
Signed distance function for sphere.
Definition: CD_SphereSdf.H:25
bool m_fluidInside
Inside or outside domain.
Definition: CD_SphereSdf.H:73
virtual Real value(const RealVect &a_point) const
Get distance to sphere.
Definition: CD_SphereSdf.cpp:34
RealVect m_center
Sphere center.
Definition: CD_SphereSdf.H:63
virtual BaseIF * newImplicitFunction() const
IF factory method.
Definition: CD_SphereSdf.cpp:49
SphereSdf(const RealVect &a_center, const Real &a_radius, const bool &a_fluidInside)
Constructor.
Definition: CD_SphereSdf.cpp:16
Real m_radius
Cylinder radius.
Definition: CD_SphereSdf.H:68
virtual ~SphereSdf()
Destructor.
Definition: CD_SphereSdf.cpp:30