chombo-discharge
Loading...
Searching...
No Matches
SphereSdf Class Reference

Signed distance function for sphere. More...

#include <CD_SphereSdf.H>

Inheritance diagram for SphereSdf:
Collaboration diagram for SphereSdf:

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.

Detailed Description

Signed distance function for sphere.

Constructor & Destructor Documentation

◆ SphereSdf() [1/2]

SphereSdf::SphereSdf ( const RealVect & a_center,
const Real & a_radius,
const bool & a_fluidInside )

Constructor.

Parameters
[in]a_centerSphere center
[in]a_radiusSphere radius
[in]a_fluidInsideFluid on inside or not.

◆ SphereSdf() [2/2]

SphereSdf::SphereSdf ( const SphereSdf & a_inputIF)

Copy constructor.

Parameters
[in]a_inputIFInput cylinder

Member Function Documentation

◆ newImplicitFunction()

BaseIF * SphereSdf::newImplicitFunction ( ) const
virtual

IF factory method.

Returns
New copy of this implicit function

◆ value()

Real SphereSdf::value ( const RealVect & a_point) const
virtual

Get distance to sphere.

Parameters
[in]a_pointPhysical position.
Returns
Function value at the given point

The documentation for this class was generated from the following files: