chombo-discharge
|
Signed distance function for a torus (oriented along z). More...
#include <CD_TorusSdf.H>
Public Member Functions | |
TorusSdf ()=delete | |
No weak construction (yet) | |
TorusSdf (const RealVect a_center, const Real a_majorRadius, const Real a_minorRadius, const bool a_fluidInside) | |
Constructor. More... | |
TorusSdf (const TorusSdf &a_inputIF) | |
Copy constructor. More... | |
virtual | ~TorusSdf () |
Destructor. | |
virtual Real | value (const RealVect &a_point) const override |
Test whether inside or not. More... | |
virtual BaseIF * | newImplicitFunction () const override |
IF factory method. | |
Protected Attributes | |
RealVect | m_center |
Sphere center. | |
Real | m_majorRadius |
Cylinder radius. | |
Real | m_minorRadius |
Cylinder radius. | |
bool | m_fluidInside |
Inside or outside domain. | |
Signed distance function for a torus (oriented along z).
TorusSdf::TorusSdf | ( | const RealVect | a_center, |
const Real | a_majorRadius, | ||
const Real | a_minorRadius, | ||
const bool | a_fluidInside | ||
) |
Constructor.
[in] | a_center | Center |
[in] | a_majorRadius | Major radius |
[in] | a_minorRadius | Minor radius |
[in] | a_fluidInside | Fluid on inside of or not |
TorusSdf::TorusSdf | ( | const TorusSdf & | a_inputIF | ) |
Copy constructor.
[in] | a_inputIF | Input cylinder |
|
overridevirtual |
Test whether inside or not.
[in] | a_point | Physical position. |