|
chombo-discharge
|
Rectangular box in real space. More...
#include <CD_RealBox.H>
Public Member Functions | |
| RealBox () | |
| Default constructor. Must subsequently set the corners. | |
| RealBox (const RealVect a_lo, const RealVect a_hi) | |
| Full constructor. Sets corners from input arguments. | |
| RealBox (const Box a_box, const RealVect a_probLo, const Real a_dx) | |
| Full constructor. Sets corners from input box. | |
| ~RealBox () | |
| Destructor (does nothing) | |
| RealVect | getLo () const |
| Get low corner. | |
| RealVect | getHi () const |
| Get high corner. | |
| Vector< RealVect > | getCorners () const |
| Get all the corners of this box (4 in 2D, 8 in 3D);. | |
| bool | intersect (const RealBox &a_box) const |
| Check if a_box intersects this box. This is done by checking if. | |
| bool | isPointInside (const RealVect a_point) const |
| Check if a_point is inside this box. | |
| bool | isBoxInside (const RealBox &a_box) const |
| Check if a_box is completely inside this box. For this to be true, all the corners of a_box must be completely inside this box. | |
Protected Attributes | |
| RealVect | m_lo |
| Low corner. | |
| RealVect | m_hi |
| High corner. | |
Rectangular box in real space.
Full constructor. Sets corners from input arguments.
| [in] | a_lo | Low corner |
| [in] | a_hi | High corners |
Full constructor. Sets corners from input box.
| [in] | a_box | IntVect-box |
| [in] | a_probLo | Lower-left corner of physical domain |
| [in] | a_dx | Grid resolution. |
This sets the low corner as a_probLo + a_box.lowEnd()*a_dx
Check if a_box intersects this box. This is done by checking if.
| [in] | a_box | Other box |
Check if a_box is completely inside this box. For this to be true, all the corners of a_box must be completely inside this box.
| [in] | a_box | Other box. |
Check if a_point is inside this box.
| [in] | a_point | Input point |