NLMech  0.1.0
geometry::DataInterior Class Reference

A class to check if the node is in interior or exterior. More...

#include <interiorFlags.h>

Inheritance diagram for geometry::DataInterior:
Inheritance graph
Collaboration diagram for geometry::DataInterior:
Collaboration graph

Public Member Functions

 DataInterior (inp::InteriorFlagsDeck *deck, const std::vector< util::Point3 > *nodes, std::pair< std::vector< double >, std::vector< double >> bbox, std::vector< std::pair< std::string, std::vector< double >>> no_fail_regions)
 Constructor. More...
 
bool getInteriorFlag (const size_t &i, const util::Point3 &x) override
 Returns true if node is in interior, false otherwise. More...
 
void print (int nt=0, int lvl=0) const
 Prints the information about the instance of the object. More...
 
std::string printStr (int nt=0, int lvl=0) const
 Returns the string containing information about the instance of the object. More...
 
- Public Member Functions inherited from geometry::BaseInterior
 BaseInterior (inp::InteriorFlagsDeck *deck, std::pair< std::vector< double >, std::vector< double >> bbox, std::vector< std::pair< std::string, std::vector< double >>> no_fail_regions)
 Constructor. More...
 
void print (int nt=0, int lvl=0) const
 Prints the information about the instance of the object. More...
 
std::string printStr (int nt=0, int lvl=0) const
 Returns the string containing information about the instance of the object. More...
 

Detailed Description

A class to check if the node is in interior or exterior.

This class stores the interior flags of all nodes so that the flags are not computed every time it is needed.

Constructor & Destructor Documentation

◆ DataInterior()

geometry::DataInterior::DataInterior ( inp::InteriorFlagsDeck deck,
const std::vector< util::Point3 > *  nodes,
std::pair< std::vector< double >, std::vector< double >>  bbox,
std::vector< std::pair< std::string, std::vector< double >>>  no_fail_regions 
)

Constructor.

Parameters
deckInput deck which contains user-specified information
nodesPointer to the list of nodal coordinates
bboxBounding box to determine the location of nodes relative to the boundary
no_fail_regionsNo fail regions other than the boundary of domain
Here is the call graph for this function:

Member Function Documentation

◆ getInteriorFlag()

bool geometry::DataInterior::getInteriorFlag ( const size_t &  i,
const util::Point3 x 
)
overridevirtual

Returns true if node is in interior, false otherwise.

This function simply looks up at the stored bit corresponding to the node and returns true and false depending on whether bit is 0 or 1.

Parameters
iNodal id
xNodal coordinate
Returns
True/False If node is in interior or exterior

Reimplemented from geometry::BaseInterior.

◆ print()

void geometry::DataInterior::print ( int  nt = 0,
int  lvl = 0 
) const
inline

Prints the information about the instance of the object.

Parameters
ntNumber of tabs to append before each line of string
lvlLevel of information sought (higher level means more information)
Here is the call graph for this function:

◆ printStr()

std::string geometry::DataInterior::printStr ( int  nt = 0,
int  lvl = 0 
) const

Returns the string containing information about the instance of the object.

Parameters
ntNumber of tabs to append before each line of string
lvlLevel of information sought (higher level means more information)
Returns
string String containing information about this object

Referenced by print().

Here is the call graph for this function:
Here is the caller graph for this function:

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