|
chombo-discharge
|
Signed distance function for sphere. More...
#include <CD_SphereSdf.H>


Public Member Functions | |
| SphereSdf (const RealVect &a_center, const Real &a_radius, const bool &a_fluidInside) | |
| Constructor. | |
| SphereSdf (const SphereSdf &a_inputIF) | |
| Copy constructor. | |
| virtual | ~SphereSdf () |
| Destructor. | |
| virtual Real | value (const RealVect &a_point) const |
| Get distance to sphere. | |
| virtual BaseIF * | newImplicitFunction () const |
| IF factory method. | |
Protected Attributes | |
| RealVect | m_center |
| Sphere center. | |
| Real | m_radius |
| Cylinder radius. | |
| bool | m_fluidInside |
| Inside or outside domain. | |
Signed distance function for sphere.
| SphereSdf::SphereSdf | ( | const RealVect & | a_center, |
| const Real & | a_radius, | ||
| const bool & | a_fluidInside | ||
| ) |
Constructor.
| [in] | a_center | Sphere center |
| [in] | a_radius | Sphere radius |
| [in] | a_fluidInside | Fluid on inside or not. |
Copy constructor.
| [in] | a_inputIF | Input cylinder |
Get distance to sphere.
| [in] | a_point | Physical position. |