chombo-discharge
Loading...
Searching...
No Matches
RoundedBoxIF Class Reference

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

#include <CD_RoundedBoxIF.H>

Inheritance diagram for RoundedBoxIF:
Collaboration diagram for RoundedBoxIF:

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.
 RoundedBoxIF (const RoundedBoxIF &a_inputIF)
 Copy constructor.
virtual ~RoundedBoxIF ()
 Destructor.
virtual Real value (const RealVect &a_point) const override
 Get distance to object.
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

◆ newImplicitFunction()

BaseIF * RoundedBoxIF::newImplicitFunction ( ) const
overridevirtual

IF factory method.

Returns
New copy of this implicit function

◆ value()

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

Get distance to object.

Parameters
[in]a_pointPhysical position.
Returns
Function value at the given point

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