Rectangular box in real space.
More...
#include <CD_RealBox.H>
|
|
| 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_origin, const Real a_dx) |
| | Full constructor. Sets corners from input box.
|
| |
|
| ~RealBox ()=default |
| | 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.
|
| |
|
|
RealVect | m_lo |
| | Low corner.
|
| |
|
RealVect | m_hi |
| | High corner.
|
| |
Rectangular box in real space.
◆ RealBox() [1/2]
| RealBox::RealBox |
( |
const RealVect & |
a_lo, |
|
|
const RealVect & |
a_hi |
|
) |
| |
Full constructor. Sets corners from input arguments.
- Parameters
-
| [in] | a_lo | Low corner |
| [in] | a_hi | High corners |
◆ RealBox() [2/2]
| RealBox::RealBox |
( |
const Box & |
a_box, |
|
|
const RealVect & |
a_origin, |
|
|
const Real |
a_dx |
|
) |
| |
Full constructor. Sets corners from input box.
- Parameters
-
| [in] | a_box | IntVect-box |
| [in] | a_origin | Lower-left corner of physical domain |
| [in] | a_dx | Grid resolution. |
This sets the low corner as a_probLo + a_box.lowEnd()*a_dx
◆ getCorners()
| Vector< RealVect > RealBox::getCorners |
( |
| ) |
const |
Get all the corners of this box (4 in 2D, 8 in 3D);.
- Returns
- Corners
◆ getHi()
| RealVect RealBox::getHi |
( |
| ) |
const |
Get high corner.
- Returns
- Hi
◆ getLo()
| RealVect RealBox::getLo |
( |
| ) |
const |
Get low corner.
- Returns
- Lo
◆ intersect()
| bool RealBox::intersect |
( |
const RealBox & |
a_box | ) |
const |
Check if a_box intersects this box. This is done by checking if.
- Parameters
-
- Returns
- True if intersection found, false otherwise
◆ isBoxInside()
| bool RealBox::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.
- Parameters
-
- Returns
- True if box inside, false otherwise
◆ isPointInside()
| bool RealBox::isPointInside |
( |
const RealVect & |
a_point | ) |
const |
Check if a_point is inside this box.
- Parameters
-
- Returns
- True if point inside, false otherwise
The documentation for this class was generated from the following files: