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

Class for defining a two- or three-dimensional box with arbitrary centroid and orientation. More...

#include <CD_BoxSdf.H>

Inheritance diagram for BoxSdf:
Collaboration diagram for BoxSdf:

Public Member Functions

 BoxSdf (const RealVect &a_loCorner, const RealVect &a_hiCorner, const bool &a_fluidInside)
 Base constructor.
 BoxSdf (const BoxSdf &a_inputIF)
 Copy constructor.
virtual ~BoxSdf ()
 Destructor.
virtual Real value (const RealVect &a_pos) const
 Test if object is on inside or outside.
virtual BaseIF * newImplicitFunction () const
 IF Factory method.

Protected Attributes

RealVect m_loCorner
 Lower left corner.
RealVect m_hiCorner
 Upper right corner.
bool m_fluidInside
 Fluid inside box or not.

Detailed Description

Class for defining a two- or three-dimensional box with arbitrary centroid and orientation.

Constructor & Destructor Documentation

◆ BoxSdf() [1/2]

BoxSdf::BoxSdf ( const RealVect & a_loCorner,
const RealVect & a_hiCorner,
const bool & a_fluidInside )

Base constructor.

Parameters
[in]a_loCornerLower left corner
[in]a_hiCornerUpper right corner
[in]a_fluidInsideFluid inside

◆ BoxSdf() [2/2]

BoxSdf::BoxSdf ( const BoxSdf & a_inputIF)

Copy constructor.

Parameters
[in]a_inputIFAnother BoxSdf

Member Function Documentation

◆ newImplicitFunction()

BaseIF * BoxSdf::newImplicitFunction ( ) const
virtual

IF Factory method.

Returns
New copy of this implicit function

◆ value()

Real BoxSdf::value ( const RealVect & a_pos) const
virtual

Test if object is on inside or outside.

Returns
Function value at the given point
Parameters
[in,out]a_posDescription

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