NLMech  0.1.0
geometry::ComputeInterior Class Reference

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

#include <interiorFlags.h>

Inheritance diagram for geometry::ComputeInterior:
Inheritance graph
Collaboration diagram for geometry::ComputeInterior:
Collaboration graph

Public Member Functions

 ComputeInterior (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...
 
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 checks the relative position of node on the fly instead of dedicating a data for the flags.

Constructor & Destructor Documentation

◆ ComputeInterior()

geometry::ComputeInterior::ComputeInterior ( 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.

Parameters
deckInput deck which contains user-specified information
bboxBounding box to determine the location of nodes relative to the boundary
no_fail_regionsNo fail regions other than the boundary of domain

Member Function Documentation

◆ getInteriorFlag()

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

Returns true if node is in interior, false otherwise.

This function computes and checks the relative position of x with respect to the boundary.

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

Reimplemented from geometry::BaseInterior.

Here is the call graph for this function:

◆ print()

void geometry::ComputeInterior::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::ComputeInterior::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: