PLaSK library
Loading...
Searching...
No Matches
plask::RectilinearMesh3D::Element Class Reference

Represent FEM-like element in Rectilinear. More...

#include <plask/mesh/rectilinear3d.hpp>

Public Member Functions

 Element (const RectilinearMesh3D &mesh, std::size_t index0, std::size_t index1, std::size_t index2)
 Construct element using mesh and element indexes.
 
 Element (const RectilinearMesh3D &mesh, std::size_t elementIndex)
 Construct element using mesh and element index.
 
std::size_t getIndex0 () const
 
std::size_t getIndex1 () const
 
std::size_t getIndex2 () const
 
std::size_t getLowerIndex0 () const
 
std::size_t getLowerIndex1 () const
 
std::size_t getLowerIndex2 () const
 
double getLower0 () const
 
double getLower1 () const
 
double getLower2 () const
 
std::size_t getUpperIndex0 () const
 
std::size_t getUpperIndex1 () const
 
std::size_t getUpperIndex2 () const
 
double getUpper0 () const
 
double getUpper1 () const
 
double getUpper2 () const
 
double getSize0 () const
 
double getSize1 () const
 
double getSize2 () const
 
Vec< 3, doublegetSize () const
 
Vec< 3, doublegetMidpoint () const
 
std::size_t getIndex () const
 
std::size_t getLoLoLoIndex () const
 
std::size_t getUpLoLoIndex () const
 
std::size_t getLoUpLoIndex () const
 
std::size_t getUpUpLoIndex () const
 
std::size_t getLoLoUpIndex () const
 
std::size_t getUpLoUpIndex () const
 
std::size_t getLoUpUpIndex () const
 
std::size_t getUpUpUpIndex () const
 
Vec< 3, doublegetLoLoLo () const
 
Vec< 3, doublegetUpLoLo () const
 
Vec< 3, doublegetLoUpLo () const
 
Vec< 3, doublegetUpUpLo () const
 
Vec< 3, doublegetLoLoUp () const
 
Vec< 3, doublegetUpLoUp () const
 
Vec< 3, doublegetLoUpUp () const
 
Vec< 3, doublegetUpUpUp () const
 
Box3D toBox () const
 
bool contains (Vec< 3, double > p) const
 Check if point p is included in rectangle represented by this element.
 

Detailed Description

Represent FEM-like element in Rectilinear.

Definition at line 63 of file rectilinear3d.hpp.

Constructor & Destructor Documentation

◆ Element() [1/2]

plask::RectilinearMesh3D::Element::Element ( const RectilinearMesh3D mesh,
std::size_t  index0,
std::size_t  index1,
std::size_t  index2 
)
inline

Construct element using mesh and element indexes.

Parameters
meshmesh, this element is valid up to time of this mesh life
index0,index1,index2axis 0, 1 and 2 indexes of element (equal to low corrner mesh indexes of element)

Definition at line 74 of file rectilinear3d.hpp.

◆ Element() [2/2]

plask::RectilinearMesh3D::Element::Element ( const RectilinearMesh3D mesh,
std::size_t  elementIndex 
)
inline

Construct element using mesh and element index.

Parameters
meshmesh, this element is valid up to time of this mesh life
elementIndexindex of element

Definition at line 81 of file rectilinear3d.hpp.

Member Function Documentation

◆ contains()

bool plask::RectilinearMesh3D::Element::contains ( Vec< 3, double p) const
inline

Check if point p is included in rectangle represented by this element.

Parameters
ppoint to check
Returns
true only if p is included in this

Definition at line 207 of file rectilinear3d.hpp.

◆ getIndex()

std::size_t plask::RectilinearMesh3D::Element::getIndex ( ) const
inline
Returns
index of this element

Definition at line 149 of file rectilinear3d.hpp.

◆ getIndex0()

std::size_t plask::RectilinearMesh3D::Element::getIndex0 ( ) const
inline
Returns
long index of the element

Definition at line 89 of file rectilinear3d.hpp.

◆ getIndex1()

