5#ifndef __CGAL_CRACK_GROWTH_HPP__
6#define __CGAL_CRACK_GROWTH_HPP__
10#include <unordered_map>
25 using Pair = std::array<int, 2>;
28 EntityHandle edge,
const Range &
crack, std::array<double, 3> &direction)>;
75 const Range &front,
double &value)
const;
124 EntityHandle &edge)
const;
128 const Range &front, std::vector<char> &dropped,
129 Step &step, EntityHandle &edge);
136 std::vector<CGALTools::CrackExtensionSettings>
advancePhases()
const;
145 bool &changed, Step &step);
std::vector< std::array< EntityHandle, 3 > > faces
Sorted keys.
Local MOAB point-set and CGAL Delaunay mesh transfer.
std::vector< int > source
FTensor::Index< 'i', SPACE_DIM > i
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
std::bitset< BITREFLEVEL_SIZE > BitRefLevel
Bit structure attached to each entity identifying to what mesh entity is attached.
implementation of Data Operators for Forces and Sources
CGALTools::CrackExtensionSettings extension
bool join
Close gaps globally, then join, before advancing.
std::vector< Pair > addedEdges
Closure, extension: edges of new faces.
CGALTools::CrackExtensionCandidate candidate
Closure, extension.
std::vector< int > dropped
Extension: listed edges not on the front.
int extended
Index selected by extend or advanceOrdered.
double toleranceDegrees
Extension: the angle tolerance used.
std::vector< int > joinCategories
Join: the CGALTools::CrackJoinFace category of each face.
double opening
Closure: uncracked angle of the corner, radians.
std::size_t closures
Faces closing corners in the same step.
Pair edge
Front edge of closure, extension or ordered join.
std::size_t filled
Notch faces filled after it.
std::unordered_map< int, EntityHandle > vertexById
bool widenTolerance(double &tolerance) const
MoFEMErrorCode forgetClosuresNear(const Range &faces)
std::set< Pair > failedGapJoins
BitRefLevel level() const
The level holding the current mesh.
MoFEMErrorCode join(const Direction &direction, Step &step)
MoFEM::Interface & mField
std::set< Pair > failedJoins
MoFEMErrorCode refreshLevel() const
std::set< Pair > failedClosures
MoFEMErrorCode resolveListed(const std::vector< Pair > &edges, std::size_t i, const Range &front, std::vector< char > &dropped, Step &step, EntityHandle &edge)
std::function< MoFEMErrorCode(EntityHandle edge, const Range &crack, std::array< double, 3 > &direction)> Direction
Extension direction of a front edge, given the crack faces.
MoFEMErrorCode extend(const std::vector< Pair > &edges, const Direction &direction, Step &step)
bool levelChanged
Skin and vertex IDs of the current level, refreshed when it changes.
MoFEMErrorCode frontEdges(const Range &crack, Range &front) const
const Settings & settings() const
MoFEMErrorCode resolve(const Pair &pair, const Range &front, EntityHandle &edge) const
Pair edgeIds(EntityHandle edge) const
MoFEMErrorCode opening(EntityHandle node, const Range &crack, const Range &front, double &value) const
std::array< int, 2 > Pair
std::vector< CGALTools::CrackExtensionSettings > advancePhases() const
MoFEMErrorCode change(Kind operation, const Pair &pair, EntityHandle edge, const Range &crack, const Direction &direction, const CGALTools::CrackExtensionSettings &settings, bool &changed, Step &step)
CGALInterface::CrackExtension & crackExtension() const
MoFEMErrorCode closeAndJoin(const std::vector< Pair > &edges, const Direction &direction, Step &step)
MoFEMErrorCode advanceOrdered(const std::vector< Pair > &edges, const Direction &direction, Step &step)
Deprecated interface functions.
MoFEMErrorCode getInterface(IFACE *&iface) const
Get interface reference to pointer of interface.