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

A box with rounded corners and edges. More...

#include <CD_RoundedBoxIF.H>

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

Public Member Functions

 RoundedBoxIF ()=delete
 Disallowed weak construction.
 
 RoundedBoxIF (const RealVect a_loCorner, const RealVect a_hiCorner, const Real a_curvature, const bool a_fluidInside)
 Constructor. More...
 
 RoundedBoxIF (const RoundedBoxIF &a_inputIF)
 Copy constructor. More...
 
virtual ~RoundedBoxIF ()
 Destructor.
 
virtual Real value (const RealVect &a_point) const override
 Get distance to object. More...
 
virtual BaseIF * newImplicitFunction () const override
 IF factory method.
 

Protected Attributes

bool m_fluidInside
 Fluid on inside or not.
 
RefCountedPtr< BaseIF > m_baseIF
 Implicit function (which is union between planes)
 

Detailed Description

A box with rounded corners and edges.

Constructor & Destructor Documentation

◆ RoundedBoxIF() [1/2]

RoundedBoxIF::RoundedBoxIF ( const RealVect  a_loCorner,
const RealVect  a_hiCorner,
const Real  a_curvature,
const bool  a_fluidInside 
)

Constructor.

Parameters
[in]a_loCornerUpper right corner of the object
[in]a_hiCornerLower left corner of the object
[in]a_curvatureRadius of curvature on edges and corners
[in]a_fluidInsideFluid on inside (true) or outside (false)

◆ RoundedBoxIF() [2/2]

RoundedBoxIF::RoundedBoxIF ( const RoundedBoxIF a_inputIF)

Copy constructor.

Parameters
[in]a_inputIFOther box

Member Function Documentation

◆ value()

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