std::size_t plask::RectilinearMesh3D::Element::getIndex1 ( ) const
inline
Returns
tran index of the element

Definition at line 92 of file rectilinear3d.hpp.

◆ getIndex2()

std::size_t plask::RectilinearMesh3D::Element::getIndex2 ( ) const
inline
Returns
vert index of the element

Definition at line 95 of file rectilinear3d.hpp.

◆ getLoLoLo()

Vec< 3, double > plask::RectilinearMesh3D::Element::getLoLoLo ( ) const
inline
Returns
position of the lower left back corner of this element

Definition at line 176 of file rectilinear3d.hpp.

◆ getLoLoLoIndex()

std::size_t plask::RectilinearMesh3D::Element::getLoLoLoIndex ( ) const
inline
Returns
index of the lower left back corner of this element

Definition at line 152 of file rectilinear3d.hpp.

◆ getLoLoUp()

Vec< 3, double > plask::RectilinearMesh3D::Element::getLoLoUp ( ) const
inline
Returns
position of the upper left back corner of this element

Definition at line 188 of file rectilinear3d.hpp.

◆ getLoLoUpIndex()

std::size_t plask::RectilinearMesh3D::Element::getLoLoUpIndex ( ) const
inline
Returns
index of the upper left back corner of this element

Definition at line 164 of file rectilinear3d.hpp.

◆ getLoUpLo()

Vec< 3, double > plask::RectilinearMesh3D::Element::getLoUpLo ( ) const
inline
Returns
position of the lower right back corner of this element

Definition at line 182 of file rectilinear3d.hpp.

◆ getLoUpLoIndex()

std::size_t plask::RectilinearMesh3D::Element::getLoUpLoIndex ( ) const
inline
Returns
index of the lower right back corner of this element

Definition at line 158 of file rectilinear3d.hpp.

◆ getLoUpUp()

Vec< 3, double > plask::RectilinearMesh3D::Element::getLoUpUp ( ) const
inline
Returns
position of the upper right back corner of this element

Definition at line 194 of file rectilinear3d.hpp.

◆ getLoUpUpIndex()

std::size_t plask::RectilinearMesh3D::Element::getLoUpUpIndex ( ) const
inline
Returns
index of the upper right back corner of this element

Definition at line 170 of file rectilinear3d.hpp.

◆ getLower0()

double plask::RectilinearMesh3D::Element::getLower0 ( ) const
inline
Returns
long coordinate of the back edge of the element

Definition at line 107 of file rectilinear3d.hpp.

◆ getLower1()

double plask::RectilinearMesh3D::Element::getLower1 ( ) const
inline
Returns
tran coordinate of the left edge of the element

Definition at line 110 of file rectilinear3d.hpp.

◆ getLower2()

double plask::RectilinearMesh3D::Element::getLower2 ( ) const
inline
Returns
vert coordinate of the bottom edge of the element

Definition at line 113 of file rectilinear3d.hpp.

◆ getLowerIndex0()

std::size_t plask::RectilinearMesh3D::Element::getLowerIndex0 ( ) const
inline
Returns
long index of the back edge of the element

Definition at line 98 of file rectilinear3d.hpp.

◆ getLowerIndex1()

std::size_t plask::RectilinearMesh3D::Element::getLowerIndex1 ( ) const
inline
Returns
tran index of the left edge of the element

Definition at line 101 of file rectilinear3d.hpp.

◆ getLowerIndex2()

std::size_t plask::RectilinearMesh3D::Element::getLowerIndex2 ( ) const
inline
Returns
vert index of the bottom edge of the element

Definition at line 104 of file rectilinear3d.hpp.

◆ getMidpoint()

Vec< 3, double > plask::RectilinearMesh3D::Element::getMidpoint ( ) const
inline
Returns
position of the middle of the element

Definition at line 146 of file rectilinear3d.hpp.

◆ getSize()

Vec< 3, double > plask::RectilinearMesh3D::Element::getSize ( ) const
inline
Returns
vector indicating size of the element

Definition at line 143 of file rectilinear3d.hpp.

