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

Signed distance function for a torus (oriented along z). More...

#include <CD_TorusSdf.H>

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

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.
 

Detailed Description

Signed distance function for a torus (oriented along z).

Constructor & Destructor Documentation

◆ TorusSdf() [1/2]

TorusSdf::TorusSdf ( const RealVect  a_center,
const Real  a_majorRadius,
const Real  a_minorRadius,
const bool  a_fluidInside 
)

Constructor.

Parameters
[in]a_centerCenter
[in]a_majorRadiusMajor radius
[in]a_minorRadiusMinor radius
[in]a_fluidInsideFluid on inside of or not

◆ TorusSdf() [2/2]

TorusSdf::TorusSdf ( const TorusSdf a_inputIF)

Copy constructor.

Parameters
[in]a_inputIFInput cylinder

Member Function Documentation

◆ value()

Real TorusSdf::value ( const RealVect &  a_point) const
overridevirtual

Test whether inside or not.

Parameters
[in]a_pointPhysical position.

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