chombo-discharge
Public Member Functions | Protected Attributes | List of all members
SphereSdf Class Reference

Signed distance function for sphere. More...

#include <CD_SphereSdf.H>

Inheritance diagram for SphereSdf:
Inheritance graph
[legend]
Collaboration diagram for SphereSdf:
Collaboration graph
[legend]

Public Member Functions

 SphereSdf (const RealVect &a_center, const Real &a_radius, const bool &a_fluidInside)
 Constructor. More...
 
 SphereSdf (const SphereSdf &a_inputIF)
 Copy constructor. More...
 
virtual ~SphereSdf ()
 Destructor.
 
virtual Real value (const RealVect &a_point) const
 Get distance to sphere. More...
 
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

◆ value()

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

Get distance to sphere.

Parameters
[in]a_pointPhysical position.

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