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

Cylinder object with rounded edges (no endcaps) More...

#include <CD_RoundedCylinderIF.H>

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

Public Member Functions

 RoundedCylinderIF (const RealVect a_center1, const RealVect a_center2, const Real a_radius, const Real a_curv, const bool a_fluidInside)
 Constructor. More...
 
 RoundedCylinderIF (const RoundedCylinderIF &a_inputIF)
 Copy constructor. More...
 
virtual Real value (const RealVect &a_point) const override
 Get distance to object. More...
 
virtual BaseIF * newImplicitFunction () const override
 IF factory method.
 

Protected Member Functions

void makeBaseIF ()
 Make the implicit function.
 

Protected Attributes

RealVect m_center1
 Cylinder center.
 
RealVect m_center2
 Cylinder center.
 
Real m_length
 Cylinder length.
 
Real m_radius
 Cylinder radius.
 
Real m_curv
 Radius of curvature.
 
bool m_fluidInside
 Inside or outside domain.
 
RefCountedPtr< BaseIF > m_baseIF
 Implicit function.
 

Detailed Description

Cylinder object with rounded edges (no endcaps)

Constructor & Destructor Documentation

◆ RoundedCylinderIF() [1/2]

RoundedCylinderIF::RoundedCylinderIF ( const RealVect  a_center1,
const RealVect  a_center2,
const Real  a_radius,
const Real  a_curv,
const bool  a_fluidInside 
)

Constructor.

Parameters
[in]a_center1Cylinder endpoint
[in]a_center2Other cylinder endpoint
[in]a_radiusCylinder radius
[in]a_curvRadius of curvature
[in]a_fluidInsideDomain on inside or outside

◆ RoundedCylinderIF() [2/2]

RoundedCylinderIF::RoundedCylinderIF ( const RoundedCylinderIF a_inputIF)

Copy constructor.

Parameters
[in]a_inputIFInput cylinder

Member Function Documentation

◆ value()

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

Get distance to object.

Parameters
[in]a_pointPhysical position.

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