template<
short_t d, class T>
class gismo::gsHBoxContainer< d, T >
The Hierarchical Box Container provides a container for gsHBox objects.
The \red gsHBoxContainer stores gsHBox objects in a smart way. The container allows to perform routines from the gsHBox (e.g. gsHBox::getParent) on a group of gsHBox. In addition, it can be used to pass multiple gsHBox objects efficiently.
The gsHBoxContainer provides a function to convert it to so-called RefBoxes. RefBoxes are boxes defined using a std::vector<index_t> to pass refinement boxes to gsHTensorBasis. Furthermore, UnitBoxes can also be produced, which basically means that every contained gsHBox is split such that it contains a single element.
- Template Parameters
-
| d | { description } |
| T | { description } |
|
|
void | add (const Container &boxes) |
| | Adds boxes stored in a container.
|
| |
|
void | add (const gsHBox< d, T > &box) |
| | Adds a single box.
|
| |
|
void | add (const gsHBoxContainer< d, T > &boxes) |
| | Adds boxes stored in a gsHBoxContainer.
|
| |
|
void | add (const HContainer &boxes) |
| | Adds boxes stored in a hierarchical container.
|
| |
|
HContainer & | boxes () |
| | Returns a heirarchical container with the boxes stored in the container.
|
| |
|
const HContainer & | boxes () const |
| | Returns a heirarchical container with the boxes stored in the container.
|
| |
|
bool | check () |
| | Checks if the hierarchical container is correctly defined.
|
| |
|
Container & | getActivesOnLevel (index_t lvl) |
| | Returns the actives on level.
|
| |
|
const Container & | getActivesOnLevel (index_t lvl) const |
| | Returns the actives on level.
|
| |
|
Container | getChildren () const |
| | Gives a hierarchical container with all the children of the boxes stored in this.
|
| |
|
Container | getParents () const |
| | Gives a hierarchical container with all the parents of the boxes stored in this.
|
| |
| | gsHBoxContainer (const Container &boxes) |
| | Takes a Container (which can have boxes with different levels)
|
| |
|
void | makeUnique () |
| | Removes duplicate boxes.
|
| |
|
void | makeUnitBoxes () |
| | Transforms/splits the boxes inside the container to unit boxes.
|
| |
|
void | markAdmissible (index_t m) |
| | Applies _markAdmissible on this.
|
| |
|
void | markHadmissible (index_t m) |
| | Applies _markHadmissible on this.
|
| |
|
void | markTadmissible (index_t m) |
| | Applies _markTadmissible on this.
|
| |
|
index_t | maxLevel () |
| | Returns the maximum level in the container.
|
| |
|
size_t | nLevels () const |
| | Returns the number of levels stored in the container.
|
| |
| gsHBoxContainer< d, T > | patch (const index_t patchID) const |
| | Returns all the boxes of patchID.
|
| |
|
std::ostream & | print (std::ostream &os) const |
| | Prints the container.
|
| |
|
size_t | size (index_t level) const |
| | Returns the size of the container on level.
|
| |
| RefBox | toBoxes (const index_t patchID=-1) const |
| | Returns boxes representation of the object.
|
| |
| Container | toContainer () const |
| | Returns a container representation of the object.
|
| |
| gsMatrix< T > | toCoords (const index_t patchID=-1) const |
| | Returns box coordinate represenation of the object.
|
| |
| RefBox | toCrsBoxes (const index_t patchID=-1) const |
| | Returns coarsening box representation of the object.
|
| |
| RefBox | toRefBoxes (const index_t patchID=-1) const |
| | Returns refinement box representation of the object.
|
| |
|
size_t | totalSize () const |
| | Returns the total number of boxes.
|
| |
| Container | toUnitBoxes () const |
| | Transforms the boxes in container as unit boxes.
|
| |
| HContainer | toUnitHBoxes () const |
| | Transforms the boxes in container as unit boxes.
|
| |
|
| bool | _check (const HContainer &boxes) |
| | Checks the container.
|
| |
|
void | _makeLevel (index_t lvl) |
| | Constructs a new level.
|
| |
| void | _markAdmissible (HContainer &marked, index_t m) const |
| | Performs T/H-admissible refinement.
|
| |
| void | _markHadmissible (HContainer &marked, index_t m) const |
| | Performs H-admissible refinement.
|
| |
| HContainer | _markHrecursive (HContainer &marked, index_t lvl, index_t m) const |
| | Marks H-recursively.
|
| |
|
void | _markHrecursive (index_t lvl, index_t m) |
| | Applies markHrecursive on this.
|
| |
| HContainer | _markRecursive (HContainer &marked, index_t lvl, index_t m) const |
| | Marks T-recursively.
|
| |
|
void | _markRecursive (index_t lvl, index_t m) |
| | Applies markTrecursive on this.
|
| |
| void | _markTadmissible (HContainer &marked, index_t m) const |
| | Performs T-admissible refinement.
|
| |
| HContainer | _markTrecursive (HContainer &marked, index_t lvl, index_t m) const |
| | Marks T-recursively.
|
| |