19 #include <CD_NamespaceHeader.H>
39 TorusSdf(
const RealVect a_center,
const Real a_majorRadius,
const Real a_minorRadius,
const bool a_fluidInside);
58 value(
const RealVect& a_point)
const override;
88 #include <CD_NamespaceFooter.H>
Signed distance function for a torus (oriented along z).
Definition: CD_TorusSdf.H:25
bool m_fluidInside
Inside or outside domain.
Definition: CD_TorusSdf.H:85
TorusSdf()=delete
No weak construction (yet)
virtual ~TorusSdf()
Destructor.
Definition: CD_TorusSdf.cpp:35
RealVect m_center
Sphere center.
Definition: CD_TorusSdf.H:70
Real m_minorRadius
Cylinder radius.
Definition: CD_TorusSdf.H:80
virtual BaseIF * newImplicitFunction() const override
IF factory method.
Definition: CD_TorusSdf.cpp:65
virtual Real value(const RealVect &a_point) const override
Test whether inside or not.
Definition: CD_TorusSdf.cpp:39
Real m_majorRadius
Cylinder radius.
Definition: CD_TorusSdf.H:75