◆ getSize0()

double plask::RectilinearMesh3D::Element::getSize0 ( ) const
inline
Returns
size of the element in the long direction

Definition at line 134 of file rectilinear3d.hpp.

◆ getSize1()

double plask::RectilinearMesh3D::Element::getSize1 ( ) const
inline
Returns
size of the element in the tran direction

Definition at line 137 of file rectilinear3d.hpp.

◆ getSize2()

double plask::RectilinearMesh3D::Element::getSize2 ( ) const
inline
Returns
size of the element in the vert direction

Definition at line 140 of file rectilinear3d.hpp.

◆ getUpLoLo()

Vec< 3, double > plask::RectilinearMesh3D::Element::getUpLoLo ( ) const
inline
Returns
position of the lower left front corner of this element

Definition at line 179 of file rectilinear3d.hpp.

◆ getUpLoLoIndex()

std::size_t plask::RectilinearMesh3D::Element::getUpLoLoIndex ( ) const
inline
Returns
index of the lower left front corner of this element

Definition at line 155 of file rectilinear3d.hpp.

◆ getUpLoUp()

Vec< 3, double > plask::RectilinearMesh3D::Element::getUpLoUp ( ) const
inline
Returns
position of the upper left front corner of this element

Definition at line 191 of file rectilinear3d.hpp.

◆ getUpLoUpIndex()

std::size_t plask::RectilinearMesh3D::Element::getUpLoUpIndex ( ) const
inline
Returns
index of the upper left front corner of this element

Definition at line 167 of file rectilinear3d.hpp.

◆ getUpper0()

double plask::RectilinearMesh3D::Element::getUpper0 ( ) const
inline
Returns
long coordinate of the front edge of the element

Definition at line 125 of file rectilinear3d.hpp.

◆ getUpper1()

double plask::RectilinearMesh3D::Element::getUpper1 ( ) const
inline
Returns
tran coordinate of the right edge of the element

Definition at line 128 of file rectilinear3d.hpp.

◆ getUpper2()

double plask::RectilinearMesh3D::Element::getUpper2 ( ) const
inline
Returns
vert coordinate of the top edge of the element

Definition at line 131 of file rectilinear3d.hpp.

◆ getUpperIndex0()

std::size_t plask::RectilinearMesh3D::Element::getUpperIndex0 ( ) const
inline
Returns
long index of the front edge of the element

Definition at line 116 of file rectilinear3d.hpp.

◆ getUpperIndex1()

std::size_t plask::RectilinearMesh3D::Element::getUpperIndex1 ( ) const
inline
Returns
tran index of the right edge of the element

Definition at line 119 of file rectilinear3d.hpp.

◆ getUpperIndex2()

std::size_t plask::RectilinearMesh3D::Element::getUpperIndex2 ( ) const
inline
Returns
vert index of the top edge of the element

Definition at line 122 of file rectilinear3d.hpp.

◆ getUpUpLo()

Vec< 3, double > plask::RectilinearMesh3D::Element::getUpUpLo ( ) const
inline
Returns
position of the lower right front corner of this element

Definition at line 185 of file rectilinear3d.hpp.

◆ getUpUpLoIndex()

std::size_t plask::RectilinearMesh3D::Element::getUpUpLoIndex ( ) const
inline
Returns
index of the lower right front corner of this element

Definition at line 161 of file rectilinear3d.hpp.

◆ getUpUpUp()

Vec< 3, double > plask::RectilinearMesh3D::Element::getUpUpUp ( ) const
inline
Returns
position of the upper right front corner of this element

Definition at line 197 of file rectilinear3d.hpp.

◆ getUpUpUpIndex()

std::size_t plask::RectilinearMesh3D::Element::getUpUpUpIndex ( ) const
inline
Returns
index of the upper right front corner of this element

Definition at line 173 of file rectilinear3d.hpp.

◆ toBox()

Box3D plask::RectilinearMesh3D::Element::toBox ( ) const
inline
Returns
this element as rectangular box

Definition at line 200 of file rectilinear3d.hpp.


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