Peano
Loading...
Searching...
No Matches
toolbox::curvi::BlockBoundary Class Reference

#include <BlockBoundary.h>

Collaboration diagram for toolbox::curvi::BlockBoundary:

Public Types

enum  BlockFace {
  LEFT = 0 , RIGHT = 1 , BOTTOM = 2 , TOP = 3 ,
  FRONT = 4 , BACK = 5
}
 

Public Member Functions

 BlockBoundary (Coordinate a_coords[3])
 
 BlockBoundary (Coordinate c0, Coordinate c1, Coordinate c2)
 
 BlockBoundary (Face topography, bool top, int n_depth, double depth)
 
double & operator() (BlockFace face, Coordinate coord, int j, int i)
 
const Face & getFace (BlockFace face)
 
const Face & getFace (Coordinate coord, bool upper)
 
void setFace (BlockFace face, const Face &other)
 
void setFace (Coordinate coord, bool upper, Face other)
 
void split (Face &face, BlockBoundary &left, BlockBoundary &right)
 
void setCoord (Coordinate a_coords[3])
 
void getCoord (Coordinate a_coords[3])
 
Coordinate getCoord (int i)
 
void setIndexOffset (int a_index_offset[3])
 
void setIndexSize (int a_index_size[3])
 
void getIndexOffset (int a_index_offset[3])
 
int getIndexOffset (Coordinate coord)
 
void getIndexSize (int a_index_size[3])
 
int getIndexSize (Coordinate coord)
 
void getBoundingBox (double offset[3], double size[3])
 
void toNetCDF (std::string prefix)
 
FaceBoundary setupSplittingFace (Coordinate cycx[2], int fault_index, double fault_position, int indexOffset_fault[3])
 
std::string toString (int depth=0)
 
std::string printFaces ()
 
void checkConformity ()
 

Private Attributes

Face left_face
 
Face right_face
 
Face bottom_face
 
Face top_face
 
Face front_face
 
Face back_face
 
int index_offset [3]
 
int index_size [3]
 
Coordinate coords [3]
 

Detailed Description

Definition at line 17 of file BlockBoundary.h.

Member Enumeration Documentation

◆ BlockFace

Enumerator
LEFT 
RIGHT 
BOTTOM 
TOP 
FRONT 
BACK 

Definition at line 20 of file BlockBoundary.h.

Constructor & Destructor Documentation

◆ BlockBoundary() [1/3]

toolbox::curvi::BlockBoundary::BlockBoundary ( Coordinate  a_coords[3])

◆ BlockBoundary() [2/3]

toolbox::curvi::BlockBoundary::BlockBoundary ( Coordinate  c0,
Coordinate  c1,
Coordinate  c2 
)

◆ BlockBoundary() [3/3]

toolbox::curvi::BlockBoundary::BlockBoundary ( Face  topography,
bool  top,
int  n_depth,
double  depth 
)

Member Function Documentation

◆ checkConformity()

void toolbox::curvi::BlockBoundary::checkConformity ( )

◆ getBoundingBox()

void toolbox::curvi::BlockBoundary::getBoundingBox ( double  offset[3],
double  size[3] 
)

◆ getCoord() [1/2]

void toolbox::curvi::BlockBoundary::getCoord ( Coordinate  a_coords[3])

◆ getCoord() [2/2]

Coordinate toolbox::curvi::BlockBoundary::getCoord ( int  i)

◆ getFace() [1/2]

const Face & toolbox::curvi::BlockBoundary::getFace ( BlockFace  face)

◆ getFace() [2/2]

const Face & toolbox::curvi::BlockBoundary::getFace ( Coordinate  coord,
bool  upper 
)

◆ getIndexOffset() [1/2]

int toolbox::curvi::BlockBoundary::getIndexOffset ( Coordinate  coord)

◆ getIndexOffset() [2/2]

void toolbox::curvi::BlockBoundary::getIndexOffset ( int  a_index_offset[3])

◆ getIndexSize() [1/2]

int toolbox::curvi::BlockBoundary::getIndexSize ( Coordinate  coord)

◆ getIndexSize() [2/2]

void toolbox::curvi::BlockBoundary::getIndexSize ( int  a_index_size[3])

◆ operator()()

double & toolbox::curvi::BlockBoundary::operator() ( BlockFace  face,
Coordinate  coord,
int  j,
int  i 
)

◆ printFaces()

std::string toolbox::curvi::BlockBoundary::printFaces ( )

◆ setCoord()

void toolbox::curvi::BlockBoundary::setCoord ( Coordinate  a_coords[3])

◆ setFace() [1/2]

void toolbox::curvi::BlockBoundary::setFace ( BlockFace  face,
const Face &  other 
)

◆ setFace() [2/2]

void toolbox::curvi::BlockBoundary::setFace ( Coordinate  coord,
bool  upper,
Face  other 
)

◆ setIndexOffset()

void toolbox::curvi::BlockBoundary::setIndexOffset ( int  a_index_offset[3])

◆ setIndexSize()

void toolbox::curvi::BlockBoundary::setIndexSize ( int  a_index_size[3])

◆ setupSplittingFace()

FaceBoundary toolbox::curvi::BlockBoundary::setupSplittingFace ( Coordinate  cycx[2],
int  fault_index,
double  fault_position,
int  indexOffset_fault[3] 
)

◆ split()

void toolbox::curvi::BlockBoundary::split ( Face &  face,
BlockBoundary &  left,
BlockBoundary &  right 
)

◆ toNetCDF()

void toolbox::curvi::BlockBoundary::toNetCDF ( std::string  prefix)

◆ toString()

std::string toolbox::curvi::BlockBoundary::toString ( int  depth = 0)

Field Documentation

◆ back_face

Face toolbox::curvi::BlockBoundary::back_face
private

Definition at line 73 of file BlockBoundary.h.

◆ bottom_face

Face toolbox::curvi::BlockBoundary::bottom_face
private

Definition at line 70 of file BlockBoundary.h.

◆ coords

Coordinate toolbox::curvi::BlockBoundary::coords[3]
private

Definition at line 77 of file BlockBoundary.h.

◆ front_face

Face toolbox::curvi::BlockBoundary::front_face
private

Definition at line 72 of file BlockBoundary.h.

◆ index_offset

int toolbox::curvi::BlockBoundary::index_offset[3]
private

Definition at line 75 of file BlockBoundary.h.

◆ index_size

int toolbox::curvi::BlockBoundary::index_size[3]
private

Definition at line 76 of file BlockBoundary.h.

◆ left_face

Face toolbox::curvi::BlockBoundary::left_face
private

Definition at line 68 of file BlockBoundary.h.

◆ right_face

Face toolbox::curvi::BlockBoundary::right_face
private

Definition at line 69 of file BlockBoundary.h.

◆ top_face

Face toolbox::curvi::BlockBoundary::top_face
private

Definition at line 71 of file BlockBoundary.h.


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