11#ifndef GEOM_FRACTURE_H
12#define GEOM_FRACTURE_H
38 Fracture(
const std::vector<util::Point> *nodes,
39 const std::vector<std::vector<std::size_t>> *neighbor_list =
nullptr);
53 void setBondState(
const std::size_t &i,
const std::size_t &j,
const bool &state);
62 bool getBondState(
const std::size_t &i,
const std::size_t &j)
const;
70 const std::vector<uint8_t> &
getBonds(
const std::size_t &i)
const;
73 std::vector<uint8_t> &
getBonds(
const std::size_t &i);
82 std::string
printStr(
int nt = 0,
int lvl = 0)
const;
90 void print(
int nt = 0,
int lvl = 0)
const { std::cout <<
printStr(nt, lvl); }
A class for fracture state of bonds.
void setBondState(const std::size_t &i, const std::size_t &j, const bool &state)
Sets the bond state.
const std::vector< uint8_t > & getBonds(const std::size_t &i) const
Returns the list of bonds of node i.
bool getBondState(const std::size_t &i, const std::size_t &j) const
Read bond state.
void print(int nt=0, int lvl=0) const
Prints the information about the object.
std::vector< std::vector< uint8_t > > d_fracture
Vector which stores the state of bonds.
std::string printStr(int nt=0, int lvl=0) const
Returns the string containing printable information about the object.
Collection of methods and data related to geometry.