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

Declaration of a two-sheet hyperboloid. More...

#include <CD_HyperboloidTwoIF.H>

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

Public Member Functions

 HyperboloidTwoIF (const RealVect &a_radii, const RealVect &a_center, const bool &a_inside)
 Constructor. More...
 
 HyperboloidTwoIF (const HyperboloidTwoIF &a_inputIF)
 Copy constructor. More...
 
virtual Real value (const RealVect &a_point) const
 Test whether inside or not. More...
 
virtual BaseIF * newImplicitFunction () const
 IF factory method.
 

Protected Attributes

RealVect m_radii
 Hyperboloid radii.
 
RealVect m_radii2
 Hyperboloid radii squared.
 
RealVect m_sign
 Holder for sign convention.
 
RealVect m_center
 Hyperboloid center.
 
bool m_inside
 Inside or outside domain.
 

Detailed Description

Declaration of a two-sheet hyperboloid.

The implicit function used for the sheets is

\[ \frac{x^2}{a^2} + \frac{y^2}{b^2} - \frac{z^2}{c^2} = -1 \]

Constructor & Destructor Documentation

◆ HyperboloidTwoIF() [1/2]

HyperboloidTwoIF::HyperboloidTwoIF ( const RealVect &  a_radii,
const RealVect &  a_center,
const bool &  a_inside 
)

Constructor.

Parameters
[in]a_radiiHyperboloid radii
[in]a_centerHyperboloid center
[in]a_insideDomain on inside or outside

◆ HyperboloidTwoIF() [2/2]

HyperboloidTwoIF::HyperboloidTwoIF ( const HyperboloidTwoIF a_inputIF)

Copy constructor.

Parameters
[in]a_inputIFInput one-sheeted hyperboloid

Member Function Documentation

◆ value()

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

Test whether inside or not.

Parameters
[in]a_pointPhysical position.

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