17#include "libmesh/libmesh_common.h"
18#include "libmesh/libmesh.h"
19#include "libmesh/elem.h"
114 virtual void execute()
override;
120 mooseError(
"getNumberOfCrackFrontPoints() is not implemented for this object.");
132 std::vector<Xfem::CutEdge> & cut_edges,
133 std::vector<Xfem::CutNode> & cut_nodes)
const = 0;
143 std::vector<Xfem::CutFace> & cut_faces)
const = 0;
152 std::vector<Xfem::CutEdge> & cut_edges)
const = 0;
161 std::vector<Xfem::CutFace> & cut_faces)
const = 0;
191 mooseError(
"Objects that inherit from GeometricCutUserObject should override the "
192 "getCutSubdomainID method");
222 void serialize(std::string & serialized_buffer);
223 void deserialize(std::vector<std::string> & serialized_buffers);
const std::vector< double > y
unsigned int CutSubdomainID
Base class for crack front points provider.
std::map< unsigned int, std::vector< Xfem::GeomMarkedElemInfo3D > > _marked_elems_3d
virtual void threadJoin(const UserObject &y) override
std::map< unsigned int, std::vector< Xfem::GeomMarkedElemInfo2D > > _marked_elems_2d
Containers with information about all 2D and 3D elements marked for cutting by this object.
static InputParameters validParams()
Factory constructor, takes parameters so that all derived classes can be built using the same constru...
virtual void execute() override
unsigned int _interface_id
Associated interface id.
virtual unsigned int getNumberOfCrackFrontPoints() const override
Get the current number of crack front points.
void serialize(std::string &serialized_buffer)
Methods to pack/unpack the _marked_elems_2d and _marked_elems_3d data into a structure suitable for p...
virtual bool cutFragmentByGeometry(std::vector< std::vector< Point > > &frag_edges, std::vector< Xfem::CutEdge > &cut_edges) const =0
Check to see whether a fragment of a 2D element should be cut based on geometric conditions.
bool shouldHealMesh() const
Should the elements cut by this cutting object be healed in the current time step?
void setInterfaceID(unsigned int interface_id)
Set the interface ID for this cutting object.
bool _heal_always
Heal the mesh.
void deserialize(std::vector< std::string > &serialized_buffers)
virtual bool cutElementByGeometry(const Elem *elem, std::vector< Xfem::CutEdge > &cut_edges, std::vector< Xfem::CutNode > &cut_nodes) const =0
Check to see whether a specified 2D element should be cut based on geometric conditions.
virtual bool cutFragmentByGeometry(std::vector< std::vector< Point > > &frag_faces, std::vector< Xfem::CutFace > &cut_faces) const =0
Check to see whether a fragment of a 3D element should be cut based on geometric conditions.
virtual void initialize() override
virtual CutSubdomainID getCutSubdomainID(const Node *) const
Get CutSubdomainID telling which side the node belongs to relative to the cut.
virtual void finalize() override
std::shared_ptr< XFEM > _xfem
Pointer to the XFEM controller object.
virtual bool cutElementByGeometry(const Elem *elem, std::vector< Xfem::CutFace > &cut_faces) const =0
Check to see whether a specified 3D element should be cut based on geometric conditions.
int _last_step_initialized
Time step information needed to advance a 3D crack only at the real beginning of a time step.
unsigned int getInterfaceID() const
Get the interface ID for this cutting object.
const InputParameters & parameters() const
void mooseError(Args &&... args) const
bool operator<(const CutEdge &lhs, const CutEdge &rhs)
Operator < for two CutEdge Objects Needed to allow the use of std::set<CutEdge>
The following methods are specializations for using the Parallel::packed_range_* routines for a vecto...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Data structure defining a cut on an element edge.
unsigned int _id1
ID of the first node on the edge.
Real _distance
Fractional distance along the edge (from node 1 to 2) where the cut is located.
unsigned int _id2
ID of the second node on the edge.
unsigned int _host_side_id
Local ID of this side in the host element.
Data structure defining a cut through a face.
unsigned int _face_id
ID of the cut face.
std::vector< Real > _position
Fractional distance along the cut edges where the cut is located.
std::vector< unsigned int > _face_edge
IDs of all cut faces.
Data structure defining a cut through a node.
unsigned int _id
ID of the cut node.
unsigned int _host_id
Local ID of this node in the host element.
Data structure describing geometrically described cut through 2D element.
std::vector< CutNode > _elem_cut_nodes
Container for data about all cut nodes in this element.
std::vector< CutEdge > _frag_cut_edges
Container for data about all cut fragments in this element.
std::vector< CutEdge > _elem_cut_edges
Container for data about all cut edges in this element.
std::vector< std::vector< Point > > _frag_edges
Container for data about all cut edges in cut fragments in this element.
Data structure describing geometrically described cut through 3D element.
std::vector< CutFace > _frag_cut_faces
Container for data about all faces this element's fragment.
std::vector< CutFace > _elem_cut_faces
Container for data about all cut faces in this element.
std::vector< std::vector< Point > > _frag_faces
Container for data about all cut faces in cut fragments in this element.