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

Declaration of a cylinder IF class. More...

#include <CD_CylinderSdf.H>

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

Public Member Functions

 CylinderSdf (const RealVect &a_center1, const RealVect &a_center2, const Real &a_radius, const bool &a_fluidInside)
 Constructor. More...
 
 CylinderSdf (const CylinderSdf &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_endPoint1
 One end poitn.
 
RealVect m_endPoint2
 The other end point.
 
RealVect m_top
 Top.
 
RealVect m_axis
 Top.
 
RealVect m_center
 Center.
 
Real m_length
 Cylinder length.
 
Real m_radius
 Cylinder radius.
 
bool m_fluidInside
 Inside or outside domain.
 

Detailed Description

Declaration of a cylinder IF class.

Constructor & Destructor Documentation

◆ CylinderSdf() [1/2]

CylinderSdf::CylinderSdf ( const RealVect &  a_center1,
const RealVect &  a_center2,
const Real &  a_radius,
const bool &  a_fluidInside 
)

Constructor.

Parameters
[in]a_center1Cylinder center
[in]a_center2Cylinder center
[in]a_radiusCylinder radius
[in]a_insideDomain on inside or outside

◆ CylinderSdf() [2/2]

CylinderSdf::CylinderSdf ( const CylinderSdf a_inputIF)

Copy constructor.

Parameters
[in]a_inputIFInput cylinder

Member Function Documentation

◆ value()

Real CylinderSdf::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: