NLMech  0.1.0
geometry::InteriorFlags Class Reference

A class to store interior/exterior flags of node. More...

#include <interiorFlags.h>

Collaboration diagram for geometry::InteriorFlags:
Collaboration graph

Public Member Functions

bool getInteriorFlag (const size_t &i, const util::Point3 &x)
 Returns true for all the nodes. More...
 
 InteriorFlags (inp::InteriorFlagsDeck *deck, const std::vector< util::Point3 > *nodes, const std::pair< std::vector< double >, std::vector< double >> &bbox)
 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...
 

Private Attributes

BaseInteriord_interior_p
 Class providing interior flags and method.
 

Detailed Description

A class to store interior/exterior flags of node.

In this class we store the the flag which indicates if the node is inside the material domain or if it is near the boundary. This required to implement no-fail region in Peridynamics.

Constructor & Destructor Documentation

◆ InteriorFlags()

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

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

Member Function Documentation

◆ getInteriorFlag()

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

Returns true for all the nodes.

Parameters
iNodal id
xNodal coordinate
Returns
Flag True if node is in interior otherwise false

◆ print()

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