https://mooseframework.inl.gov
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
CrackMeshCut3DUserObject Class Referenceabstract

CrackMeshCut3DUserObject: (1) reads in a mesh describing the crack surface, (2) uses the mesh to do initial cutting of 3D elements, and (3) grows the mesh based on prescribed growth functions. More...

#include <CrackMeshCut3DUserObject.h>

Inheritance diagram for CrackMeshCut3DUserObject:
[legend]

Public Types

typedef DataFileName DataFileParameterType
 

Public Member Functions

 CrackMeshCut3DUserObject (const InputParameters &parameters)
 
virtual void initialSetup () override
 
virtual void initialize () override
 
virtual const std::vector< Point > getCrackFrontPoints (unsigned int num_crack_front_points) const override
 get a set of points along a crack front from a XFEM GeometricCutUserObject More...
 
virtual const std::vector< RealVectorValuegetCrackPlaneNormals (unsigned int num_crack_front_points) const override
 get a set of normal vectors along a crack front from a XFEM GeometricCutUserObject More...
 
virtual bool cutElementByGeometry (const Elem *elem, std::vector< Xfem::CutEdge > &cut_edges, std::vector< Xfem::CutNode > &cut_nodes) const override
 
virtual bool cutElementByGeometry (const Elem *elem, std::vector< Xfem::CutFace > &cut_faces) const override
 
virtual bool cutFragmentByGeometry (std::vector< std::vector< Point >> &frag_edges, std::vector< Xfem::CutEdge > &cut_edges) const override
 
virtual bool cutFragmentByGeometry (std::vector< std::vector< Point >> &frag_faces, std::vector< Xfem::CutFace > &cut_faces) const override
 
void findActiveBoundaryNodes ()
 Find all active boundary nodes in the cutter mesh Find boundary nodes that will grow; nodes outside of the structural mesh are inactive. More...
 
std::vector< intgetFrontPointsIndex () const
 Get crack front points in the active segment -1 means inactive; positive is the point's index in the Crack Front Definition starting from 0. More...
 
virtual unsigned int getNumberOfCrackFrontPoints () const override
 Return the total number of crack front points. More...
 
MeshBase & getCutterMesh () const
 Get a reference to the cutter mesh. More...
 
virtual void execute () override
 
virtual void threadJoin (const UserObject &y) override
 
virtual void finalize () override
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
unsigned int getInterfaceID () const
 Get the interface ID for this cutting object. More...
 
void setInterfaceID (unsigned int interface_id)
 Set the interface ID for this cutting object. More...
 
bool shouldHealMesh () const
 Should the elements cut by this cutting object be healed in the current time step? More...
 
virtual CutSubdomainID getCutSubdomainID (const Node *) const
 Get CutSubdomainID telling which side the node belongs to relative to the cut. More...
 
CutSubdomainID getCutSubdomainID (const Elem *elem) const
 Get the CutSubdomainID for the given element. More...
 
bool usesMesh () const
 Getter for if a cutter mesh is used in a derived class. More...
 
virtual Real spatialValue (const Point &) const
 
virtual const std::vector< Point > spatialPoints () const
 
void setPrimaryThreadCopy (UserObject *primary)
 
UserObjectprimaryThreadCopy ()
 
SubProblemgetSubProblem () const
 
bool shouldDuplicateInitialExecution () const
 
void gatherSum (T &value)
 
void gatherMax (T &value)
 
void gatherMin (T &value)
 
void gatherProxyValueMax (T1 &proxy, T2 &value)
 
void gatherProxyValueMin (T1 &proxy, T2 &value)
 
std::set< UserObjectName > getDependObjects () const
 
const std::set< std::string > & getRequestedItems () override
 
const std::set< std::string > & getSuppliedItems () override
 
unsigned int systemNumber () const
 
virtual bool needThreadedCopy () const
 
virtual bool enabled () const
 
std::shared_ptr< MooseObjectgetSharedPtr ()
 
std::shared_ptr< const MooseObjectgetSharedPtr () const
 
bool isKokkosObject () const
 
MooseAppgetMooseApp () const
 
const std::string & type () const
 
const std::string & name () const
 
std::string typeAndName () const
 
MooseObjectParameterName uniqueParameterName (const std::string &parameter_name) const
 
MooseObjectName uniqueName () const
 
const InputParametersparameters () const
 
const hit::Node * getHitNode () const
 
bool hasBase () const
 
const std::string & getBase () const
 
const TgetParam (const std::string &name) const
 
std::vector< std::pair< T1, T2 > > getParam (const std::string &param1, const std::string &param2) const
 
const TqueryParam (const std::string &name) const
 
const TgetRenamedParam (const std::string &old_name, const std::string &new_name) const
 
T getCheckedPointerParam (const std::string &name, const std::string &error_string="") const
 
bool haveParameter (const std::string &name) const
 
bool isParamValid (const std::string &name) const
 
bool isParamSetByUser (const std::string &name) const
 
void connectControllableParams (const std::string &parameter, const std::string &object_type, const std::string &object_name, const std::string &object_parameter) const
 
void paramError (const std::string &param, Args... args) const
 
void paramWarning (const std::string &param, Args... args) const
 
void paramWarning (const std::string &param, Args... args) const
 
void paramInfo (const std::string &param, Args... args) const
 
std::string messagePrefix (const bool hit_prefix=true) const
 
std::string errorPrefix (const std::string &) const
 
void mooseError (Args &&... args) const
 
void mooseDocumentedError (const std::string &repo_name, const unsigned int issue_num, Args &&... args) const
 
void mooseErrorNonPrefixed (Args &&... args) const
 
void mooseWarning (Args &&... args) const
 
void mooseWarning (Args &&... args) const
 
void mooseWarningNonPrefixed (Args &&... args) const
 
void mooseWarningNonPrefixed (Args &&... args) const
 
void mooseDeprecated (Args &&... args) const
 
void mooseDeprecated (Args &&... args) const
 
void mooseDeprecatedNoTrace (Args &&... args) const
 
void mooseInfo (Args &&... args) const
 
void callMooseError (std::string msg, const bool with_prefix, const hit::Node *node=nullptr, const bool show_trace=true) const
 
std::string getDataFileName (const std::string &param) const
 
std::string getDataFileNameByName (const std::string &relative_path) const
 
std::string getDataFilePath (const std::string &relative_path) const
 
virtual void timestepSetup ()
 
virtual void jacobianSetup ()
 
virtual void residualSetup ()
 
virtual void subdomainSetup ()
 
virtual void customSetup (const ExecFlagType &)
 
const ExecFlagEnumgetExecuteOnEnum () const
 
UserObjectName getUserObjectName (const std::string &param_name) const
 
const TgetUserObject (const std::string &param_name, bool is_dependency=true) const
 
const TgetUserObjectByName (const UserObjectName &object_name, bool is_dependency=true) const
 
const UserObjectBasegetUserObjectBase (const std::string &param_name, bool is_dependency=true) const
 
const UserObjectBasegetUserObjectBaseByName (const UserObjectName &object_name, bool is_dependency=true) const
 
const std::vector< SubdomainName > & blocks () const
 
unsigned int numBlocks () const
 
virtual const std::set< SubdomainID > & blockIDs () const
 
unsigned int blocksMaxDimension () const
 
bool hasBlocks (const SubdomainName &name) const
 
bool hasBlocks (const std::vector< SubdomainName > &names) const
 
bool hasBlocks (const std::set< SubdomainName > &names) const
 
bool hasBlocks (SubdomainID id) const
 
bool hasBlocks (const std::vector< SubdomainID > &ids) const
 
bool hasBlocks (const std::set< SubdomainID > &ids) const
 
bool isBlockSubset (const std::set< SubdomainID > &ids) const
 
bool isBlockSubset (const std::vector< SubdomainID > &ids) const
 
bool hasBlockMaterialProperty (const std::string &prop_name)
 
const std::set< SubdomainID > & meshBlockIDs () const
 
virtual bool blockRestricted () const
 
virtual void checkVariable (const MooseVariableFieldBase &variable) const
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialProperty (const std::string &name, MaterialData &material_data, const unsigned int state=0)
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialProperty (const std::string &name, const unsigned int state=0)
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialProperty (const std::string &name, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialProperty (const std::string &name, MaterialData &material_data, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialProperty (const std::string &name, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialProperty (const std::string &name, const unsigned int state=0)
 
const ADMaterialProperty< T > & getADMaterialProperty (const std::string &name, MaterialData &material_data)
 
const ADMaterialProperty< T > & getADMaterialProperty (const std::string &name)
 
const ADMaterialProperty< T > & getADMaterialProperty (const std::string &name)
 
const MaterialProperty< T > & getMaterialPropertyOld (const std::string &name, MaterialData &material_data)
 
const MaterialProperty< T > & getMaterialPropertyOld (const std::string &name)
 
const MaterialProperty< T > & getMaterialPropertyOld (const std::string &name)
 
const MaterialProperty< T > & getMaterialPropertyOlder (const std::string &name, MaterialData &material_data)
 
const MaterialProperty< T > & getMaterialPropertyOlder (const std::string &name)
 
const MaterialProperty< T > & getMaterialPropertyOlder (const std::string &name)
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialPropertyByName (const MaterialPropertyName &name, MaterialData &material_data, const unsigned int state)
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialPropertyByName (const MaterialPropertyName &name, const unsigned int state=0)
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialPropertyByName (const MaterialPropertyName &name, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialPropertyByName (const MaterialPropertyName &name, MaterialData &material_data, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialPropertyByName (const MaterialPropertyName &name, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialPropertyByName (const MaterialPropertyName &name, const unsigned int state=0)
 
const ADMaterialProperty< T > & getADMaterialPropertyByName (const MaterialPropertyName &name, MaterialData &material_data)
 
const ADMaterialProperty< T > & getADMaterialPropertyByName (const MaterialPropertyName &name)
 
const ADMaterialProperty< T > & getADMaterialPropertyByName (const MaterialPropertyName &name)
 
const MaterialProperty< T > & getMaterialPropertyOldByName (const MaterialPropertyName &name, MaterialData &material_data)
 
const MaterialProperty< T > & getMaterialPropertyOldByName (const MaterialPropertyName &name)
 
const MaterialProperty< T > & getMaterialPropertyOldByName (const MaterialPropertyName &name)
 
const MaterialProperty< T > & getMaterialPropertyOlderByName (const MaterialPropertyName &name, MaterialData &material_data)
 
const MaterialProperty< T > & getMaterialPropertyOlderByName (const MaterialPropertyName &name)
 
const MaterialProperty< T > & getMaterialPropertyOlderByName (const MaterialPropertyName &name)
 
Moose::Kokkos::MaterialProperty< T, dimension > getKokkosMaterialPropertyByName (const std::string &prop_name_in)
 
Moose::Kokkos::MaterialProperty< T, dimension > getKokkosMaterialPropertyOldByName (const std::string &prop_name)
 
Moose::Kokkos::MaterialProperty< T, dimension > getKokkosMaterialPropertyOlderByName (const std::string &prop_name)
 
Moose::Kokkos::MaterialProperty< T, dimension > getKokkosMaterialProperty (const std::string &name)
 
Moose::Kokkos::MaterialProperty< T, dimension > getKokkosMaterialPropertyOld (const std::string &name)
 
Moose::Kokkos::MaterialProperty< T, dimension > getKokkosMaterialPropertyOlder (const std::string &name)
 
std::pair< const MaterialProperty< T > *, std::set< SubdomainID > > getBlockMaterialProperty (const MaterialPropertyName &name)
 
std::pair< Moose::Kokkos::MaterialProperty< T, dimension >, std::set< SubdomainID > > getKokkosBlockMaterialProperty (const MaterialPropertyName &name)
 
const GenericMaterialProperty< T, is_ad > & getGenericZeroMaterialProperty (const std::string &name)
 
const GenericMaterialProperty< T, is_ad > & getGenericZeroMaterialProperty ()
 
const GenericMaterialProperty< T, is_ad > & getGenericZeroMaterialPropertyByName (const std::string &prop_name)
 
const MaterialProperty< T > & getZeroMaterialProperty (Ts... args)
 
std::set< SubdomainIDgetMaterialPropertyBlocks (const std::string &name)
 
std::vector< SubdomainName > getMaterialPropertyBlockNames (const std::string &name)
 
std::set< BoundaryIDgetMaterialPropertyBoundaryIDs (const std::string &name)
 
std::vector< BoundaryName > getMaterialPropertyBoundaryNames (const std::string &name)
 
void checkBlockAndBoundaryCompatibility (std::shared_ptr< MaterialBase > discrete)
 
std::unordered_map< SubdomainID, std::vector< MaterialBase *> > buildRequiredMaterials (bool allow_stateful=true)
 
void statefulPropertiesAllowed (bool)
 
virtual bool getMaterialPropertyCalled () const
 
virtual const std::unordered_set< unsigned int > & getMatPropDependencies () const
 
virtual void resolveOptionalProperties ()
 
const GenericMaterialProperty< T, is_ad > & getPossiblyConstantGenericMaterialPropertyByName (const MaterialPropertyName &prop_name, MaterialData &material_data, const unsigned int state)
 
virtual const VariableValuecoupledValueByName (const std::string &var_name)
 
virtual const ArrayVariableValuecoupledArrayValueByName (const std::string &var_name)
 
const std::unordered_map< std::string, std::vector< MooseVariableFieldBase *> > & getCoupledVars () const
 
const std::vector< MooseVariableFieldBase *> & getCoupledMooseVars () const
 
const std::vector< MooseVariable *> & getCoupledStandardMooseVars () const
 
const std::vector< VectorMooseVariable *> & getCoupledVectorMooseVars () const
 
const std::vector< ArrayMooseVariable *> & getCoupledArrayMooseVars () const
 
void addFEVariableCoupleableVectorTag (TagID tag)
 
void addFEVariableCoupleableMatrixTag (TagID tag)
 
std::set< TagID > & getFEVariableCoupleableVectorTags ()
 
const std::set< TagID > & getFEVariableCoupleableVectorTags () const
 
std::set< TagID > & getFEVariableCoupleableMatrixTags ()
 
const std::set< TagID > & getFEVariableCoupleableMatrixTags () const
 
auto & getWritableCoupledVariables () const
 
bool hasWritableCoupledVariables () const
 
const ADVariableValuegetADDefaultValue (const std::string &var_name) const
 
const ADVectorVariableValuegetADDefaultVectorValue (const std::string &var_name) const
 
const ADVariableGradientgetADDefaultGradient () const
 
const ADVectorVariableGradientgetADDefaultVectorGradient () const
 
const ADVariableSecondgetADDefaultSecond () const
 
const ADVectorVariableCurlgetADDefaultCurl () const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagValueByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagValuesByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::VariableGradient kokkosCoupledVectorTagGradientByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableGradient kokkosCoupledVectorTagGradientsByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagNodalValueByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagNodalValuesByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagDofValueByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagDofValuesByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagValue (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagValues (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::VariableGradient kokkosCoupledVectorTagGradient (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableGradient kokkosCoupledVectorTagGradients (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagNodalValue (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagNodalValues (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagDofValue (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagDofValues (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledValue (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledValues (const std::string &var_name) const
 
Moose::Kokkos::VariableGradient kokkosCoupledGradient (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableGradient kokkosCoupledGradients (const std::string &var_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledNodalValue (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledNodalValues (const std::string &var_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledDofValue (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledDofValues (const std::string &var_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledValueOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledValuesOld (const std::string &var_name) const
 
Moose::Kokkos::VariableGradient kokkosCoupledGradientOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableGradient kokkosCoupledGradientsOld (const std::string &var_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledNodalValueOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledNodalValuesOld (const std::string &var_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledDofValueOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledDofValuesOld (const std::string &var_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledValueOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledValuesOlder (const std::string &var_name) const
 
Moose::Kokkos::VariableGradient kokkosCoupledGradientOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableGradient kokkosCoupledGradientsOlder (const std::string &var_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledNodalValueOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledNodalValuesOlder (const std::string &var_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledDofValueOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledDofValuesOlder (const std::string &var_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledDot (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledDots (const std::string &var_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledNodalDot (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledNodalDots (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagValueByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagValuesByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::ADVariableGradient kokkosADCoupledVectorTagGradientByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableGradient kokkosADCoupledVectorTagGradientsByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagNodalValueByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagNodalValuesByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagDofValueByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagDofValuesByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagValue (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagValues (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::ADVariableGradient kokkosADCoupledVectorTagGradient (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableGradient kokkosADCoupledVectorTagGradients (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagNodalValue (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagNodalValues (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagDofValue (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagDofValues (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledValue (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledValues (const std::string &var_name) const
 
Moose::Kokkos::ADVariableGradient kokkosADCoupledGradient (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableGradient kokkosADCoupledGradients (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledNodalValue (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledNodalValues (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledDofValue (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledDofValues (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledValueOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledValuesOld (const std::string &var_name) const
 
Moose::Kokkos::ADVariableGradient kokkosADCoupledGradientOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableGradient kokkosADCoupledGradientsOld (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledNodalValueOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledNodalValuesOld (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledDofValueOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledDofValuesOld (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledValueOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledValuesOlder (const std::string &var_name) const
 
Moose::Kokkos::ADVariableGradient kokkosADCoupledGradientOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableGradient kokkosADCoupledGradientsOlder (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledNodalValueOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledNodalValuesOlder (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledDofValueOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledDofValuesOlder (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledDot (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledDots (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledNodalDot (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledNodalDots (const std::string &var_name) const
 
Moose::Kokkos::Scalar< const RealkokkosCoupledDotDu (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosZeroValue () const
 
Moose::Kokkos::VariableGradient kokkosZeroGradient () const
 
Moose::Kokkos::VariableValue kokkosZeroNodalValue () const
 
const std::vector< MooseVariableScalar *> & getCoupledMooseScalarVars ()
 
const std::set< TagID > & getScalarVariableCoupleableVectorTags () const
 
const std::set< TagID > & getScalarVariableCoupleableMatrixTags () const
 
const std::set< MooseVariableFieldBase *> & getMooseVariableDependencies () const
 
std::set< MooseVariableFieldBase *> checkAllVariables (const DofObjectType &dof_object, const std::set< MooseVariableFieldBase * > &vars_to_omit={})
 
std::set< MooseVariableFieldBase *> checkVariables (const DofObjectType &dof_object, const std::set< MooseVariableFieldBase * > &vars_to_check)
 
void addMooseVariableDependency (MooseVariableFieldBase *var)
 
void addMooseVariableDependency (const std::vector< MooseVariableFieldBase * > &vars)
 
bool isImplicit ()
 
Moose::StateArg determineState () const
 
void setRandomResetFrequency (ExecFlagType exec_flag)
 
unsigned long getRandomLong () const
 
Real getRandomReal () const
 
unsigned int getSeed (std::size_t id)
 
unsigned int getMasterSeed () const
 
bool isNodal () const
 
ExecFlagType getResetOnTime () const
 
void setRandomDataPointer (RandomData *random_data)
 
virtual unsigned int getElementIDIndex (const std::string &id_parameter_name, unsigned int comp=0) const
 
virtual unsigned int getElementIDIndexByName (const std::string &id_name) const
 
virtual const dof_id_typegetElementID (const std::string &id_parameter_name, unsigned int comp=0) const
 
dof_id_type getElementID (const Elem *elem, unsigned int elem_id_index) const
 
virtual const dof_id_typegetElementIDNeighbor (const std::string &id_parameter_name, unsigned int comp=0) const
 
virtual const dof_id_typegetElementIDByName (const std::string &id_name) const
 
virtual const dof_id_typegetElementIDNeighborByName (const std::string &id_name) const
 
bool hasElementID (const std::string &id_name) const
 
dof_id_type maxElementID (unsigned int elem_id_index) const
 
dof_id_type minElementID (unsigned int elem_id_index) const
 
bool areElemIDsIdentical (const std::string &id_name1, const std::string &id_name2) const
 
std::unordered_map< dof_id_type, std::set< dof_id_type > > getElemIDMapping (const std::string &id_name1, const std::string &id_name2) const
 
std::set< dof_id_typegetAllElemIDs (unsigned int elem_id_index) const
 
std::set< dof_id_typegetElemIDsOnBlocks (unsigned int elem_id_index, const std::set< SubdomainID > &blks) const
 
bool hasUserObject (const std::string &param_name) const
 
bool hasUserObject (const std::string &param_name) const
 
bool hasUserObject (const std::string &param_name) const
 
bool hasUserObject (const std::string &param_name) const
 
bool hasUserObjectByName (const UserObjectName &object_name) const
 
bool hasUserObjectByName (const UserObjectName &object_name) const
 
bool hasUserObjectByName (const UserObjectName &object_name) const
 
bool hasUserObjectByName (const UserObjectName &object_name) const
 
const GenericOptionalMaterialProperty< T, is_ad > & getGenericOptionalMaterialProperty (const std::string &name, const unsigned int state=0)
 
const GenericOptionalMaterialProperty< T, is_ad > & getGenericOptionalMaterialProperty (const std::string &name, const unsigned int state=0)
 
const OptionalMaterialProperty< T > & getOptionalMaterialProperty (const std::string &name, const unsigned int state=0)
 
const OptionalMaterialProperty< T > & getOptionalMaterialProperty (const std::string &name, const unsigned int state=0)
 
const OptionalADMaterialProperty< T > & getOptionalADMaterialProperty (const std::string &name)
 
const OptionalADMaterialProperty< T > & getOptionalADMaterialProperty (const std::string &name)
 
const OptionalMaterialProperty< T > & getOptionalMaterialPropertyOld (const std::string &name)
 
const OptionalMaterialProperty< T > & getOptionalMaterialPropertyOld (const std::string &name)
 
const OptionalMaterialProperty< T > & getOptionalMaterialPropertyOlder (const std::string &name)
 
const OptionalMaterialProperty< T > & getOptionalMaterialPropertyOlder (const std::string &name)
 
MaterialBasegetMaterial (const std::string &name)
 
MaterialBasegetMaterial (const std::string &name)
 
MaterialBasegetMaterialByName (const std::string &name, bool no_warn=false)
 
MaterialBasegetMaterialByName (const std::string &name, bool no_warn=false)
 
bool hasMaterialProperty (const std::string &name)
 
bool hasMaterialProperty (const std::string &name)
 
bool hasMaterialPropertyByName (const std::string &name)
 
bool hasMaterialPropertyByName (const std::string &name)
 
bool hasADMaterialProperty (const std::string &name)
 
bool hasADMaterialProperty (const std::string &name)
 
bool hasADMaterialPropertyByName (const std::string &name)
 
bool hasADMaterialPropertyByName (const std::string &name)
 
bool hasKokkosMaterialProperty (const std::string &name)
 
bool hasKokkosMaterialProperty (const std::string &name)
 
bool hasKokkosMaterialPropertyByName (const std::string &name)
 
bool hasKokkosMaterialPropertyByName (const std::string &name)
 
bool hasGenericMaterialProperty (const std::string &name)
 
bool hasGenericMaterialProperty (const std::string &name)
 
bool hasGenericMaterialPropertyByName (const std::string &name)
 
bool hasGenericMaterialPropertyByName (const std::string &name)
 
const FunctiongetFunction (const std::string &name) const
 
const FunctiongetFunctionByName (const FunctionName &name) const
 
bool hasFunction (const std::string &param_name) const
 
bool hasFunctionByName (const FunctionName &name) const
 
Moose::Kokkos::Function getKokkosFunction (const std::string &name) const
 
const TgetKokkosFunction (const std::string &name) const
 
Moose::Kokkos::Function getKokkosFunctionByName (const FunctionName &name) const
 
const TgetKokkosFunctionByName (const FunctionName &name) const
 
bool hasKokkosFunction (const std::string &param_name) const
 
bool hasKokkosFunctionByName (const FunctionName &name) const
 
bool isDefaultPostprocessorValue (const std::string &param_name, const unsigned int index=0) const
 
bool hasPostprocessor (const std::string &param_name, const unsigned int index=0) const
 
bool hasPostprocessorByName (const PostprocessorName &name) const
 
std::size_t coupledPostprocessors (const std::string &param_name) const
 
const PostprocessorName & getPostprocessorName (const std::string &param_name, const unsigned int index=0) const
 
const VectorPostprocessorValuegetVectorPostprocessorValue (const std::string &param_name, const std::string &vector_name) const
 
const VectorPostprocessorValuegetVectorPostprocessorValue (const std::string &param_name, const std::string &vector_name, bool needs_broadcast) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueByName (const VectorPostprocessorName &name, const std::string &vector_name, bool needs_broadcast) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueOld (const std::string &param_name, const std::string &vector_name) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueOld (const std::string &param_name, const std::string &vector_name, bool needs_broadcast) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueOldByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueOldByName (const VectorPostprocessorName &name, const std::string &vector_name, bool needs_broadcast) const
 
const ScatterVectorPostprocessorValuegetScatterVectorPostprocessorValue (const std::string &param_name, const std::string &vector_name) const
 
const ScatterVectorPostprocessorValuegetScatterVectorPostprocessorValueByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
const ScatterVectorPostprocessorValuegetScatterVectorPostprocessorValueOld (const std::string &param_name, const std::string &vector_name) const
 
const ScatterVectorPostprocessorValuegetScatterVectorPostprocessorValueOldByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
bool hasVectorPostprocessor (const std::string &param_name, const std::string &vector_name) const
 
bool hasVectorPostprocessor (const std::string &param_name) const
 
bool hasVectorPostprocessorByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
bool hasVectorPostprocessorByName (const VectorPostprocessorName &name) const
 
const VectorPostprocessorName & getVectorPostprocessorName (const std::string &param_name) const
 
TgetSampler (const std::string &name)
 
SamplergetSampler (const std::string &name)
 
TgetSamplerByName (const SamplerName &name)
 
SamplergetSamplerByName (const SamplerName &name)
 
virtual void meshChanged ()
 
virtual void meshDisplaced ()
 
PerfGraphperfGraph ()
 
const PostprocessorValuegetPostprocessorValue (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValuegetPostprocessorValue (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValuegetPostprocessorValueOld (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValuegetPostprocessorValueOld (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValuegetPostprocessorValueOlder (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValuegetPostprocessorValueOlder (const std::string &param_name, const unsigned int index=0) const
 
virtual const PostprocessorValuegetPostprocessorValueByName (const PostprocessorName &name) const
 
virtual const PostprocessorValuegetPostprocessorValueByName (const PostprocessorName &name) const
 
const PostprocessorValuegetPostprocessorValueOldByName (const PostprocessorName &name) const
 
const PostprocessorValuegetPostprocessorValueOldByName (const PostprocessorName &name) const
 
const PostprocessorValuegetPostprocessorValueOlderByName (const PostprocessorName &name) const
 
const PostprocessorValuegetPostprocessorValueOlderByName (const PostprocessorName &name) const
 
bool isVectorPostprocessorDistributed (const std::string &param_name) const
 
bool isVectorPostprocessorDistributed (const std::string &param_name) const
 
bool isVectorPostprocessorDistributedByName (const VectorPostprocessorName &name) const
 
bool isVectorPostprocessorDistributedByName (const VectorPostprocessorName &name) const
 
const DistributiongetDistribution (const std::string &name) const
 
const TgetDistribution (const std::string &name) const
 
const DistributiongetDistribution (const std::string &name) const
 
const TgetDistribution (const std::string &name) const
 
const DistributiongetDistributionByName (const DistributionName &name) const
 
const TgetDistributionByName (const std::string &name) const
 
const DistributiongetDistributionByName (const DistributionName &name) const
 
const TgetDistributionByName (const std::string &name) const
 
const Parallel::Communicator & comm () const
 
processor_id_type n_processors () const
 
processor_id_type processor_id () const
 

Static Public Member Functions

static InputParameters validParams ()
 
static void callMooseError (MooseApp *const app, const InputParameters &params, std::string msg, const bool with_prefix, const hit::Node *node, const bool show_trace=true)
 
static void sort (typename std::vector< T > &vector)
 
static void sortDFS (typename std::vector< T > &vector)
 
static void cyclicDependencyError (CyclicDependencyException< T2 > &e, const std::string &header, NameFunc &&name_func)
 
static void cyclicDependencyError (CyclicDependencyException< T2 > &e, const std::string &header)
 

Public Attributes

 usingCombinedWarningSolutionWarnings
 
const ConsoleStream _console
 

Static Public Attributes

static const std::string type_param
 
static const std::string name_param
 
static const std::string unique_name_param
 
static const std::string app_param
 
static const std::string moose_base_param
 
static const std::string kokkos_object_param
 
static constexpr PropertyValue::id_type default_property_id
 
static constexpr PropertyValue::id_type zero_property_id
 
static constexpr auto SYSTEM
 
static constexpr auto NAME
 

Protected Types

enum  GrowthDirectionEnum { GrowthDirectionEnum::MAX_HOOP_STRESS, GrowthDirectionEnum::FUNCTION }
 Enum to for crack growth direction. More...
 
enum  GrowthRateEnum { GrowthRateEnum::REPORTER, GrowthRateEnum::FUNCTION }
 Enum to for crack growth rate. More...
 

Protected Member Functions

virtual bool intersectWithEdge (const Point &p1, const Point &p2, const std::vector< Point > &_vertices, Point &point) const
 Check if a line intersects with an element. More...
 
bool findIntersection (const Point &p1, const Point &p2, const std::vector< Point > &vertices, Point &point) const
 Find directional intersection along the positive extension of the vector from p1 to p2. More...
 
bool isInsideEdge (const Point &p1, const Point &p2, const Point &p) const
 Check if point p is inside the edge p1-p2. More...
 
Real getRelativePosition (const Point &p1, const Point &p2, const Point &p) const
 Get the relative position of p from p1. More...
 
bool isInsideCutPlane (const std::vector< Point > &_vertices, const Point &p) const
 Check if point p is inside a plane. More...
 
void findBoundaryNodes ()
 Find boundary nodes of the cutter mesh This is a simple algorithm simply based on the added angle = 360 degrees Works fine for planar cutting surface for curved cutting surface, need to re-work this subroutine to make it more general. More...
 
void findBoundaryEdges ()
 Find boundary edges of the cutter mesh. More...
 
void sortBoundaryNodes ()
 Sort boundary nodes to be in the right order along the boundary. More...
 
Real findDistance (dof_id_type node1, dof_id_type node2)
 Find distance between two nodes. More...
 
void refineBoundary ()
 If boundary nodes are too sparse, add nodes in between. More...
 
void findActiveBoundaryDirection ()
 Find growth direction at each active node. More...
 
void growFront ()
 Grow the cutter mesh. More...
 
void sortFrontNodes ()
 Sort the front nodes. More...
 
void findFrontIntersection ()
 Find front-structure intersections. More...
 
void refineFront ()
 Refine the mesh at the front. More...
 
void triangulation ()
 Create tri3 elements between the new front and the old front. More...
 
void joinBoundary ()
 Join active boundaries and inactive boundaries to be the new boundary. More...
 
void initializeCrackFrontNodes ()
 Determine initial crack front nodes from cutter mesh. More...
 
virtual void addPostprocessorDependencyHelper (const PostprocessorName &name) const override
 
virtual void addVectorPostprocessorDependencyHelper (const VectorPostprocessorName &name) const override
 
virtual void addUserObjectDependencyHelper (const UserObjectBase &uo) const override
 
void addReporterDependencyHelper (const ReporterName &reporter_name) override
 
void flagInvalidSolutionInternal (const InvalidSolutionID invalid_solution_id) const
 
InvalidSolutionID registerInvalidSolutionInternal (const std::string &message, const bool warning) const
 
const ReporterContextBasegetReporterContextBaseByName (const ReporterName &reporter_name) const
 
const ReporterNamegetReporterName (const std::string &param_name) const
 
TdeclareRestartableData (const std::string &data_name, Args &&... args)
 
ManagedValue< TdeclareManagedRestartableDataWithContext (const std::string &data_name, void *context, Args &&... args)
 
const TgetRestartableData (const std::string &data_name) const
 
TdeclareRestartableDataWithContext (const std::string &data_name, void *context, Args &&... args)
 
TdeclareRecoverableData (const std::string &data_name, Args &&... args)
 
TdeclareRestartableDataWithObjectName (const std::string &data_name, const std::string &object_name, Args &&... args)
 
TdeclareRestartableDataWithObjectNameWithContext (const std::string &data_name, const std::string &object_name, void *context, Args &&... args)
 
std::string restartableName (const std::string &data_name) const
 
const TgetMeshProperty (const std::string &data_name, const std::string &prefix)
 
const TgetMeshProperty (const std::string &data_name)
 
bool hasMeshProperty (const std::string &data_name, const std::string &prefix) const
 
bool hasMeshProperty (const std::string &data_name, const std::string &prefix) const
 
bool hasMeshProperty (const std::string &data_name) const
 
bool hasMeshProperty (const std::string &data_name) const
 
std::string meshPropertyName (const std::string &data_name) const
 
PerfID registerTimedSection (const std::string &section_name, const unsigned int level) const
 
PerfID registerTimedSection (const std::string &section_name, const unsigned int level, const std::string &live_message, const bool print_dots=true) const
 
std::string timedSectionName (const std::string &section_name) const
 
virtual bool hasBlockMaterialPropertyHelper (const std::string &prop_name)
 
void initializeBlockRestrictable (const MooseObject *moose_object)
 
void initializeKokkosBlockRestrictable ()
 
Moose::CoordinateSystemType getBlockCoordSystem ()
 
KOKKOS_FUNCTION dof_id_type numKokkosBlockElements () const
 
KOKKOS_FUNCTION dof_id_type numKokkosBlockNodes () const
 
KOKKOS_FUNCTION dof_id_type numKokkosBlockSides () const
 
KOKKOS_FUNCTION ContiguousElementID kokkosBlockElementID (Moose::Kokkos::ThreadID tid) const
 
KOKKOS_FUNCTION ContiguousElementID kokkosBlockNodeID (Moose::Kokkos::ThreadID tid) const
 
KOKKOS_FUNCTION auto kokkosBlockElementSideID (Moose::Kokkos::ThreadID tid) const
 
virtual void checkMaterialProperty (const std::string &name, const unsigned int state)
 
virtual void getKokkosMaterialPropertyHook (const std::string &, const unsigned int)
 
void markMatPropRequested (const std::string &)
 
MaterialPropertyName getMaterialPropertyName (const std::string &name) const
 
void checkExecutionStage ()
 
virtual void coupledCallback (const std::string &, bool) const
 
virtual bool isCoupled (const std::string &var_name, unsigned int i=0) const
 
virtual bool isCoupledConstant (const std::string &var_name) const
 
unsigned int coupledComponents (const std::string &var_name) const
 
VariableName coupledName (const std::string &var_name, unsigned int comp=0) const
 
std::vector< VariableName > coupledNames (const std::string &var_name) const
 
virtual unsigned int coupled (const std::string &var_name, unsigned int comp=0) const
 
std::vector< unsigned intcoupledIndices (const std::string &var_name) const
 
virtual const VariableValuecoupledValue (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue *> coupledValues (const std::string &var_name) const
 
std::vector< const VectorVariableValue *> coupledVectorValues (const std::string &var_name) const
 
const GenericVariableValue< is_ad > & coupledGenericValue (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableValue< false > & coupledGenericValue (const std::string &var_name, unsigned int comp) const
 
const GenericVariableValue< true > & coupledGenericValue (const std::string &var_name, unsigned int comp) const
 
const GenericVectorVariableValue< is_ad > & coupledGenericVectorValue (const std::string &var_name, unsigned int comp=0) const
 
const GenericVectorVariableValue< false > & coupledGenericVectorValue (const std::string &var_name, unsigned int comp) const
 
const GenericVectorVariableValue< true > & coupledGenericVectorValue (const std::string &var_name, unsigned int comp) const
 
std::vector< const GenericVariableValue< is_ad > *> coupledGenericValues (const std::string &var_name) const
 
std::vector< const GenericVariableValue< false > *> coupledGenericValues (const std::string &var_name) const
 
std::vector< const GenericVariableValue< true > *> coupledGenericValues (const std::string &var_name) const
 
const GenericVariableValue< is_ad > & coupledGenericDofValue (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableValue< false > & coupledGenericDofValue (const std::string &var_name, unsigned int comp) const
 
const GenericVariableValue< true > & coupledGenericDofValue (const std::string &var_name, unsigned int comp) const
 
const GenericVariableValue< is_ad > & coupledGenericDot (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableValue< false > & coupledGenericDot (const std::string &var_name, unsigned int comp) const
 
const GenericVariableValue< true > & coupledGenericDot (const std::string &var_name, unsigned int comp) const
 
const GenericVariableValue< is_ad > & coupledGenericDotDot (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableValue< false > & coupledGenericDotDot (const std::string &var_name, unsigned int comp) const
 
const GenericVariableValue< true > & coupledGenericDotDot (const std::string &var_name, unsigned int comp) const
 
virtual const VariableValuecoupledValueLower (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableValueadCoupledValue (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const ADVariableValue *> adCoupledValues (const std::string &var_name) const
 
const ADVariableValueadCoupledLowerValue (const std::string &var_name, unsigned int comp=0) const
 
const ADVectorVariableValueadCoupledVectorValue (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const ADVectorVariableValue *> adCoupledVectorValues (const std::string &var_name) const
 
virtual const VariableValuecoupledVectorTagValue (const std::string &var_names, TagID tag, unsigned int index=0) const
 
virtual const VariableValuecoupledVectorTagValue (const std::string &var_names, const std::string &tag_name, unsigned int index=0) const
 
std::vector< const VariableValue *> coupledVectorTagValues (const std::string &var_names, TagID tag) const
 
std::vector< const VariableValue *> coupledVectorTagValues (const std::string &var_names, const std::string &tag_name) const
 
virtual const ArrayVariableValuecoupledVectorTagArrayValue (const std::string &var_names, TagID tag, unsigned int index=0) const
 
virtual const ArrayVariableValuecoupledVectorTagArrayValue (const std::string &var_names, const std::string &tag_name, unsigned int index=0) const
 
std::vector< const ArrayVariableValue *> coupledVectorTagArrayValues (const std::string &var_names, TagID tag) const
 
std::vector< const ArrayVariableValue *> coupledVectorTagArrayValues (const std::string &var_names, const std::string &tag_name) const
 
virtual const VariableGradientcoupledVectorTagGradient (const std::string &var_names, TagID tag, unsigned int index=0) const
 
virtual const VariableGradientcoupledVectorTagGradient (const std::string &var_names, const std::string &tag_name, unsigned int index=0) const
 
std::vector< const VariableGradient *> coupledVectorTagGradients (const std::string &var_names, TagID tag) const
 
std::vector< const VariableGradient *> coupledVectorTagGradients (const std::string &var_names, const std::string &tag_name) const
 
virtual const ArrayVariableGradientcoupledVectorTagArrayGradient (const std::string &var_names, TagID tag, unsigned int index=0) const
 
virtual const ArrayVariableGradientcoupledVectorTagArrayGradient (const std::string &var_names, const std::string &tag_name, unsigned int index=0) const
 
std::vector< const ArrayVariableGradient *> coupledVectorTagArrayGradients (const std::string &var_names, TagID tag) const
 
std::vector< const ArrayVariableGradient *> coupledVectorTagArrayGradients (const std::string &var_names, const std::string &tag_name) const
 
virtual const VariableValuecoupledVectorTagDofValue (const std::string &var_name, TagID tag, unsigned int index=0) const
 
virtual const VariableValuecoupledVectorTagDofValue (const std::string &var_names, const std::string &tag_name, unsigned int index=0) const
 
const ArrayVariableValuecoupledVectorTagArrayDofValue (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
std::vector< const VariableValue *> coupledVectorTagDofValues (const std::string &var_names, TagID tag) const
 
std::vector< const VariableValue *> coupledVectorTagDofValues (const std::string &var_names, const std::string &tag_name) const
 
virtual const VariableValuecoupledMatrixTagValue (const std::string &var_names, TagID tag, unsigned int index=0) const
 
virtual const VariableValuecoupledMatrixTagValue (const std::string &var_names, const std::string &tag_name, unsigned int index=0) const
 
std::vector< const VariableValue *> coupledMatrixTagValues (const std::string &var_names, TagID tag) const
 
std::vector< const VariableValue *> coupledMatrixTagValues (const std::string &var_names, const std::string &tag_name) const
 
virtual const VectorVariableValuecoupledVectorValue (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValuecoupledArrayValue (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const ArrayVariableValue *> coupledArrayValues (const std::string &var_name) const
 
MooseWritableVariablewritableVariable (const std::string &var_name, unsigned int comp=0)
 
virtual VariableValuewritableCoupledValue (const std::string &var_name, unsigned int comp=0)
 
void checkWritableVar (MooseWritableVariable *var)
 
virtual const VariableValuecoupledValueOld (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue *> coupledValuesOld (const std::string &var_name) const
 
std::vector< const VectorVariableValue *> coupledVectorValuesOld (const std::string &var_name) const
 
virtual const VariableValuecoupledValueOlder (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue *> coupledValuesOlder (const std::string &var_name) const
 
virtual const VariableValuecoupledValuePreviousNL (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableValuecoupledVectorValueOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableValuecoupledVectorValueOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValuecoupledArrayValueOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValuecoupledArrayValueOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableGradientcoupledGradient (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableGradient *> coupledGradients (const std::string &var_name) const
 
const ADVariableGradientadCoupledGradient (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableGradientadCoupledGradientDot (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const ADVariableGradient *> adCoupledGradients (const std::string &var_name) const
 
const GenericVariableGradient< is_ad > & coupledGenericGradient (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableGradient< false > & coupledGenericGradient (const std::string &var_name, unsigned int comp) const
 
const GenericVariableGradient< true > & coupledGenericGradient (const std::string &var_name, unsigned int comp) const
 
std::vector< const GenericVariableGradient< is_ad > *> coupledGenericGradients (const std::string &var_name) const
 
std::vector< const GenericVariableGradient< false > *> coupledGenericGradients (const std::string &var_name) const
 
std::vector< const GenericVariableGradient< true > *> coupledGenericGradients (const std::string &var_name) const
 
const ADVectorVariableGradientadCoupledVectorGradient (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableSecondadCoupledSecond (const std::string &var_name, unsigned int comp=0) const
 
const ADVectorVariableSecondadCoupledVectorSecond (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableGradientcoupledGradientOld (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableGradient *> coupledGradientsOld (const std::string &var_name) const
 
virtual const VariableGradientcoupledGradientOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableGradientcoupledGradientPreviousNL (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableGradientcoupledGradientDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableGradientcoupledGradientDotDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableGradientcoupledVectorGradient (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableGradientcoupledVectorGradientOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableGradientcoupledVectorGradientOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableGradientcoupledArrayGradient (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableGradientcoupledArrayGradientOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableGradientcoupledArrayGradientOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableGradientcoupledArrayGradientDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableCurlcoupledCurl (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableCurlcoupledCurlOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableCurlcoupledCurlOlder (const std::string &var_name, unsigned int comp=0) const
 
const ADVectorVariableCurladCoupledCurl (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableDivergencecoupledDiv (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableDivergencecoupledDivOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableDivergencecoupledDivOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableSecondcoupledSecond (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableSecondcoupledSecondOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableSecondcoupledSecondOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableSecondcoupledSecondPreviousNL (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledDot (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue *> coupledDots (const std::string &var_name) const
 
virtual const VariableValuecoupledDotDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledDotDotOld (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableValueadCoupledDot (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const ADVariableValue *> adCoupledDots (const std::string &var_name) const
 
const ADVariableValueadCoupledDotDot (const std::string &var_name, unsigned int comp=0) const
 
const ADVectorVariableValueadCoupledVectorDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableValuecoupledVectorDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableValuecoupledVectorDotDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableValuecoupledVectorDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableValuecoupledVectorDotDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledVectorDotDu (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledVectorDotDotDu (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValuecoupledArrayDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValuecoupledArrayDotDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValuecoupledArrayDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValuecoupledArrayDotDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledDotDu (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledDotDotDu (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledArrayDotDu (const std::string &var_name, unsigned int comp=0) const
 
const TcoupledNodalValue (const std::string &var_name, unsigned int comp=0) const
 
const Moose::ADType< T >::typeadCoupledNodalValue (const std::string &var_name, unsigned int comp=0) const
 
const TcoupledNodalValueOld (const std::string &var_name, unsigned int comp=0) const
 
const TcoupledNodalValueOlder (const std::string &var_name, unsigned int comp=0) const
 
const TcoupledNodalValuePreviousNL (const std::string &var_name, unsigned int comp=0) const
 
const TcoupledNodalDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledNodalDotDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledNodalDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledNodalDotDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledDofValues (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue *> coupledAllDofValues (const std::string &var_name) const
 
virtual const VariableValuecoupledDofValuesOld (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue *> coupledAllDofValuesOld (const std::string &var_name) const
 
virtual const VariableValuecoupledDofValuesOlder (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue *> coupledAllDofValuesOlder (const std::string &var_name) const
 
virtual const ArrayVariableValuecoupledArrayDofValues (const std::string &var_name, unsigned int comp=0) const
 
virtual const ADVariableValueadCoupledDofValues (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableValueadZeroValue () const
 
const ADVariableGradientadZeroGradient () const
 
const ADVariableSecondadZeroSecond () const
 
const GenericVariableValue< is_ad > & genericZeroValue ()
 
const GenericVariableValue< false > & genericZeroValue ()
 
const GenericVariableValue< true > & genericZeroValue ()
 
const GenericVariableGradient< is_ad > & genericZeroGradient ()
 
const GenericVariableGradient< false > & genericZeroGradient ()
 
const GenericVariableGradient< true > & genericZeroGradient ()
 
const GenericVariableSecond< is_ad > & genericZeroSecond ()
 
const GenericVariableSecond< false > & genericZeroSecond ()
 
const GenericVariableSecond< true > & genericZeroSecond ()
 
bool checkVar (const std::string &var_name, unsigned int comp=0, unsigned int comp_bound=0) const
 
const MooseVariableFieldBasegetFEVar (const std::string &var_name, unsigned int comp) const
 
const MooseVariableFieldBasegetFieldVar (const std::string &var_name, unsigned int comp) const
 
MooseVariableFieldBasegetFieldVar (const std::string &var_name, unsigned int comp)
 
std::vector< const MooseVariableFieldBase *> getFieldVars (const std::string &var_name) const
 
const TgetVarHelper (const std::string &var_name, unsigned int comp) const
 
TgetVarHelper (const std::string &var_name, unsigned int comp)
 
std::vector< const T *> getVarsHelper (const std::string &var_name) const
 
MooseVariablegetVar (const std::string &var_name, unsigned int comp)
 
const MooseVariablegetVar (const std::string &var_name, unsigned int comp) const
 
VectorMooseVariablegetVectorVar (const std::string &var_name, unsigned int comp)
 
const VectorMooseVariablegetVectorVar (const std::string &var_name, unsigned int comp) const
 
ArrayMooseVariablegetArrayVar (const std::string &var_name, unsigned int comp)
 
const ArrayMooseVariablegetArrayVar (const std::string &var_name, unsigned int comp) const
 
void validateExecutionerType (const std::string &name, const std::string &fn_name) const
 
std::vector< TcoupledVectorHelper (const std::string &var_name, const Func &func) const
 
bool isCoupledScalar (const std::string &var_name, unsigned int i=0) const
 
unsigned int coupledScalarComponents (const std::string &var_name) const
 
unsigned int coupledScalar (const std::string &var_name, unsigned int comp=0) const
 
libMesh::Order coupledScalarOrder (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarValue (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableValueadCoupledScalarValue (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableValue< is_ad > & coupledGenericScalarValue (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableValue< false > & coupledGenericScalarValue (const std::string &var_name, const unsigned int comp) const
 
const GenericVariableValue< true > & coupledGenericScalarValue (const std::string &var_name, const unsigned int comp) const
 
const VariableValuecoupledVectorTagScalarValue (const std::string &var_name, TagID tag, unsigned int comp=0) const
 
const VariableValuecoupledMatrixTagScalarValue (const std::string &var_name, TagID tag, unsigned int comp=0) const
 
const VariableValuecoupledScalarValueOld (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarValueOlder (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDot (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableValueadCoupledScalarDot (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDotDot (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDotOld (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDotDotOld (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDotDu (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDotDotDu (const std::string &var_name, unsigned int comp=0) const
 
const MooseVariableScalargetScalarVar (const std::string &var_name, unsigned int comp) const
 
const TgetReporterValue (const std::string &param_name, const std::size_t time_index=0)
 
const TgetReporterValue (const std::string &param_name, ReporterMode mode, const std::size_t time_index=0)
 
const TgetReporterValue (const std::string &param_name, const std::size_t time_index=0)
 
const TgetReporterValue (const std::string &param_name, ReporterMode mode, const std::size_t time_index=0)
 
const TgetReporterValueByName (const ReporterName &reporter_name, const std::size_t time_index=0)
 
const TgetReporterValueByName (const ReporterName &reporter_name, ReporterMode mode, const std::size_t time_index=0)
 
const TgetReporterValueByName (const ReporterName &reporter_name, const std::size_t time_index=0)
 
const TgetReporterValueByName (const ReporterName &reporter_name, ReporterMode mode, const std::size_t time_index=0)
 
bool hasReporterValue (const std::string &param_name) const
 
bool hasReporterValue (const std::string &param_name) const
 
bool hasReporterValue (const std::string &param_name) const
 
bool hasReporterValue (const std::string &param_name) const
 
bool hasReporterValueByName (const ReporterName &reporter_name) const
 
bool hasReporterValueByName (const ReporterName &reporter_name) const
 
bool hasReporterValueByName (const ReporterName &reporter_name) const
 
bool hasReporterValueByName (const ReporterName &reporter_name) const
 
const GenericMaterialProperty< T, is_ad > * defaultGenericMaterialProperty (const std::string &name)
 
const GenericMaterialProperty< T, is_ad > * defaultGenericMaterialProperty (const std::string &name)
 
const MaterialProperty< T > * defaultMaterialProperty (const std::string &name)
 
const MaterialProperty< T > * defaultMaterialProperty (const std::string &name)
 
const ADMaterialProperty< T > * defaultADMaterialProperty (const std::string &name)
 
const ADMaterialProperty< T > * defaultADMaterialProperty (const std::string &name)
 
void serialize (std::string &serialized_buffer)
 Methods to pack/unpack the _marked_elems_2d and _marked_elems_3d data into a structure suitable for parallel communication. More...
 
void deserialize (std::vector< std::string > &serialized_buffers)
 

Static Protected Member Functions

static std::string meshPropertyName (const std::string &data_name, const std::string &prefix)
 

Protected Attributes

const unsigned int _cut_elem_nnode = 3
 The cutter mesh has triangluar elements only. More...
 
const unsigned int _cut_elem_dim = 2
 
MooseMesh_mesh
 The structural mesh. More...
 
CrackFrontDefinition_crack_front_definition
 The crack front definition. More...
 
std::vector< dof_id_type_crack_front_points
 updated crack front definition they are in the same order as defined in the input but the number of nodes may increase its difference from _front is that: _front does not necessarily follow the order of crack front definition therefore, _crack_front_points is generated from _front with the order of crack front definition limitation: this approach does not currently support the growth of one crack front into two More...
 
const GrowthDirectionEnum _growth_dir_method
 The direction method for growing mesh at the front. More...
 
const GrowthRateEnum _growth_increment_method
 The growth increment method for growing mesh at the front. More...
 
const unsigned int _elem_dim = 3
 The structural mesh must be 3D only. More...
 
const Real _const_intersection = 0.01
 Used to define intersection points. More...
 
Real _size_control
 Used for cutter mesh refinement and front advancement. More...
 
unsigned int _n_step_growth
 Number of steps to grow the mesh. More...
 
bool _stop
 Variables to help control the work flow. More...
 
bool _grow
 
std::vector< dof_id_type_boundary
 Boundary nodes of the cutter mesh. More...
 
std::vector< std::vector< dof_id_type > > _active_boundary
 Active boundary nodes where growth is allowed. More...
 
std::vector< unsigned int_inactive_boundary_pos
 Inactive boundary. More...
 
std::vector< dof_id_type_tracked_crack_front_points
 Front nodes that are grown from the crack front definition defined in the input therefore, they are (1) in the same order as defined in the input and (2) the number of nodes does not change. More...
 
bool _cfd
 is it using the crack_front_definition More...
 
std::set< Xfem::CutEdge_boundary_edges
 Edges at the boundary. More...
 
std::map< dof_id_type, std::vector< dof_id_type > > _boundary_map
 A map of boundary nodes and their neighbors. More...
 
std::vector< std::vector< Point > > _active_direction
 Growth direction for active boundaries. More...
 
std::vector< std::vector< dof_id_type > > _front
 New boundary after growth. More...
 
bool _is_mesh_modified
 Indicator that shows if the cutting mesh is modified or not in this calculation step. More...
 
unsigned int _num_crack_front_points
 Total number of crack front points in the mesh cutter. More...
 
const Function_func_x
 Parsed functions of front growth. More...
 
const Function_func_y
 
const Function_func_z
 
const Function_func_v
 
const std::vector< Real > *const _ki_vpp
 Pointer to fracture integral ki if available. More...
 
const std::vector< Real > *const _kii_vpp
 Pointer to fracture integral kii if available. More...
 
const std::vector< Real > *const _growth_inc_reporter
 Pointer to reporter with growth increment if available. More...
 
std::unique_ptr< MeshBase > _cutter_mesh
 The xfem cutter mesh. More...
 
std::shared_ptr< XFEM_xfem
 Pointer to the XFEM controller object. More...
 
unsigned int _interface_id
 Associated interface id. More...
 
bool _heal_always
 Heal the mesh. More...
 
int _last_step_initialized
 Time step information needed to advance a 3D crack only at the real beginning of a time step. More...
 
const bool _uses_mesh
 bool to set if CrackFrontPointsProvider derived objects use a cutter mesh More...
 
const Elem *const & _current_elem
 
const Real_current_elem_volume
 
const MooseArray< Point > & _q_point
 
const QBase *const & _qrule
 
const MooseArray< Real > & _JxW
 
const MooseArray< Real > & _coord
 
const Moose::CoordinateSystemType_coord_sys
 
const THREAD_ID _tid
 
SubProblem_subproblem
 
FEProblemBase_fe_problem
 
SystemBase_sys
 
Assembly_assembly
 
const bool _duplicate_initial_execution
 
std::set< std::string > _depend_uo
 
const bool & _enabled
 
MooseApp_app
 
Factory_factory
 
ActionFactory_action_factory
 
const std::string & _type
 
const std::string & _name
 
const InputParameters_pars
 
const ExecFlagEnum_execute_enum
 
const ExecFlagType_current_execute_flag
 
MooseApp_restartable_app
 
const std::string _restartable_system_name
 
const THREAD_ID _restartable_tid
 
const bool _restartable_read_only
 
FEProblemBase_mci_feproblem
 
FEProblemBase_mdi_feproblem
 
MooseApp_pg_moose_app
 
const std::string _prefix
 
const MaterialData_blk_material_data
 
const InputParameters_mi_params
 
const std::string _mi_name
 
const MooseObjectName _mi_moose_object_name
 
FEProblemBase_mi_feproblem
 
SubProblem_mi_subproblem
 
const THREAD_ID _mi_tid
 
const bool _is_kokkos_object
 
const Moose::MaterialDataType _material_data_type
 
MaterialData_material_data
 
bool _stateful_allowed
 
bool _get_material_property_called
 
std::vector< std::unique_ptr< PropertyValue > > _default_properties
 
std::unordered_set< unsigned int_material_property_dependencies
 
const MaterialPropertyName _get_suffix
 
const bool _use_interpolated_state
 
const InputParameters_c_parameters
 
const std::string & _c_name
 
const std::string & _c_type
 
FEProblemBase_c_fe_problem
 
const SystemBase *const _c_sys
 
std::unordered_map< std::string, std::vector< MooseVariableFieldBase *> > _coupled_vars
 
std::vector< MooseVariableFieldBase *> _coupled_moose_vars
 
std::vector< MooseVariable *> _coupled_standard_moose_vars
 
std::vector< VectorMooseVariable *> _coupled_vector_moose_vars
 
std::vector< ArrayMooseVariable *> _coupled_array_moose_vars
 
std::vector< MooseVariableField< Real > *> _coupled_fv_moose_vars
 
const std::unordered_map< std::string, std::string > & _new_to_deprecated_coupled_vars
 
bool _c_nodal
 
bool _c_is_implicit
 
const bool _c_allow_element_to_nodal_coupling
 
THREAD_ID _c_tid
 
std::unordered_map< std::string, std::vector< std::unique_ptr< VariableValue > > > _default_value
 
std::unordered_map< std::string, std::unique_ptr< MooseArray< ADReal > > > _ad_default_value
 
std::unordered_map< std::string, std::unique_ptr< VectorVariableValue > > _default_vector_value
 
std::unordered_map< std::string, std::unique_ptr< ArrayVariableValue > > _default_array_value
 
std::unordered_map< std::string, std::unique_ptr< MooseArray< ADRealVectorValue > > > _ad_default_vector_value
 
VariableValue _default_value_zero
 
VariableGradient _default_gradient
 
MooseArray< ADRealVectorValue_ad_default_gradient
 
MooseArray< ADRealTensorValue_ad_default_vector_gradient
 
VariableSecond _default_second
 
MooseArray< ADRealTensorValue_ad_default_second
 
MooseArray< ADRealVectorValue_ad_default_curl
 
const VariableValue_zero
 
const VariablePhiValue_phi_zero
 
const MooseArray< ADReal > & _ad_zero
 
const VariableGradient_grad_zero
 
const MooseArray< ADRealVectorValue > & _ad_grad_zero
 
const VariablePhiGradient_grad_phi_zero
 
const VariableSecond_second_zero
 
const MooseArray< ADRealTensorValue > & _ad_second_zero
 
const VariablePhiSecond_second_phi_zero
 
const VectorVariableValue_vector_zero
 
const VectorVariableCurl_vector_curl_zero
 
VectorVariableValue _default_vector_value_zero
 
VectorVariableGradient _default_vector_gradient
 
VectorVariableCurl _default_vector_curl
 
VectorVariableDivergence _default_div
 
ArrayVariableValue _default_array_value_zero
 
ArrayVariableGradient _default_array_gradient
 
bool _coupleable_neighbor
 
FEProblemBase_sc_fe_problem
 
const THREAD_ID _sc_tid
 
const Real_real_zero
 
const VariableValue_scalar_zero
 
const Point & _point_zero
 
const InputParameters_ti_params
 
FEProblemBase_ti_feproblem
 
bool _is_implicit
 
Real_t
 
const Real_t_old
 
int_t_step
 
Real_dt
 
Real_dt_old
 
bool _is_transient
 
const Parallel::Communicator & _communicator
 
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. More...
 
std::map< unsigned int, std::vector< Xfem::GeomMarkedElemInfo3D > > _marked_elems_3d
 

Static Protected Attributes

static const std::string _interpolated_old
 
static const std::string _interpolated_older
 

Detailed Description

CrackMeshCut3DUserObject: (1) reads in a mesh describing the crack surface, (2) uses the mesh to do initial cutting of 3D elements, and (3) grows the mesh based on prescribed growth functions.

Definition at line 25 of file CrackMeshCut3DUserObject.h.

Member Enumeration Documentation

◆ GrowthDirectionEnum

Enum to for crack growth direction.

Enumerator
MAX_HOOP_STRESS 
FUNCTION 

Definition at line 88 of file CrackMeshCut3DUserObject.h.

89  {
90  MAX_HOOP_STRESS,
91  FUNCTION
92  };

◆ GrowthRateEnum

Enum to for crack growth rate.

Enumerator
REPORTER 
FUNCTION 

Definition at line 97 of file CrackMeshCut3DUserObject.h.

98  {
99  REPORTER,
100  FUNCTION
101  };

Constructor & Destructor Documentation

◆ CrackMeshCut3DUserObject()

CrackMeshCut3DUserObject::CrackMeshCut3DUserObject ( const InputParameters parameters)

Definition at line 60 of file CrackMeshCut3DUserObject.C.

63  _growth_dir_method(getParam<MooseEnum>("growth_dir_method").getEnum<GrowthDirectionEnum>()),
65  getParam<MooseEnum>("growth_increment_method").getEnum<GrowthRateEnum>()),
66  _n_step_growth(getParam<unsigned int>("n_step_growth")),
67  _is_mesh_modified(false),
68  _func_x(parameters.isParamValid("growth_direction_x") ? &getFunction("growth_direction_x")
69  : nullptr),
70  _func_y(parameters.isParamValid("growth_direction_y") ? &getFunction("growth_direction_y")
71  : nullptr),
72  _func_z(parameters.isParamValid("growth_direction_z") ? &getFunction("growth_direction_z")
73  : nullptr),
74  _func_v(parameters.isParamValid("growth_rate") ? &getFunction("growth_rate") : nullptr),
75  _ki_vpp((_growth_dir_method == GrowthDirectionEnum::MAX_HOOP_STRESS)
77  "ki_vectorpostprocessor",
78  getParam<VectorPostprocessorName>("ki_vectorpostprocessor"))
79  : nullptr),
80  _kii_vpp((_growth_dir_method == GrowthDirectionEnum::MAX_HOOP_STRESS)
82  "kii_vectorpostprocessor",
83  getParam<VectorPostprocessorName>("kii_vectorpostprocessor"))
84  : nullptr),
86  ? &getReporterValueByName<std::vector<Real>>(
87  getParam<ReporterName>("growth_reporter"), REPORTER_MODE_ROOT)
88  : nullptr)
89 {
90  _grow = (_n_step_growth == 0 ? 0 : 1);
91 
92  if (_grow)
93  {
94  if (!isParamValid("size_control"))
95  paramError("size_control", "Crack growth needs size control.");
96 
97  _size_control = getParam<Real>("size_control");
98 
100  (_func_x == nullptr || _func_y == nullptr || _func_z == nullptr))
101  mooseError("function is not specified for the function method that defines growth direction");
102  }
103 
106  _cfd = true;
107  else
108  _cfd = false;
109 
110  if (_grow)
111  {
117  }
118  // test element type; only tri3 elements are allowed
119  for (const auto & cut_elem : _cutter_mesh->element_ptr_range())
120  {
121  if (cut_elem->n_nodes() != _cut_elem_nnode)
122  mooseError("The input cut mesh should include tri elements only!");
123  if (cut_elem->dim() != _cut_elem_dim)
124  mooseError("The input cut mesh must be 2D elements only!");
125  }
126 }
virtual MooseMesh & mesh()=0
GrowthDirectionEnum
Enum to for crack growth direction.
Real _size_control
Used for cutter mesh refinement and front advancement.
void paramError(const std::string &param, Args... args) const
void findBoundaryNodes()
Find boundary nodes of the cutter mesh This is a simple algorithm simply based on the added angle = 3...
const T & getParam(const std::string &name) const
const T & getReporterValueByName(const ReporterName &reporter_name, const std::size_t time_index=0)
const unsigned int _cut_elem_nnode
The cutter mesh has triangluar elements only.
const ReporterMode REPORTER_MODE_ROOT
const Function & getFunction(const std::string &name) const
void findActiveBoundaryNodes()
Find all active boundary nodes in the cutter mesh Find boundary nodes that will grow; nodes outside o...
unsigned int _n_step_growth
Number of steps to grow the mesh.
const InputParameters & parameters() const
const GrowthDirectionEnum _growth_dir_method
The direction method for growing mesh at the front.
bool _cfd
is it using the crack_front_definition
const GrowthRateEnum _growth_increment_method
The growth increment method for growing mesh at the front.
const std::vector< Real > *const _ki_vpp
Pointer to fracture integral ki if available.
void findBoundaryEdges()
Find boundary edges of the cutter mesh.
const VectorPostprocessorValue & getVectorPostprocessorValue(const std::string &param_name, const std::string &vector_name) const
MeshCutUserObjectBase(const InputParameters &parameters)
const Function * _func_x
Parsed functions of front growth.
bool _is_mesh_modified
Indicator that shows if the cutting mesh is modified or not in this calculation step.
SubProblem & _subproblem
const std::vector< Real > *const _kii_vpp
Pointer to fracture integral kii if available.
void initializeCrackFrontNodes()
Determine initial crack front nodes from cutter mesh.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void sortBoundaryNodes()
Sort boundary nodes to be in the right order along the boundary.
void mooseError(Args &&... args) const
MooseMesh & _mesh
The structural mesh.
bool isParamValid(const std::string &name) const
GrowthRateEnum
Enum to for crack growth rate.
std::unique_ptr< MeshBase > _cutter_mesh
The xfem cutter mesh.
const std::vector< Real > *const _growth_inc_reporter
Pointer to reporter with growth increment if available.
bool isParamValid(const std::string &name) const

Member Function Documentation

◆ cutElementByGeometry() [1/4]

bool CrackMeshCut3DUserObject::cutElementByGeometry ( const Elem *  elem,
std::vector< Xfem::CutEdge > &  cut_edges,
std::vector< Xfem::CutNode > &  cut_nodes 
) const
overridevirtual

Definition at line 175 of file CrackMeshCut3DUserObject.C.

178 {
179  mooseError("invalid method for 3D mesh cutting");
180  return false;
181 }
void mooseError(Args &&... args) const

◆ cutElementByGeometry() [2/4]

bool CrackMeshCut3DUserObject::cutElementByGeometry ( const Elem *  elem,
std::vector< Xfem::CutFace > &  cut_faces 
) const
overridevirtual

Definition at line 184 of file CrackMeshCut3DUserObject.C.

189 {
190  bool elem_cut = false;
191 
192  if (elem->dim() != _elem_dim)
193  mooseError("The structural mesh to be cut by a surface mesh must be 3D!");
194 
195  for (unsigned int i = 0; i < elem->n_sides(); ++i)
196  {
197  // This returns the lowest-order type of side.
198  std::unique_ptr<const Elem> curr_side = elem->side_ptr(i);
199  if (curr_side->dim() != 2)
200  mooseError("In cutElementByGeometry dimension of side must be 2, but it is ",
201  curr_side->dim());
202  unsigned int n_edges = curr_side->n_sides();
203 
204  std::vector<unsigned int> cut_edges;
205  std::vector<Real> cut_pos;
206 
207  for (unsigned int j = 0; j < n_edges; j++)
208  {
209  // This returns the lowest-order type of side.
210  std::unique_ptr<const Elem> curr_edge = curr_side->side_ptr(j);
211  if (curr_edge->type() != EDGE2)
212  mooseError("In cutElementByGeometry face edge must be EDGE2, but type is: ",
213  libMesh::Utility::enum_to_string(curr_edge->type()),
214  " base element type is: ",
215  libMesh::Utility::enum_to_string(elem->type()));
216  const Node * node1 = curr_edge->node_ptr(0);
217  const Node * node2 = curr_edge->node_ptr(1);
218 
219  for (const auto & cut_elem : _cutter_mesh->element_ptr_range())
220  {
221  std::vector<Point> vertices;
222 
223  for (auto & node : cut_elem->node_ref_range())
224  {
225  Point & this_point = node;
226  vertices.push_back(this_point);
227  }
228 
229  Point intersection;
230  if (intersectWithEdge(*node1, *node2, vertices, intersection))
231  {
232  cut_edges.push_back(j);
233  cut_pos.emplace_back(getRelativePosition(*node1, *node2, intersection));
234  }
235  }
236  }
237 
238  // if two edges of an element are cut, it is considered as an element being cut
239  if (cut_edges.size() == 2)
240  {
241  elem_cut = true;
242  Xfem::CutFace mycut;
243  mycut._face_id = i;
244  mycut._face_edge.push_back(cut_edges[0]);
245  mycut._face_edge.push_back(cut_edges[1]);
246  mycut._position.push_back(cut_pos[0]);
247  mycut._position.push_back(cut_pos[1]);
248  cut_faces.push_back(mycut);
249  }
250  }
251  return elem_cut;
252 }
Real getRelativePosition(const Point &p1, const Point &p2, const Point &p) const
Get the relative position of p from p1.
std::vector< Real > _position
Fractional distance along the cut edges where the cut is located.
Data structure defining a cut through a face.
const unsigned int _elem_dim
The structural mesh must be 3D only.
std::string enum_to_string(const T e)
virtual bool intersectWithEdge(const Point &p1, const Point &p2, const std::vector< Point > &_vertices, Point &point) const
Check if a line intersects with an element.
EDGE2
void mooseError(Args &&... args) const
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
std::unique_ptr< MeshBase > _cutter_mesh
The xfem cutter mesh.
std::vector< unsigned int > _face_edge
IDs of all cut faces.
unsigned int _face_id
ID of the cut face.

◆ cutElementByGeometry() [3/4]

virtual bool GeometricCutUserObject::cutElementByGeometry ( const Elem elem,
std::vector< Xfem::CutEdge > &  cut_edges,
std::vector< Xfem::CutNode > &  cut_nodes 
) const
pure virtualinherited

Check to see whether a specified 2D element should be cut based on geometric conditions.

Parameters
elemPointer to the libMesh element to be considered for cutting
cut_edgesData structure filled with information about edges to be cut
cut_nodesData structure filled with information about nodes to be cut
Returns
bool true if element is to be cut

Implemented in GeometricCut3DUserObject.

Referenced by GeometricCutUserObject::execute().

◆ cutElementByGeometry() [4/4]

virtual bool GeometricCutUserObject::cutElementByGeometry ( const Elem elem,
std::vector< Xfem::CutFace > &  cut_faces 
) const
pure virtualinherited

Check to see whether a specified 3D element should be cut based on geometric conditions.

Parameters
elemPointer to the libMesh element to be considered for cutting
cut_facesData structure filled with information about edges to be cut
Returns
bool true if element is to be cut

Implemented in GeometricCut3DUserObject.

◆ cutFragmentByGeometry() [1/4]

bool CrackMeshCut3DUserObject::cutFragmentByGeometry ( std::vector< std::vector< Point >> &  frag_edges,
std::vector< Xfem::CutEdge > &  cut_edges 
) const
overridevirtual

Definition at line 255 of file CrackMeshCut3DUserObject.C.

257 {
258  mooseError("invalid method for 3D mesh cutting");
259  return false;
260 }
void mooseError(Args &&... args) const

◆ cutFragmentByGeometry() [2/4]

bool CrackMeshCut3DUserObject::cutFragmentByGeometry ( std::vector< std::vector< Point >> &  frag_faces,
std::vector< Xfem::CutFace > &  cut_faces 
) const
overridevirtual

Definition at line 263 of file CrackMeshCut3DUserObject.C.

265 {
266  // TODO: Need this for branching in 3D
267  mooseError("cutFragmentByGeometry not yet implemented for 3D mesh cutting");
268  return false;
269 }
void mooseError(Args &&... args) const

◆ cutFragmentByGeometry() [3/4]

virtual bool GeometricCutUserObject::cutFragmentByGeometry ( std::vector< std::vector< Point >> &  frag_edges,
std::vector< Xfem::CutEdge > &  cut_edges 
) const
pure virtualinherited

Check to see whether a fragment of a 2D element should be cut based on geometric conditions.

Parameters
frag_edgesData structure defining the current fragment to be considered
cut_edgesData structure filled with information about fragment edges to be cut
Returns
bool true if fragment is to be cut

Implemented in GeometricCut3DUserObject.

Referenced by GeometricCutUserObject::execute().

◆ cutFragmentByGeometry() [4/4]

virtual bool GeometricCutUserObject::cutFragmentByGeometry ( std::vector< std::vector< Point >> &  frag_faces,
std::vector< Xfem::CutFace > &  cut_faces 
) const
pure virtualinherited

Check to see whether a fragment of a 3D element should be cut based on geometric conditions.

Parameters
frag_facesData structure defining the current fragment to be considered
cut_facesData structure filled with information about fragment faces to be cut
Returns
bool true if fragment is to be cut

Implemented in GeometricCut3DUserObject.

◆ deserialize()

void GeometricCutUserObject::deserialize ( std::vector< std::string > &  serialized_buffers)
protectedinherited

Definition at line 219 of file GeometricCutUserObject.C.

Referenced by GeometricCutUserObject::finalize().

220 {
221  mooseAssert(serialized_buffers.size() == _app.n_processors(),
222  "Unexpected size of serialized_buffers: " << serialized_buffers.size());
223 
224  // The input string stream used for deserialization
225  std::istringstream iss;
226 
227  // Loop over all datastructures for all processors to perfrom the gather operation
228  for (unsigned int rank = 0; rank < serialized_buffers.size(); ++rank)
229  {
230  // skip the current processor (its data is already in the structures)
231  if (rank == processor_id())
232  continue;
233 
234  // populate the stream with a new buffer and reset stream state
235  iss.clear();
236  iss.str(serialized_buffers[rank]);
237 
238  // Load the communicated data into temporary structures
239  std::map<unsigned int, std::vector<Xfem::GeomMarkedElemInfo2D>> other_marked_elems_2d;
240  std::map<unsigned int, std::vector<Xfem::GeomMarkedElemInfo3D>> other_marked_elems_3d;
241  dataLoad(iss, other_marked_elems_2d, this);
242  dataLoad(iss, other_marked_elems_3d, this);
243 
244  // merge the data in with the current processor's data
245  _marked_elems_2d.insert(other_marked_elems_2d.begin(), other_marked_elems_2d.end());
246  _marked_elems_3d.insert(other_marked_elems_3d.begin(), other_marked_elems_3d.end());
247  }
248 }
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...
void dataLoad(std::istream &stream, Xfem::CutFace &cf, void *context)
processor_id_type n_processors() const
processor_id_type processor_id() const
std::map< unsigned int, std::vector< Xfem::GeomMarkedElemInfo3D > > _marked_elems_3d

◆ execute()

void GeometricCutUserObject::execute ( )
overridevirtualinherited

Implements ElementUserObject.

Definition at line 64 of file GeometricCutUserObject.C.

65 {
66  if (_current_elem->dim() == 2)
67  {
68  std::vector<Xfem::CutEdge> elem_cut_edges;
69  std::vector<Xfem::CutNode> elem_cut_nodes;
70  std::vector<Xfem::CutEdge> frag_cut_edges;
71  std::vector<std::vector<Point>> frag_edges;
72 
73  EFAElement2D * EFAElem = _xfem->getEFAElem2D(_current_elem);
74 
75  // Don't cut again if elem has been already cut twice
76  if (!EFAElem->isFinalCut())
77  {
78  // get fragment edges
79  _xfem->getFragmentEdges(_current_elem, EFAElem, frag_edges);
80 
81  // mark cut edges for the element and its fragment
82  bool cut = cutElementByGeometry(_current_elem, elem_cut_edges, elem_cut_nodes);
83  if (EFAElem->numFragments() > 0)
84  cut |= cutFragmentByGeometry(frag_edges, frag_cut_edges);
85 
86  if (cut)
87  {
89  gmei2d._elem_cut_edges = elem_cut_edges;
90  gmei2d._elem_cut_nodes = elem_cut_nodes;
91  gmei2d._frag_cut_edges = frag_cut_edges;
92  gmei2d._frag_edges = frag_edges;
93  _marked_elems_2d[_current_elem->id()].push_back(gmei2d);
94  }
95  }
96  }
97  else if (_current_elem->dim() == 3)
98  {
99  std::vector<Xfem::CutFace> elem_cut_faces;
100  std::vector<Xfem::CutFace> frag_cut_faces;
101  std::vector<std::vector<Point>> frag_faces;
102 
103  EFAElement3D * EFAElem = _xfem->getEFAElem3D(_current_elem);
104 
105  // Don't cut again if elem has been already cut twice
106  if (!EFAElem->isFinalCut())
107  {
108  // get fragment edges
109  _xfem->getFragmentFaces(_current_elem, EFAElem, frag_faces);
110 
111  // mark cut faces for the element and its fragment
112  bool cut = cutElementByGeometry(_current_elem, elem_cut_faces);
113  // TODO: This would be done for branching, which is not yet supported in 3D
114  // if (EFAElem->numFragments() > 0)
115  // cut |= cutFragmentByGeometry(frag_faces, frag_cut_faces, _t);
116 
117  if (cut)
118  {
120  gmei3d._elem_cut_faces = elem_cut_faces;
121  gmei3d._frag_cut_faces = frag_cut_faces;
122  gmei3d._frag_faces = frag_faces;
123  _marked_elems_3d[_current_elem->id()].push_back(gmei3d);
124  }
125  }
126  }
127 }
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...
Data structure describing geometrically described cut through 3D element.
virtual unsigned int numFragments() const
Definition: EFAElement2D.C:207
std::vector< CutNode > _elem_cut_nodes
Container for data about all cut nodes in this element.
std::vector< CutEdge > _elem_cut_edges
Container for data about all cut edges in this element.
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.
std::vector< std::vector< Point > > _frag_edges
Container for data about all cut edges in cut fragments in this element.
virtual bool isFinalCut() const
Definition: EFAElement2D.C:796
std::vector< CutEdge > _frag_cut_edges
Container for data about all cut fragments in this element.
Data structure describing geometrically described cut through 2D element.
std::shared_ptr< XFEM > _xfem
Pointer to the XFEM controller object.
const Elem *const & _current_elem
std::vector< CutFace > _frag_cut_faces
Container for data about all faces this element&#39;s fragment.
std::vector< std::vector< Point > > _frag_faces
Container for data about all cut faces in cut fragments in this element.
std::vector< CutFace > _elem_cut_faces
Container for data about all cut faces in this element.
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.
std::map< unsigned int, std::vector< Xfem::GeomMarkedElemInfo3D > > _marked_elems_3d
virtual bool isFinalCut() const
Definition: EFAElement3D.C:825

◆ finalize()

void GeometricCutUserObject::finalize ( )
overridevirtualinherited

Implements ElementUserObject.

Definition at line 251 of file GeometricCutUserObject.C.

252 {
253  // for single processor runs we do not need to do anything here
254  if (_app.n_processors() > 1)
255  {
256  // create send buffer
257  std::string send_buffer;
258 
259  // create byte buffers for the streams received from all processors
260  std::vector<std::string> recv_buffers;
261 
262  // pack the complex datastructures into the string stream
263  serialize(send_buffer);
264 
265  // broadcast serialized data to and receive from all processors
266  _communicator.allgather(send_buffer, recv_buffers);
267 
268  // unpack the received data and merge it into the local data structures
269  deserialize(recv_buffers);
270  }
271 
272  for (const auto & it : _marked_elems_2d)
273  for (const auto & gmei : it.second)
274  _xfem->addGeomMarkedElem2D(it.first, gmei, _interface_id);
275 
276  for (const auto & it : _marked_elems_3d)
277  for (const auto & gmei : it.second)
278  _xfem->addGeomMarkedElem3D(it.first, gmei, _interface_id);
279 
280  _marked_elems_2d.clear();
281  _marked_elems_3d.clear();
282 }
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...
void allgather(const T &send_data, std::vector< T, A > &recv_data) const
unsigned int _interface_id
Associated interface id.
const Parallel::Communicator & _communicator
processor_id_type n_processors() const
void deserialize(std::vector< std::string > &serialized_buffers)
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...
std::shared_ptr< XFEM > _xfem
Pointer to the XFEM controller object.
std::map< unsigned int, std::vector< Xfem::GeomMarkedElemInfo3D > > _marked_elems_3d

◆ findActiveBoundaryDirection()

void CrackMeshCut3DUserObject::findActiveBoundaryDirection ( )
protected

Find growth direction at each active node.

Definition at line 708 of file CrackMeshCut3DUserObject.C.

Referenced by initialize().

709 {
710  mooseAssert(!(_cfd && _active_boundary.size() != 1),
711  "crack-front-definition using the cutter mesh only supports one active crack front "
712  "segment for now");
713 
714  _active_direction.clear();
715 
716  for (unsigned int i = 0; i < _active_boundary.size(); ++i)
717  {
718  std::vector<Point> temp;
719  Point dir;
720 
721  if (_inactive_boundary_pos.size() != 0)
722  {
723  for (unsigned int j = 0; j < 3; ++j)
724  dir(j) = 0;
725  temp.push_back(dir);
726  }
727 
728  unsigned int i1 = 1;
729  unsigned int i2 = _active_boundary[i].size() - 1;
730  if (_inactive_boundary_pos.size() == 0)
731  {
732  i1 = 0;
733  i2 = _active_boundary[i].size();
734  }
735 
737  // loop over active front points
738  for (unsigned int j = i1; j < i2; ++j)
739  {
740  Node * this_node = _cutter_mesh->node_ptr(_active_boundary[i][j]);
741  mooseAssert(this_node, "Node is NULL");
742  Point & this_point = *this_node;
743  dir(0) = _func_x->value(0, this_point);
744  dir(1) = _func_y->value(0, this_point);
745  dir(2) = _func_z->value(0, this_point);
746 
747  temp.push_back(dir);
748  }
749  // determine growth direction based on KI and KII at the crack front
751  {
752  mooseAssert(_ki_vpp->size() == _kii_vpp->size(), "KI and KII VPPs must be the same size");
753  mooseAssert(_ki_vpp->size() == _active_boundary[0].size(),
754  "the number of crack front nodes in the self-similar method should equal to the "
755  "size of VPP defined at the crack front");
756  mooseAssert(_crack_front_points.size() == _active_boundary[0].size(),
757  "the number of crack front nodes should be the same in _crack_front_points and "
758  "_active_boundary[0]");
759 
760  // the node order in _active_boundary[0] and _crack_front_points may be the same or opposite,
761  // their correspondence is needed
762  std::vector<int> index = getFrontPointsIndex();
763 
764  for (unsigned int j = i1; j < i2; ++j)
765  {
766  // growth direction in crack front coord (cfc) system based on the max hoop stress criterion
767  // Jiang, Wen, Benjamin W.Spencer, and John E.Dolbow.
768  // "Ceramic nuclear fuel fracture modeling with the extended finite "
769  // "element method." Engineering Fracture Mechanics 223(2020):106713.
770  // https://doi.org/10.1016/j.engfracmech.2019.106713
771  // Equation 6
772  int ind = index[j];
773  Real ki = _ki_vpp->at(ind);
774  Real kii = _kii_vpp->at(ind);
775  Real sqrt_k = std::sqrt(ki * ki + 8 * kii * kii);
776 
777  Real theta_m = 0;
778  Real theta_p = 0;
779  if (std::abs(kii) > libMesh::TOLERANCE)
780  {
781  theta_m = 2 * std::atan((ki - sqrt_k) / (4 * kii));
782  theta_p = 2 * std::atan((ki + sqrt_k) / (4 * kii));
783  }
784 
785  // Equation 5 check relative sigma_tt
786  Real sigma_tt_m = ki * (3 * std::cos(theta_m / 2) + std::cos(3 * theta_m / 2)) +
787  kii * (-3 * std::sin(theta_m / 2) - 3 * std::sin(3 * theta_m / 2));
788  Real sigma_tt_p = ki * (3 * std::cos(theta_p / 2) + std::cos(3 * theta_p / 2)) +
789  kii * (-3 * std::sin(theta_p / 2) - 3 * std::sin(3 * theta_p / 2));
790  Real theta;
791  if (sigma_tt_m > sigma_tt_p)
792  theta = theta_m;
793  else
794  theta = theta_p;
795 
796  // growth direction in crack front coord (cfc) system based on the max hoop stress criterion
797  RealVectorValue dir_cfc;
798 
799  // growth direction in global coord system based on the max hoop stress criterion
800  RealVectorValue dir;
801 
802  dir_cfc(0) = std::cos(theta);
803  dir_cfc(1) = std::sin(theta);
804  dir_cfc(2) = 0;
806 
807  temp.push_back(dir);
808  }
809  }
810  else
811  mooseError("This growth_dir_method is not pre-defined!");
812 
813  if (_inactive_boundary_pos.size() != 0)
814  {
815  for (unsigned int j = 0; j < 3; ++j)
816  dir(j) = 0;
817  temp.push_back(dir);
818  }
819 
820  _active_direction.push_back(temp);
821  }
822 
823  // normalize the directional vector
824  Real maxl = 0;
825 
826  for (unsigned int i = 0; i < _active_direction.size(); ++i)
827  for (unsigned int j = 0; j < _active_direction[i].size(); ++j)
828  {
829  Point pt = _active_direction[i][j];
830  Real length = std::sqrt(pt * pt);
831  if (length > maxl)
832  maxl = length;
833  }
834 
835  for (unsigned int i = 0; i < _active_direction.size(); ++i)
836  for (unsigned int j = 0; j < _active_direction[i].size(); ++j)
837  _active_direction[i][j] /= maxl;
838 }
static constexpr Real TOLERANCE
std::vector< int > getFrontPointsIndex() const
Get crack front points in the active segment -1 means inactive; positive is the point&#39;s index in the ...
const GrowthDirectionEnum _growth_dir_method
The direction method for growing mesh at the front.
bool _cfd
is it using the crack_front_definition
const std::vector< Real > *const _ki_vpp
Pointer to fracture integral ki if available.
RealVectorValue rotateFromCrackFrontCoordsToGlobal(const RealVectorValue vector, const std::size_t point_index) const
Rotate a vector from crack front cartesian coordinate to global cartesian coordinate.
std::vector< dof_id_type > _crack_front_points
updated crack front definition they are in the same order as defined in the input but the number of n...
const Function * _func_x
Parsed functions of front growth.
const std::vector< Real > *const _kii_vpp
Pointer to fracture integral kii if available.
std::vector< unsigned int > _inactive_boundary_pos
Inactive boundary.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
std::vector< std::vector< dof_id_type > > _active_boundary
Active boundary nodes where growth is allowed.
void mooseError(Args &&... args) const
CrackFrontDefinition * _crack_front_definition
The crack front definition.
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
virtual Real value(Real t, const Point &p) const
std::unique_ptr< MeshBase > _cutter_mesh
The xfem cutter mesh.
std::vector< std::vector< Point > > _active_direction
Growth direction for active boundaries.

◆ findActiveBoundaryNodes()

void CrackMeshCut3DUserObject::findActiveBoundaryNodes ( )

Find all active boundary nodes in the cutter mesh Find boundary nodes that will grow; nodes outside of the structural mesh are inactive.

Definition at line 648 of file CrackMeshCut3DUserObject.C.

Referenced by CrackMeshCut3DUserObject(), CrackGrowthReporterBase::getCutterMeshIndices(), and initialize().

649 {
650  _active_boundary.clear();
651  _inactive_boundary_pos.clear();
652 
653  std::unique_ptr<PointLocatorBase> pl = _mesh.getPointLocator();
654  pl->enable_out_of_mesh_mode();
655 
656  unsigned int n_boundary = _boundary.size();
657 
658  // if the node is outside of the structural model, store its position in _boundary to
659  // _inactive_boundary_pos
660  for (unsigned int j = 0; j < n_boundary; ++j)
661  {
662  Node * this_node = _cutter_mesh->node_ptr(_boundary[j]);
663  mooseAssert(this_node, "Node is NULL");
664  Point & this_point = *this_node;
665 
666  const Elem * elem = (*pl)(this_point);
667  if (elem == nullptr)
668  _inactive_boundary_pos.push_back(j);
669  }
670 
671  unsigned int n_inactive_boundary = _inactive_boundary_pos.size();
672 
673  // all nodes are inactive, stop
674  if (n_inactive_boundary == n_boundary)
675  _stop = 1;
676 
677  // find and store active boundary segments in "_active_boundary"
678  if (n_inactive_boundary == 0)
679  _active_boundary.push_back(_boundary);
680  else
681  {
682  for (unsigned int i = 0; i < n_inactive_boundary - 1; ++i)
683  {
684  if (_inactive_boundary_pos[i + 1] - _inactive_boundary_pos[i] != 1)
685  {
686  std::vector<dof_id_type> temp;
687  for (unsigned int j = _inactive_boundary_pos[i]; j <= _inactive_boundary_pos[i + 1]; ++j)
688  {
689  temp.push_back(_boundary[j]);
690  }
691  _active_boundary.push_back(temp);
692  }
693  }
694  if (_inactive_boundary_pos[n_inactive_boundary - 1] - _inactive_boundary_pos[0] <
695  n_boundary - 1)
696  {
697  std::vector<dof_id_type> temp;
698  for (unsigned int j = _inactive_boundary_pos[n_inactive_boundary - 1]; j < n_boundary; ++j)
699  temp.push_back(_boundary[j]);
700  for (unsigned int j = 0; j <= _inactive_boundary_pos[0]; ++j)
701  temp.push_back(_boundary[j]);
702  _active_boundary.push_back(temp);
703  }
704  }
705 }
bool _stop
Variables to help control the work flow.
std::vector< unsigned int > _inactive_boundary_pos
Inactive boundary.
std::vector< std::vector< dof_id_type > > _active_boundary
Active boundary nodes where growth is allowed.
MooseMesh & _mesh
The structural mesh.
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
virtual std::unique_ptr< libMesh::PointLocatorBase > getPointLocator() const
std::unique_ptr< MeshBase > _cutter_mesh
The xfem cutter mesh.
std::vector< dof_id_type > _boundary
Boundary nodes of the cutter mesh.

◆ findBoundaryEdges()

void CrackMeshCut3DUserObject::findBoundaryEdges ( )
protected

Find boundary edges of the cutter mesh.

Definition at line 393 of file CrackMeshCut3DUserObject.C.

Referenced by CrackMeshCut3DUserObject().

394 {
395  _boundary_edges.clear();
396 
397  std::vector<dof_id_type> corner_elem_id;
398  unsigned int counter = 0;
399 
400  std::vector<dof_id_type> node_id(_cut_elem_nnode);
401  std::vector<bool> is_node_on_boundary(_cut_elem_nnode);
402 
403  for (const auto & cut_elem : _cutter_mesh->element_ptr_range())
404  {
405  for (unsigned int i = 0; i < _cut_elem_nnode; ++i)
406  {
407  node_id[i] = cut_elem->node_ptr(i)->id();
408  is_node_on_boundary[i] = (_boundary_map.find(node_id[i]) != _boundary_map.end());
409  }
410 
411  if (is_node_on_boundary[0] && is_node_on_boundary[1] && is_node_on_boundary[2])
412  {
413  // this is an element at the corner; all nodes are on the boundary but not all edges are on
414  // the boundary
415  corner_elem_id.push_back(counter);
416  }
417  else
418  {
419  // for other elements, find and store boundary edges
420  for (unsigned int i = 0; i < _cut_elem_nnode; ++i)
421  {
422  // if both nodes on an edge are on the boundary, it is a boundary edge.
423  if (is_node_on_boundary[i] && is_node_on_boundary[(i + 1 <= 2) ? i + 1 : 0])
424  {
425  dof_id_type node1 = node_id[i];
426  dof_id_type node2 = node_id[(i + 1 <= 2) ? i + 1 : 0];
427  if (node1 > node2)
428  std::swap(node1, node2);
429 
430  Xfem::CutEdge ce;
431 
432  if (node1 > node2)
433  std::swap(node1, node2);
434  ce._id1 = node1;
435  ce._id2 = node2;
436 
437  _boundary_edges.insert(ce);
438  }
439  }
440  }
441  ++counter;
442  }
443 
444  // loop over edges in corner elements
445  // if an edge is shared by two elements, it is not an boundary edge (is_edge_inside = 1)
446  for (unsigned int i = 0; i < corner_elem_id.size(); ++i)
447  {
448  auto elem_it = _cutter_mesh->elements_begin();
449 
450  for (dof_id_type j = 0; j < corner_elem_id[i]; ++j)
451  ++elem_it;
452  Elem * cut_elem = *elem_it;
453 
454  for (unsigned int j = 0; j < _cut_elem_nnode; ++j)
455  {
456  bool is_edge_inside = 0;
457 
458  dof_id_type node1 = cut_elem->node_ptr(j)->id();
459  dof_id_type node2 = cut_elem->node_ptr((j + 1 <= 2) ? j + 1 : 0)->id();
460  if (node1 > node2)
461  std::swap(node1, node2);
462 
463  unsigned int counter = 0;
464  for (const auto & cut_elem2 : _cutter_mesh->element_ptr_range())
465  {
466  if (counter != corner_elem_id[i])
467  {
468  for (unsigned int k = 0; k < _cut_elem_nnode; ++k)
469  {
470  dof_id_type node3 = cut_elem2->node_ptr(k)->id();
471  dof_id_type node4 = cut_elem2->node_ptr((k + 1 <= 2) ? k + 1 : 0)->id();
472  if (node3 > node4)
473  std::swap(node3, node4);
474 
475  if (node1 == node3 && node2 == node4)
476  {
477  is_edge_inside = 1;
478  goto endloop;
479  }
480  }
481  }
482  ++counter;
483  }
484  endloop:
485  if (is_edge_inside == 0)
486  {
487  // store boundary edges
488  Xfem::CutEdge ce;
489 
490  if (node1 > node2)
491  std::swap(node1, node2);
492  ce._id1 = node1;
493  ce._id2 = node2;
494 
495  _boundary_edges.insert(ce);
496  }
497  else
498  {
499  // this is not a boundary edge; remove it from existing edge list
500  for (auto it = _boundary_edges.begin(); it != _boundary_edges.end();)
501  {
502  if ((*it)._id1 == node1 && (*it)._id2 == node2)
503  it = _boundary_edges.erase(it);
504  else
505  ++it;
506  }
507  }
508  }
509  }
510 }
const unsigned int _cut_elem_nnode
The cutter mesh has triangluar elements only.
std::map< dof_id_type, std::vector< dof_id_type > > _boundary_map
A map of boundary nodes and their neighbors.
Data structure defining a cut on an element edge.
unsigned int _id1
ID of the first node on the edge.
unsigned int _id2
ID of the second node on the edge.
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
std::unique_ptr< MeshBase > _cutter_mesh
The xfem cutter mesh.
std::set< Xfem::CutEdge > _boundary_edges
Edges at the boundary.
static const std::string k
Definition: NS.h:134
uint8_t dof_id_type

◆ findBoundaryNodes()

void CrackMeshCut3DUserObject::findBoundaryNodes ( )
protected

Find boundary nodes of the cutter mesh This is a simple algorithm simply based on the added angle = 360 degrees Works fine for planar cutting surface for curved cutting surface, need to re-work this subroutine to make it more general.

Definition at line 381 of file CrackMeshCut3DUserObject.C.

Referenced by CrackMeshCut3DUserObject().

382 {
383  auto boundary_node_ids = MeshTools::find_boundary_nodes(*_cutter_mesh);
384  for (auto it = boundary_node_ids.cbegin(); it != boundary_node_ids.cend(); it++)
385  {
386  dof_id_type id = *it;
387  std::vector<dof_id_type> neighbors;
388  _boundary_map[id] = neighbors;
389  }
390 }
std::map< dof_id_type, std::vector< dof_id_type > > _boundary_map
A map of boundary nodes and their neighbors.
std::unique_ptr< MeshBase > _cutter_mesh
The xfem cutter mesh.
uint8_t dof_id_type

◆ findDistance()

Real CrackMeshCut3DUserObject::findDistance ( dof_id_type  node1,
dof_id_type  node2 
)
protected

Find distance between two nodes.

Definition at line 583 of file CrackMeshCut3DUserObject.C.

Referenced by refineBoundary(), refineFront(), and triangulation().

584 {
585  Node * n1 = _cutter_mesh->node_ptr(node1);
586  mooseAssert(n1 != nullptr, "Node is NULL");
587  Node * n2 = _cutter_mesh->node_ptr(node2);
588  mooseAssert(n2 != nullptr, "Node is NULL");
589  Real distance = (*n1 - *n2).norm();
590  return distance;
591 }
Real distance(const Point &p)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
auto norm(const T &a)
std::unique_ptr< MeshBase > _cutter_mesh
The xfem cutter mesh.

◆ findFrontIntersection()

void CrackMeshCut3DUserObject::findFrontIntersection ( )
protected

Find front-structure intersections.

Definition at line 922 of file CrackMeshCut3DUserObject.C.

Referenced by initialize().

923 {
925 
926  for (unsigned int i = 0; i < _front.size(); ++i)
927  {
928  if (_front[i].size() >= 2)
929  {
930  std::vector<Point> pint1;
931  std::vector<Point> pint2;
932  std::vector<Real> length1;
933  std::vector<Real> length2;
934 
935  Real node_id = _front[i][0];
936  Node * this_node = _cutter_mesh->node_ptr(node_id);
937  mooseAssert(this_node, "Node is NULL");
938  Point & p2 = *this_node;
939 
940  if (_front[i].size() >= 4)
941  node_id = _front[i][2];
942  else
943  node_id = _front[i][1];
944 
945  this_node = _cutter_mesh->node_ptr(node_id);
946  mooseAssert(this_node, "Node is NULL");
947  Point & p1 = *this_node;
948 
949  node_id = _front[i].back();
950  this_node = _cutter_mesh->node_ptr(node_id);
951  mooseAssert(this_node, "Node is NULL");
952  Point & p4 = *this_node;
953 
954  if (_front[i].size() >= 4)
955  node_id = _front[i][_front[i].size() - 3];
956  else
957  node_id = _front[i][_front[i].size() - 2];
958 
959  this_node = _cutter_mesh->node_ptr(node_id);
960  mooseAssert(this_node, "Node is NULL");
961  Point & p3 = *this_node;
962 
963  bool do_inter1 = 1;
964  bool do_inter2 = 1;
965 
966  std::unique_ptr<PointLocatorBase> pl = _mesh.getPointLocator();
967  pl->enable_out_of_mesh_mode();
968  const Elem * elem = (*pl)(p1);
969  if (elem == nullptr)
970  do_inter1 = 0;
971  elem = (*pl)(p4);
972  if (elem == nullptr)
973  do_inter2 = 0;
974 
975  for (const auto & belem : range)
976  {
977  Point pt;
978  std::vector<Point> vertices;
979 
980  elem = belem->_elem;
981  std::unique_ptr<const Elem> curr_side = elem->side_ptr(belem->_side);
982  for (unsigned int j = 0; j < curr_side->n_nodes(); ++j)
983  {
984  const Node * node = curr_side->node_ptr(j);
985  const Point & this_point = *node;
986  vertices.push_back(this_point);
987  }
988 
989  if (findIntersection(p1, p2, vertices, pt))
990  {
991  pint1.push_back(pt);
992  length1.push_back((pt - p1) * (pt - p1));
993  }
994  if (findIntersection(p3, p4, vertices, pt))
995  {
996  pint2.push_back(pt);
997  length2.push_back((pt - p3) * (pt - p3));
998  }
999  }
1000 
1001  if (length1.size() != 0 && do_inter1)
1002  {
1003  auto it1 = std::min_element(length1.begin(), length1.end());
1004  Point inter1 = pint1[std::distance(length1.begin(), it1)];
1005  inter1 += (inter1 - p1) * _const_intersection;
1006 
1007  Node * this_node = Node::build(inter1, _cutter_mesh->n_nodes()).release();
1008  _cutter_mesh->add_node(this_node);
1009 
1010  mooseAssert(_cutter_mesh->n_nodes() - 1 > 0, "The cut mesh must be at least one element.");
1011  unsigned int n = _cutter_mesh->n_nodes() - 1;
1012 
1013  auto it = _front[i].begin();
1014  _front[i].insert(it, n);
1015 
1016  if (_cfd)
1018  }
1019 
1020  if (length2.size() != 0 && do_inter2)
1021  {
1022  auto it2 = std::min_element(length2.begin(), length2.end());
1023  Point inter2 = pint2[std::distance(length2.begin(), it2)];
1024  inter2 += (inter2 - p2) * _const_intersection;
1025 
1026  Node * this_node = Node::build(inter2, _cutter_mesh->n_nodes()).release();
1027  _cutter_mesh->add_node(this_node);
1028 
1029  dof_id_type n = _cutter_mesh->n_nodes() - 1;
1030 
1031  auto it = _front[i].begin();
1032  unsigned int m = _front[i].size();
1033  _front[i].insert(it + m, n);
1034 
1035  if (_cfd)
1037  }
1038  }
1039  }
1040 }
bool findIntersection(const Point &p1, const Point &p2, const std::vector< Point > &vertices, Point &point) const
Find directional intersection along the positive extension of the vector from p1 to p2...
bool _cfd
is it using the crack_front_definition
const Real _const_intersection
Used to define intersection points.
std::vector< dof_id_type > _tracked_crack_front_points
Front nodes that are grown from the crack front definition defined in the input therefore, they are (1) in the same order as defined in the input and (2) the number of nodes does not change.
std::vector< std::vector< dof_id_type > > _front
New boundary after growth.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
MooseMesh & _mesh
The structural mesh.
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
virtual std::unique_ptr< libMesh::PointLocatorBase > getPointLocator() const
libMesh::StoredRange< MooseMesh::const_bnd_elem_iterator, const BndElement *> * getBoundaryElementRange()
std::unique_ptr< MeshBase > _cutter_mesh
The xfem cutter mesh.
uint8_t dof_id_type

◆ findIntersection()

bool CrackMeshCut3DUserObject::findIntersection ( const Point &  p1,
const Point &  p2,
const std::vector< Point > &  vertices,
Point &  point 
) const
protected

Find directional intersection along the positive extension of the vector from p1 to p2.

Definition at line 303 of file CrackMeshCut3DUserObject.C.

Referenced by findFrontIntersection().

307 {
308  bool has_intersection = false;
309 
310  Plane elem_plane(vertices[0], vertices[1], vertices[2]);
311  Point point = vertices[0];
312  Point normal = elem_plane.unit_normal(point);
313 
314  std::array<Real, 3> plane_point = {{point(0), point(1), point(2)}};
315  std::array<Real, 3> planenormal = {{normal(0), normal(1), normal(2)}};
316  std::array<Real, 3> p_begin = {{p1(0), p1(1), p1(2)}};
317  std::array<Real, 3> p_end = {{p2(0), p2(1), p2(2)}};
318  std::array<Real, 3> cut_point = {{0.0, 0.0, 0.0}};
319 
321  &plane_point[0], &planenormal[0], &p_begin[0], &p_end[0], &cut_point[0]) == 1)
322  {
323  Point p(cut_point[0], cut_point[1], cut_point[2]);
324  Real dotp = ((p - p1) * (p2 - p1)) / ((p2 - p1) * (p2 - p1));
325  if (isInsideCutPlane(vertices, p) && dotp > 1)
326  {
327  pint = p;
328  has_intersection = true;
329  }
330  }
331  return has_intersection;
332 }
int plane_normal_line_exp_int_3d(double pp[3], double normal[3], double p1[3], double p2[3], double pint[3])
Definition: XFEMFuncs.C:403
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real p
bool isInsideCutPlane(const std::vector< Point > &_vertices, const Point &p) const
Check if point p is inside a plane.

◆ getCrackFrontPoints()

const std::vector< Point > CrackMeshCut3DUserObject::getCrackFrontPoints ( unsigned int  int) const
overridevirtual

get a set of points along a crack front from a XFEM GeometricCutUserObject

Returns
A vector which contains all crack front points

Implements CrackFrontPointsProvider.

Definition at line 1254 of file CrackMeshCut3DUserObject.C.

1255 {
1256  std::vector<Point> crack_front_points(number_crack_front_points);
1257  // number_crack_front_points is updated via
1258  // _crack_front_definition->updateNumberOfCrackFrontPoints(_crack_front_points.size())
1259  if (number_crack_front_points != _crack_front_points.size())
1260  mooseError("Number of nodes in CrackFrontDefinition does not match the number of nodes in the "
1261  "cutter_mesh.\nCrackFrontDefinition nodes = " +
1262  Moose::stringify(number_crack_front_points) +
1263  "\ncutter_mesh nodes = " + Moose::stringify(_crack_front_points.size()));
1264 
1265  for (unsigned int i = 0; i < number_crack_front_points; ++i)
1266  {
1268  Node * this_node = _cutter_mesh->node_ptr(id);
1269  mooseAssert(this_node, "Node is NULL");
1270  Point & this_point = *this_node;
1271  crack_front_points[i] = this_point;
1272  }
1273  return crack_front_points;
1274 }
std::vector< dof_id_type > _crack_front_points
updated crack front definition they are in the same order as defined in the input but the number of n...
std::string stringify(const T &t)
void mooseError(Args &&... args) const
std::unique_ptr< MeshBase > _cutter_mesh
The xfem cutter mesh.
uint8_t dof_id_type

◆ getCrackPlaneNormals()

const std::vector< RealVectorValue > CrackMeshCut3DUserObject::getCrackPlaneNormals ( unsigned int  int) const
overridevirtual

get a set of normal vectors along a crack front from a XFEM GeometricCutUserObject

Returns
A vector which contains all crack front normals

Implements CrackFrontPointsProvider.

Definition at line 1277 of file CrackMeshCut3DUserObject.C.

1278 {
1279  std::vector<RealVectorValue> crack_plane_normals(number_crack_front_points);
1280 
1281  // build the node-to-elems map
1282  std::unordered_map<dof_id_type, std::vector<dof_id_type>> node_to_elems_map;
1283  node_to_elems_map.clear();
1284  for (const auto & elem : _cutter_mesh->element_ptr_range())
1285  for (auto & node : elem->node_ref_range())
1286  node_to_elems_map[node.id()].push_back(elem->id());
1287 
1288  // build the elem-to-normal map
1289  std::unordered_map<dof_id_type, RealVectorValue> elem_to_normal_map;
1290  elem_to_normal_map.clear();
1291  for (const auto & elem : _cutter_mesh->element_ptr_range())
1292  {
1293  Point & p1 = *elem->node_ptr(0);
1294  Point & p2 = *elem->node_ptr(1);
1295  Point & p3 = *elem->node_ptr(2);
1296  Plane elem_plane(p3, p2, p1); // to match the current normal of 0,0,-1;
1297  RealVectorValue normal = elem_plane.unit_normal(p1);
1298  elem_to_normal_map[elem->id()] = normal;
1299  }
1300 
1301  // for any front node, the normal is averaged based on the normals of all elements sharing this
1302  // node this code may fail when the front node has no element connected to it, e.g. refinement at
1303  // step 1 has to be disabled
1304  for (unsigned int i = 0; i < number_crack_front_points; ++i)
1305  {
1307  std::vector<dof_id_type> elems = node_to_elems_map[id];
1308  unsigned int n_elem = elems.size();
1309 
1310  RealVectorValue normal_avr = 0;
1311  for (unsigned int j = 0; j < n_elem; ++j)
1312  normal_avr += elem_to_normal_map[elems[j]];
1313  normal_avr = normal_avr / n_elem;
1314  crack_plane_normals[i] = normal_avr;
1315  }
1316  return crack_plane_normals;
1317 }
dof_id_type n_elem(const MeshBase::const_element_iterator &begin, const MeshBase::const_element_iterator &end)
std::vector< dof_id_type > _crack_front_points
updated crack front definition they are in the same order as defined in the input but the number of n...
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
std::unique_ptr< MeshBase > _cutter_mesh
The xfem cutter mesh.
uint8_t dof_id_type

◆ getCutSubdomainID() [1/2]

virtual CutSubdomainID GeometricCutUserObject::getCutSubdomainID ( const Node ) const
inlinevirtualinherited

Get CutSubdomainID telling which side the node belongs to relative to the cut.

The returned ID contains no physical meaning, but should be consistent throughout the simulation.

Parameters
nodePointer to the node
Returns
An unsigned int indicating the side

Definition at line 189 of file GeometricCutUserObject.h.

Referenced by CutElementSubdomainModifier::computeSubdomainID(), CutSubdomainIDAux::computeValue(), and XFEM::getCutSubdomainID().

190  {
191  mooseError("Objects that inherit from GeometricCutUserObject should override the "
192  "getCutSubdomainID method");
193  return 0;
194  }
void mooseError(Args &&... args) const

◆ getCutSubdomainID() [2/2]

CutSubdomainID GeometricCutUserObject::getCutSubdomainID ( const Elem *  elem) const
inherited

Get the CutSubdomainID for the given element.

Parameters
nodePointer to the element
Returns
The CutSubdomainID

Definition at line 285 of file GeometricCutUserObject.C.

286 {
287  return _xfem->getCutSubdomainID(this, elem);
288 }
std::shared_ptr< XFEM > _xfem
Pointer to the XFEM controller object.

◆ getCutterMesh()

MeshBase & MeshCutUserObjectBase::getCutterMesh ( ) const
inherited

Get a reference to the cutter mesh.

Returns
reference to the cutter mesh

Definition at line 58 of file MeshCutUserObjectBase.C.

Referenced by XFEMCutMeshOutput::output().

59 {
60  mooseAssert(_cutter_mesh, "MeshCutUserObjectBase::getCutterMesh _cutter_mesh is nullptr");
61  return *_cutter_mesh;
62 }
std::unique_ptr< MeshBase > _cutter_mesh
The xfem cutter mesh.

◆ getFrontPointsIndex()

std::vector< int > CrackMeshCut3DUserObject::getFrontPointsIndex ( ) const

Get crack front points in the active segment -1 means inactive; positive is the point's index in the Crack Front Definition starting from 0.

Definition at line 1320 of file CrackMeshCut3DUserObject.C.

Referenced by findActiveBoundaryDirection(), CrackGrowthReporterBase::getCutterMeshIndices(), and growFront().

1321 {
1322  // Crack front definition using the cutter mesh currently only supports one active crack front
1323  // segment
1324  unsigned int ibnd = 0;
1325  unsigned int size_this_segment = _active_boundary[ibnd].size();
1326  unsigned int n_inactive_nodes = _inactive_boundary_pos.size();
1327 
1328  std::vector<int> index(size_this_segment, -1);
1329 
1330  unsigned int i1 = n_inactive_nodes == 0 ? 0 : 1;
1331  unsigned int i2 = n_inactive_nodes == 0 ? size_this_segment : size_this_segment - 1;
1332 
1333  // loop over active front points
1334  for (unsigned int j = i1; j < i2; ++j)
1335  {
1336  dof_id_type id = _active_boundary[ibnd][j];
1337  auto it = std::find(_crack_front_points.begin(), _crack_front_points.end(), id);
1338  index[j] = std::distance(_crack_front_points.begin(), it);
1339  }
1340 
1341  return index;
1342 }
std::vector< dof_id_type > _crack_front_points
updated crack front definition they are in the same order as defined in the input but the number of n...
std::vector< unsigned int > _inactive_boundary_pos
Inactive boundary.
std::vector< std::vector< dof_id_type > > _active_boundary
Active boundary nodes where growth is allowed.
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
uint8_t dof_id_type

◆ getInterfaceID()

unsigned int GeometricCutUserObject::getInterfaceID ( ) const
inlineinherited

Get the interface ID for this cutting object.

Returns
the interface ID

Definition at line 167 of file GeometricCutUserObject.h.

167 { return _interface_id; };
unsigned int _interface_id
Associated interface id.

◆ getNumberOfCrackFrontPoints()

unsigned int CrackMeshCut3DUserObject::getNumberOfCrackFrontPoints ( ) const
overridevirtual

Return the total number of crack front points.

Returns the number of crack front points for use by CrackFrontDefinition. Overrides the virtual function defined in CrackFrontPointsProvider.

Reimplemented from GeometricCutUserObject.

Definition at line 1345 of file CrackMeshCut3DUserObject.C.

1346 {
1347  return _num_crack_front_points;
1348 }
unsigned int _num_crack_front_points
Total number of crack front points in the mesh cutter.

◆ getRelativePosition()

Real CrackMeshCut3DUserObject::getRelativePosition ( const Point &  p1,
const Point &  p2,
const Point &  p 
) const
protected

Get the relative position of p from p1.

Definition at line 343 of file CrackMeshCut3DUserObject.C.

346 {
347  Real full_len = (p2 - p1).norm();
348  Real len_p1_p = (p - p1).norm();
349  return len_p1_p / full_len;
350 }
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
auto norm(const T &a)
const Real p

◆ growFront()

void CrackMeshCut3DUserObject::growFront ( )
protected

Grow the cutter mesh.

Definition at line 841 of file CrackMeshCut3DUserObject.C.

Referenced by initialize().

842 {
843  _front.clear();
844 
845  for (unsigned int i = 0; i < _active_boundary.size(); ++i)
846  {
847  std::vector<dof_id_type> temp;
848 
849  unsigned int i1 = 1;
850  unsigned int i2 = _active_boundary[i].size() - 1;
851  if (_inactive_boundary_pos.size() == 0)
852  {
853  i1 = 0;
854  i2 = _active_boundary[i].size();
855  }
856 
857  std::vector<int> index = getFrontPointsIndex();
858  for (unsigned int j = i1; j < i2; ++j)
859  {
860  Node * this_node = _cutter_mesh->node_ptr(_active_boundary[i][j]);
861  mooseAssert(this_node, "Node is NULL");
862  Point & this_point = *this_node;
863  Point dir = _active_direction[i][j];
864 
865  Point x;
866  Real growth_increment = 0;
867  switch (_growth_increment_method)
868  {
870  {
871  growth_increment = _func_v->value(0, Point(0, 0, 0));
872  break;
873  }
875  {
876  int ind = index[j];
877  if (index[j] == -1)
878  growth_increment = 0;
879  else
880  growth_increment = _growth_inc_reporter->at(ind);
881  break;
882  }
883  default:
884  {
885  mooseError("This growth_increment_method is not pre-defined!");
886  break;
887  }
888  }
889  for (unsigned int k = 0; k < 3; ++k)
890  x(k) = this_point(k) + dir(k) * growth_increment;
891 
892  this_node = Node::build(x, _cutter_mesh->n_nodes()).release();
893  _cutter_mesh->add_node(this_node);
894 
895  dof_id_type id = _cutter_mesh->n_nodes() - 1;
896  temp.push_back(id);
897 
898  if (_cfd)
899  {
900  auto it = std::find(_tracked_crack_front_points.begin(),
902  _active_boundary[0][j]);
903  if (it != _tracked_crack_front_points.end())
904  {
905  unsigned int pos = std::distance(_tracked_crack_front_points.begin(), it);
906  _tracked_crack_front_points[pos] = id;
907  }
908  }
909  }
910 
911  _front.push_back(temp);
912  }
913 }
std::vector< int > getFrontPointsIndex() const
Get crack front points in the active segment -1 means inactive; positive is the point&#39;s index in the ...
bool _cfd
is it using the crack_front_definition
const GrowthRateEnum _growth_increment_method
The growth increment method for growing mesh at the front.
std::vector< dof_id_type > _tracked_crack_front_points
Front nodes that are grown from the crack front definition defined in the input therefore, they are (1) in the same order as defined in the input and (2) the number of nodes does not change.
std::vector< std::vector< dof_id_type > > _front
New boundary after growth.
const std::vector< double > x
std::vector< unsigned int > _inactive_boundary_pos
Inactive boundary.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
std::vector< std::vector< dof_id_type > > _active_boundary
Active boundary nodes where growth is allowed.
void mooseError(Args &&... args) const
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
virtual Real value(Real t, const Point &p) const
std::unique_ptr< MeshBase > _cutter_mesh
The xfem cutter mesh.
std::vector< std::vector< Point > > _active_direction
Growth direction for active boundaries.
const std::vector< Real > *const _growth_inc_reporter
Pointer to reporter with growth increment if available.
static const std::string k
Definition: NS.h:134
uint8_t dof_id_type

◆ initialize()

void CrackMeshCut3DUserObject::initialize ( )
overridevirtual

Reimplemented from GeometricCutUserObject.

Definition at line 137 of file CrackMeshCut3DUserObject.C.

138 {
139  _is_mesh_modified = false;
140 
141  if (_grow)
142  {
143  if (_t_step == 1)
145 
146  _stop = 0;
147 
148  if (_t_step > 1 && _t_step != _last_step_initialized)
149  {
151 
152  for (unsigned int i = 0; i < _n_step_growth; ++i)
153  {
154  if (_stop != 1)
155  {
158  _is_mesh_modified = true;
159  growFront();
160  sortFrontNodes();
161  if (_inactive_boundary_pos.size() != 0)
163  refineFront();
164  triangulation();
165  joinBoundary();
166  }
167  }
168  }
169  }
170  if (_cfd)
172 }
void isCutterModified(const bool is_cutter_modified)
Set the value of _is_cutter_modified.
int _last_step_initialized
Time step information needed to advance a 3D crack only at the real beginning of a time step...
void findActiveBoundaryNodes()
Find all active boundary nodes in the cutter mesh Find boundary nodes that will grow; nodes outside o...
unsigned int _n_step_growth
Number of steps to grow the mesh.
bool _cfd
is it using the crack_front_definition
void growFront()
Grow the cutter mesh.
void triangulation()
Create tri3 elements between the new front and the old front.
void refineFront()
Refine the mesh at the front.
void sortFrontNodes()
Sort the front nodes.
void findFrontIntersection()
Find front-structure intersections.
bool _is_mesh_modified
Indicator that shows if the cutting mesh is modified or not in this calculation step.
bool _stop
Variables to help control the work flow.
std::vector< unsigned int > _inactive_boundary_pos
Inactive boundary.
void joinBoundary()
Join active boundaries and inactive boundaries to be the new boundary.
CrackFrontDefinition * _crack_front_definition
The crack front definition.
void findActiveBoundaryDirection()
Find growth direction at each active node.

◆ initializeCrackFrontNodes()

void CrackMeshCut3DUserObject::initializeCrackFrontNodes ( )
protected

Determine initial crack front nodes from cutter mesh.

Definition at line 573 of file CrackMeshCut3DUserObject.C.

Referenced by CrackMeshCut3DUserObject().

574 {
576  _tracked_crack_front_points.assign(_active_boundary[0].rbegin(), _active_boundary[0].rend());
577 
580 }
std::vector< dof_id_type > _tracked_crack_front_points
Front nodes that are grown from the crack front definition defined in the input therefore, they are (1) in the same order as defined in the input and (2) the number of nodes does not change.
std::vector< dof_id_type > _crack_front_points
updated crack front definition they are in the same order as defined in the input but the number of n...
unsigned int _num_crack_front_points
Total number of crack front points in the mesh cutter.
std::vector< std::vector< dof_id_type > > _active_boundary
Active boundary nodes where growth is allowed.

◆ initialSetup()

void CrackMeshCut3DUserObject::initialSetup ( )
overridevirtual

Reimplemented from ElementUserObject.

Definition at line 129 of file CrackMeshCut3DUserObject.C.

130 {
131  if (_cfd)
133  &_fe_problem.getUserObject<CrackFrontDefinition>("crackFrontDefinition");
134 }
T & getUserObject(const std::string &name, unsigned int tid=0) const
bool _cfd
is it using the crack_front_definition
FEProblemBase & _fe_problem
Class used in fracture integrals to define geometric characteristics of the crack front...
CrackFrontDefinition * _crack_front_definition
The crack front definition.

◆ intersectWithEdge()

bool CrackMeshCut3DUserObject::intersectWithEdge ( const Point &  p1,
const Point &  p2,
const std::vector< Point > &  _vertices,
Point &  point 
) const
protectedvirtual

Check if a line intersects with an element.

Definition at line 272 of file CrackMeshCut3DUserObject.C.

276 {
277  bool has_intersection = false;
278 
279  Plane elem_plane(vertices[0], vertices[1], vertices[2]);
280  Point point = vertices[0];
281  Point normal = elem_plane.unit_normal(point);
282 
283  std::array<Real, 3> plane_point = {{point(0), point(1), point(2)}};
284  std::array<Real, 3> planenormal = {{normal(0), normal(1), normal(2)}};
285  std::array<Real, 3> edge_point1 = {{p1(0), p1(1), p1(2)}};
286  std::array<Real, 3> edge_point2 = {{p2(0), p2(1), p2(2)}};
287  std::array<Real, 3> cut_point = {{0.0, 0.0, 0.0}};
288 
290  &plane_point[0], &planenormal[0], &edge_point1[0], &edge_point2[0], &cut_point[0]) == 1)
291  {
292  Point temp_p(cut_point[0], cut_point[1], cut_point[2]);
293  if (isInsideCutPlane(vertices, temp_p) && isInsideEdge(p1, p2, temp_p))
294  {
295  pint = temp_p;
296  has_intersection = true;
297  }
298  }
299  return has_intersection;
300 }
int plane_normal_line_exp_int_3d(double pp[3], double normal[3], double p1[3], double p2[3], double pint[3])
Definition: XFEMFuncs.C:403
bool isInsideEdge(const Point &p1, const Point &p2, const Point &p) const
Check if point p is inside the edge p1-p2.
bool isInsideCutPlane(const std::vector< Point > &_vertices, const Point &p) const
Check if point p is inside a plane.

◆ isInsideCutPlane()

bool CrackMeshCut3DUserObject::isInsideCutPlane ( const std::vector< Point > &  _vertices,
const Point &  p 
) const
protected

Check if point p is inside a plane.

Definition at line 353 of file CrackMeshCut3DUserObject.C.

Referenced by findIntersection(), and intersectWithEdge().

355 {
356  unsigned int n_node = vertices.size();
357 
358  Plane elem_plane(vertices[0], vertices[1], vertices[2]);
359  Point normal = elem_plane.unit_normal(vertices[0]);
360 
361  bool inside = false;
362  unsigned int counter = 0;
363 
364  for (unsigned int i = 0; i < n_node; ++i)
365  {
366  unsigned int iplus1 = (i < n_node - 1 ? i + 1 : 0);
367  Point middle2p = p - 0.5 * (vertices[i] + vertices[iplus1]);
368  const Point side_tang = vertices[iplus1] - vertices[i];
369  Point side_norm = side_tang.cross(normal);
370  Xfem::normalizePoint(middle2p);
371  Xfem::normalizePoint(side_norm);
372  if (middle2p * side_norm <= 0.0)
373  counter += 1;
374  }
375  if (counter == n_node)
376  inside = true;
377  return inside;
378 }
const Real p
void normalizePoint(Point &p)
Definition: XFEMFuncs.C:621

◆ isInsideEdge()

bool CrackMeshCut3DUserObject::isInsideEdge ( const Point &  p1,
const Point &  p2,
const Point &  p 
) const
protected

Check if point p is inside the edge p1-p2.

Definition at line 335 of file CrackMeshCut3DUserObject.C.

Referenced by intersectWithEdge().

336 {
337  Real dotp1 = (p1 - p) * (p2 - p1);
338  Real dotp2 = (p2 - p) * (p2 - p1);
339  return (dotp1 * dotp2 <= 0.0);
340 }
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real p

◆ joinBoundary()

void CrackMeshCut3DUserObject::joinBoundary ( )
protected

Join active boundaries and inactive boundaries to be the new boundary.

Definition at line 1214 of file CrackMeshCut3DUserObject.C.

Referenced by initialize().

1215 {
1216  if (_inactive_boundary_pos.size() == 0)
1217  {
1218  _boundary = _front[0];
1219  _boundary.pop_back();
1220  return;
1221  }
1222 
1223  std::vector<dof_id_type> full_front;
1224 
1225  unsigned int size1 = _active_boundary.size();
1226 
1227  for (unsigned int i = 0; i < size1; ++i)
1228  {
1229  unsigned int size2 = _active_boundary[i].size();
1230 
1231  dof_id_type bd1 = _active_boundary[i][size2 - 1];
1232  dof_id_type bd2 = _active_boundary[i + 1 < size1 ? i + 1 : 0][0];
1233 
1234  full_front.insert(full_front.end(), _front[i].begin(), _front[i].end());
1235 
1236  auto it1 = std::find(_boundary.begin(), _boundary.end(), bd1);
1237  unsigned int pos1 = std::distance(_boundary.begin(), it1);
1238  auto it2 = std::find(_boundary.begin(), _boundary.end(), bd2);
1239  unsigned int pos2 = std::distance(_boundary.begin(), it2);
1240 
1241  if (pos1 <= pos2)
1242  full_front.insert(full_front.end(), _boundary.begin() + pos1, _boundary.begin() + pos2 + 1);
1243  else
1244  {
1245  full_front.insert(full_front.end(), _boundary.begin() + pos1, _boundary.end());
1246  full_front.insert(full_front.end(), _boundary.begin(), _boundary.begin() + pos2 + 1);
1247  }
1248  }
1249 
1250  _boundary = full_front;
1251 }
std::vector< std::vector< dof_id_type > > _front
New boundary after growth.
std::vector< unsigned int > _inactive_boundary_pos
Inactive boundary.
std::vector< std::vector< dof_id_type > > _active_boundary
Active boundary nodes where growth is allowed.
std::vector< dof_id_type > _boundary
Boundary nodes of the cutter mesh.
uint8_t dof_id_type

◆ refineBoundary()

void CrackMeshCut3DUserObject::refineBoundary ( )
protected

If boundary nodes are too sparse, add nodes in between.

Definition at line 594 of file CrackMeshCut3DUserObject.C.

595 {
596  std::vector<dof_id_type> new_boundary_order(_boundary.begin(), _boundary.end());
597 
598  mooseAssert(_boundary.size() >= 2, "Boundary must be at least two nodes");
599 
600  for (unsigned int i = _boundary.size() - 1; i >= 1; --i)
601  {
602  dof_id_type node1 = _boundary[i - 1];
603  dof_id_type node2 = _boundary[i];
604 
605  Real distance = findDistance(node1, node2);
606 
607  if (distance > _size_control)
608  {
609  unsigned int n = static_cast<unsigned int>(distance / _size_control);
610  std::array<Real, 3> x1;
611  std::array<Real, 3> x2;
612 
613  Node * n1 = _cutter_mesh->node_ptr(node1);
614  mooseAssert(n1 != nullptr, "Node is NULL");
615  Point & p1 = *n1;
616  Node * n2 = _cutter_mesh->node_ptr(node2);
617  mooseAssert(n2 != nullptr, "Node is NULL");
618  Point & p2 = *n2;
619 
620  for (unsigned int j = 0; j < 3; ++j)
621  {
622  x1[j] = p1(j);
623  x2[j] = p2(j);
624  }
625 
626  for (unsigned int j = 0; j < n; ++j)
627  {
628  Point x;
629  for (unsigned int k = 0; k < 3; ++k)
630  x(k) = x2[k] - (x2[k] - x1[k]) * (j + 1) / (n + 1);
631 
632  Node * this_node = Node::build(x, _cutter_mesh->n_nodes()).release();
633  _cutter_mesh->add_node(this_node);
634 
635  dof_id_type id = _cutter_mesh->n_nodes() - 1;
636  auto it = new_boundary_order.begin();
637  new_boundary_order.insert(it + i, id);
638  }
639  }
640  }
641 
642  _boundary = new_boundary_order;
643  mooseAssert(_boundary.size() > 0, "Boundary should not have zero size");
644  _boundary.pop_back();
645 }
Real _size_control
Used for cutter mesh refinement and front advancement.
Real findDistance(dof_id_type node1, dof_id_type node2)
Find distance between two nodes.
Real distance(const Point &p)
const std::vector< double > x
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
std::unique_ptr< MeshBase > _cutter_mesh
The xfem cutter mesh.
static const std::string k
Definition: NS.h:134
std::vector< dof_id_type > _boundary
Boundary nodes of the cutter mesh.
uint8_t dof_id_type

◆ refineFront()

void CrackMeshCut3DUserObject::refineFront ( )
protected

Refine the mesh at the front.

Definition at line 1043 of file CrackMeshCut3DUserObject.C.

Referenced by initialize().

1044 {
1045  std::vector<std::vector<dof_id_type>> new_front(_front.begin(), _front.end());
1046 
1047  for (unsigned int ifront = 0; ifront < _front.size(); ++ifront)
1048  {
1049  unsigned int i1 = _front[ifront].size() - 1;
1050  if (_inactive_boundary_pos.size() == 0)
1051  i1 = _front[ifront].size();
1052 
1053  for (unsigned int i = i1; i >= 1; --i)
1054  {
1055  unsigned int i2 = i;
1056  if (_inactive_boundary_pos.size() == 0)
1057  i2 = (i <= _front[ifront].size() - 1 ? i : 0);
1058 
1059  dof_id_type node1 = _front[ifront][i - 1];
1060  dof_id_type node2 = _front[ifront][i2];
1061  Real distance = findDistance(node1, node2);
1062 
1063  if (distance > _size_control)
1064  {
1065  unsigned int n = static_cast<int>(distance / _size_control);
1066  std::array<Real, 3> x1;
1067  std::array<Real, 3> x2;
1068 
1069  Node * this_node = _cutter_mesh->node_ptr(node1);
1070  mooseAssert(this_node, "Node is NULL");
1071  Point & p1 = *this_node;
1072  this_node = _cutter_mesh->node_ptr(node2);
1073  mooseAssert(this_node, "Node is NULL");
1074  Point & p2 = *this_node;
1075 
1076  for (unsigned int j = 0; j < 3; ++j)
1077  {
1078  x1[j] = p1(j);
1079  x2[j] = p2(j);
1080  }
1081 
1082  for (unsigned int j = 0; j < n; ++j)
1083  {
1084  Point x;
1085  for (unsigned int k = 0; k < 3; ++k)
1086  x(k) = x2[k] - (x2[k] - x1[k]) * (j + 1) / (n + 1);
1087 
1088  Node * this_node = Node::build(x, _cutter_mesh->n_nodes()).release();
1089  _cutter_mesh->add_node(this_node);
1090 
1091  dof_id_type id = _cutter_mesh->n_nodes() - 1;
1092 
1093  auto it = new_front[ifront].begin();
1094  new_front[ifront].insert(it + i, id);
1095  }
1096  }
1097  }
1098  }
1099 
1100  _front = new_front;
1101 
1102  if (_cfd)
1103  {
1104  if (_front[0][0] == _tracked_crack_front_points[0] &&
1105  _front[0].back() == _tracked_crack_front_points.back())
1107  else if (_front[0][0] == _tracked_crack_front_points.back() &&
1108  _front[0].back() == _tracked_crack_front_points[0])
1109  {
1111  std::reverse(_crack_front_points.begin(), _crack_front_points.end());
1112  }
1113  else
1114  mooseError("the crack front and the tracked crack front definition must match in terms of "
1115  "their end nodes\n _front[0][0]= " +
1116  Moose::stringify(_front[0][0]) + "\n _tracked_crack_front_points[0]= " +
1118  "\n _tracked_crack_front_points.back()=" +
1120 
1123  }
1124 }
Real _size_control
Used for cutter mesh refinement and front advancement.
bool _cfd
is it using the crack_front_definition
Real findDistance(dof_id_type node1, dof_id_type node2)
Find distance between two nodes.
Real distance(const Point &p)
void updateNumberOfCrackFrontPoints(const std::size_t num_points)
Change the number of crack front nodes.
std::vector< dof_id_type > _tracked_crack_front_points
Front nodes that are grown from the crack front definition defined in the input therefore, they are (1) in the same order as defined in the input and (2) the number of nodes does not change.
std::vector< dof_id_type > _crack_front_points
updated crack front definition they are in the same order as defined in the input but the number of n...
std::vector< std::vector< dof_id_type > > _front
New boundary after growth.
const std::vector< double > x
unsigned int _num_crack_front_points
Total number of crack front points in the mesh cutter.
std::string stringify(const T &t)
std::vector< unsigned int > _inactive_boundary_pos
Inactive boundary.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void mooseError(Args &&... args) const
CrackFrontDefinition * _crack_front_definition
The crack front definition.
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
std::unique_ptr< MeshBase > _cutter_mesh
The xfem cutter mesh.
static const std::string k
Definition: NS.h:134
uint8_t dof_id_type

◆ serialize()

void GeometricCutUserObject::serialize ( std::string &  serialized_buffer)
protectedinherited

Methods to pack/unpack the _marked_elems_2d and _marked_elems_3d data into a structure suitable for parallel communication.

Definition at line 206 of file GeometricCutUserObject.C.

Referenced by GeometricCutUserObject::finalize().

207 {
208  // stream for serializing the _marked_elems_2d and _marked_elems_3d data structures to a byte
209  // stream
210  std::ostringstream oss;
211  dataStore(oss, _marked_elems_2d, this);
212  dataStore(oss, _marked_elems_3d, this);
213 
214  // Populate the passed in string pointer with the string stream's buffer contents
215  serialized_buffer.assign(oss.str());
216 }
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...
void dataStore(std::ostream &stream, Xfem::CutFace &cf, void *context)
std::map< unsigned int, std::vector< Xfem::GeomMarkedElemInfo3D > > _marked_elems_3d

◆ setInterfaceID()

void GeometricCutUserObject::setInterfaceID ( unsigned int  interface_id)
inlineinherited

Set the interface ID for this cutting object.

Parameters
theinterface ID

Definition at line 173 of file GeometricCutUserObject.h.

Referenced by XFEM::addGeometricCut().

173 { _interface_id = interface_id; };
unsigned int _interface_id
Associated interface id.

◆ shouldHealMesh()

bool GeometricCutUserObject::shouldHealMesh ( ) const
inlineinherited

Should the elements cut by this cutting object be healed in the current time step?

Returns
true if the cut element should be healed

Definition at line 180 of file GeometricCutUserObject.h.

Referenced by XFEM::cutMeshWithEFA().

180 { return _heal_always; };
bool _heal_always
Heal the mesh.

◆ sortBoundaryNodes()

void CrackMeshCut3DUserObject::sortBoundaryNodes ( )
protected

Sort boundary nodes to be in the right order along the boundary.

Definition at line 513 of file CrackMeshCut3DUserObject.C.

Referenced by CrackMeshCut3DUserObject().

514 {
515  _boundary.clear();
516 
517  for (auto it = _boundary_edges.begin(); it != _boundary_edges.end(); ++it)
518  {
519  dof_id_type node1 = (*it)._id1;
520  dof_id_type node2 = (*it)._id2;
521 
522  mooseAssert(_boundary_map.find(node1) != _boundary_map.end(),
523  "_boundary_map does not have this key");
524  mooseAssert(_boundary_map.find(node2) != _boundary_map.end(),
525  "_boundary_map does not have this key");
526 
527  _boundary_map.find(node1)->second.push_back(node2);
528  _boundary_map.find(node2)->second.push_back(node1);
529  }
530 
531  auto it = _boundary_map.begin();
532  while (it != _boundary_map.end())
533  {
534  if (it->second.size() != 2)
535  mooseError(
536  "Boundary nodes in the cutter mesh must have exactly two neighbors; this one has: ",
537  it->second.size());
538  ++it;
539  }
540 
541  auto it2 = _boundary_edges.begin();
542  dof_id_type node1 = (*it2)._id1;
543  dof_id_type node2 = (*it2)._id2;
544  _boundary.push_back(node1);
545  _boundary.push_back(node2);
546 
547  for (unsigned int i = 0; i < _boundary_edges.size() - 1; ++i)
548  {
549  mooseAssert(_boundary_map.find(node2) != _boundary_map.end(),
550  "_boundary_map does not have this key");
551 
552  dof_id_type node3 = _boundary_map.find(node2)->second[0];
553  dof_id_type node4 = _boundary_map.find(node2)->second[1];
554 
555  if (node3 == node1)
556  {
557  _boundary.push_back(node4);
558  node1 = node2;
559  node2 = node4;
560  }
561  else if (node4 == node1)
562  {
563  _boundary.push_back(node3);
564  node1 = node2;
565  node2 = node3;
566  }
567  else
568  mooseError("Discontinuity in cutter boundary");
569  }
570 }
std::map< dof_id_type, std::vector< dof_id_type > > _boundary_map
A map of boundary nodes and their neighbors.
void mooseError(Args &&... args) const
std::set< Xfem::CutEdge > _boundary_edges
Edges at the boundary.
std::vector< dof_id_type > _boundary
Boundary nodes of the cutter mesh.
uint8_t dof_id_type

◆ sortFrontNodes()

void CrackMeshCut3DUserObject::sortFrontNodes ( )
protected

Sort the front nodes.

Definition at line 916 of file CrackMeshCut3DUserObject.C.

Referenced by initialize().

918 {
919 }

◆ threadJoin()

void GeometricCutUserObject::threadJoin ( const UserObject y)
overridevirtualinherited

Implements ElementUserObject.

Definition at line 130 of file GeometricCutUserObject.C.

131 {
132  const auto & gcuo = static_cast<const GeometricCutUserObject &>(y);
133 
134  for (const auto & it : gcuo._marked_elems_2d)
135  {
136  mooseAssert(_marked_elems_2d.find(it.first) == _marked_elems_2d.end(),
137  "Element already inserted in map from a different thread");
138  _marked_elems_2d[it.first] = it.second;
139  }
140  for (const auto & it : gcuo._marked_elems_3d)
141  {
142  mooseAssert(_marked_elems_3d.find(it.first) == _marked_elems_3d.end(),
143  "Element already inserted in map from a different thread");
144  _marked_elems_3d[it.first] = it.second;
145  }
146 }
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...
const std::vector< double > y
std::map< unsigned int, std::vector< Xfem::GeomMarkedElemInfo3D > > _marked_elems_3d

◆ triangulation()

void CrackMeshCut3DUserObject::triangulation ( )
protected

Create tri3 elements between the new front and the old front.

Definition at line 1127 of file CrackMeshCut3DUserObject.C.

Referenced by initialize().

1128 {
1129 
1130  mooseAssert(_active_boundary.size() == _front.size(),
1131  "_active_boundary and _front must be the same size!");
1132 
1133  if (_inactive_boundary_pos.size() == 0)
1134  {
1135  _active_boundary[0].push_back(_active_boundary[0][0]);
1136  _front[0].push_back(_front[0][0]);
1137  }
1138 
1139  // loop over active segments
1140  for (unsigned int k = 0; k < _front.size(); ++k)
1141  {
1142  unsigned int n1 = _active_boundary[k].size();
1143  unsigned int n2 = _front[k].size();
1144 
1145  unsigned int i1 = 0;
1146  unsigned int i2 = 0;
1147 
1148  // stop when all nodes are associated with an element
1149  while (!(i1 == n1 - 1 && i2 == n2 - 1))
1150  {
1151  std::vector<dof_id_type> elem;
1152 
1153  dof_id_type p1 = _active_boundary[k][i1]; // node in the old front
1154  dof_id_type p2 = _front[k][i2]; // node in the new front
1155 
1156  if (i1 != n1 - 1 && i2 != n2 - 1)
1157  {
1158  dof_id_type p3 = _active_boundary[k][i1 + 1]; // next node in the old front
1159  dof_id_type p4 = _front[k][i2 + 1]; // next node in the new front
1160 
1161  elem.push_back(p1);
1162  elem.push_back(p2);
1163 
1164  Real d1 = findDistance(p1, p4);
1165  Real d2 = findDistance(p3, p2);
1166 
1167  if (d1 < d2)
1168  {
1169  elem.push_back(p4);
1170  i2++;
1171  }
1172 
1173  else
1174  {
1175  elem.push_back(p3);
1176  i1++;
1177  }
1178  }
1179 
1180  else if (i1 == n1 - 1)
1181  {
1182  dof_id_type p4 = _front[k][i2 + 1]; // next node in the new front
1183 
1184  elem.push_back(p1);
1185  elem.push_back(p2);
1186  elem.push_back(p4);
1187  i2++;
1188  }
1189 
1190  else if (i2 == n2 - 1)
1191  {
1192  dof_id_type p3 = _active_boundary[k][i1 + 1]; // next node in the old front
1193 
1194  elem.push_back(p1);
1195  elem.push_back(p2);
1196  elem.push_back(p3);
1197  i1++;
1198  }
1199 
1200  Elem * new_elem = Elem::build(TRI3).release();
1201 
1202  for (unsigned int i = 0; i < _cut_elem_nnode; ++i)
1203  {
1204  mooseAssert(_cutter_mesh->node_ptr(elem[i]) != nullptr, "Node is NULL");
1205  new_elem->set_node(i, _cutter_mesh->node_ptr(elem[i]));
1206  }
1207 
1208  _cutter_mesh->add_elem(new_elem);
1209  }
1210  }
1211 }
const unsigned int _cut_elem_nnode
The cutter mesh has triangluar elements only.
Real findDistance(dof_id_type node1, dof_id_type node2)
Find distance between two nodes.
std::vector< std::vector< dof_id_type > > _front
New boundary after growth.
std::vector< unsigned int > _inactive_boundary_pos
Inactive boundary.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
std::vector< std::vector< dof_id_type > > _active_boundary
Active boundary nodes where growth is allowed.
std::unique_ptr< MeshBase > _cutter_mesh
The xfem cutter mesh.
static const std::string k
Definition: NS.h:134
uint8_t dof_id_type

◆ usesMesh()

bool CrackFrontPointsProvider::usesMesh ( ) const
inlineinherited

Getter for if a cutter mesh is used in a derived class.

Returns
bool indicating if a cutter mesh is used in the derived class

Definition at line 45 of file CrackFrontPointsProvider.h.

Referenced by CrackFrontDefinition::initialSetup().

45 { return _uses_mesh; }
const bool _uses_mesh
bool to set if CrackFrontPointsProvider derived objects use a cutter mesh

◆ validParams()

InputParameters CrackMeshCut3DUserObject::validParams ( )
static

Definition at line 27 of file CrackMeshCut3DUserObject.C.

28 {
30  MooseEnum growthDirection("MAX_HOOP_STRESS FUNCTION", "FUNCTION");
31  params.addParam<MooseEnum>(
32  "growth_dir_method", growthDirection, "choose from FUNCTION, MAX_HOOP_STRESS");
33  MooseEnum growthRate("REPORTER FUNCTION", "FUNCTION");
34  params.addParam<MooseEnum>(
35  "growth_increment_method", growthRate, "choose from FUNCTION, REPORTER");
36  params.addParam<FunctionName>("growth_direction_x",
37  "Function defining x-component of crack growth direction");
38  params.addParam<FunctionName>("growth_direction_y",
39  "Function defining y-component of crack growth direction");
40  params.addParam<FunctionName>("growth_direction_z",
41  "Function defining z-component of crack growth direction");
42 
43  params.addParam<VectorPostprocessorName>(
44  "ki_vectorpostprocessor", "II_KI_1", "Name of the VectorPostprocessor that computes K_I");
45  params.addParam<VectorPostprocessorName>("kii_vectorpostprocessor",
46  "II_KII_1",
47  "The name of the vectorpostprocessor that contains KII");
48  params.addParam<ReporterName>("growth_reporter",
49  "The name of the Reporter that computes the growth increment");
50  params.addParam<FunctionName>("growth_rate", "Function defining crack growth rate");
51  params.addParam<Real>(
52  "size_control", 0, "Criterion for refining elements while growing the crack");
53  params.addParam<unsigned int>("n_step_growth", 0, "Number of steps for crack growth");
54  params.addClassDescription("Creates a UserObject for a mesh cutter in 3D problems");
55  return params;
56 }
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)

Member Data Documentation

◆ _active_boundary

std::vector<std::vector<dof_id_type> > CrackMeshCut3DUserObject::_active_boundary
protected

◆ _active_direction

std::vector<std::vector<Point> > CrackMeshCut3DUserObject::_active_direction
protected

Growth direction for active boundaries.

Definition at line 144 of file CrackMeshCut3DUserObject.h.

Referenced by findActiveBoundaryDirection(), and growFront().

◆ _boundary

std::vector<dof_id_type> CrackMeshCut3DUserObject::_boundary
protected

Boundary nodes of the cutter mesh.

Definition at line 122 of file CrackMeshCut3DUserObject.h.

Referenced by findActiveBoundaryNodes(), joinBoundary(), refineBoundary(), and sortBoundaryNodes().

◆ _boundary_edges

std::set<Xfem::CutEdge> CrackMeshCut3DUserObject::_boundary_edges
protected

Edges at the boundary.

Definition at line 138 of file CrackMeshCut3DUserObject.h.

Referenced by findBoundaryEdges(), and sortBoundaryNodes().

◆ _boundary_map

std::map<dof_id_type, std::vector<dof_id_type> > CrackMeshCut3DUserObject::_boundary_map
protected

A map of boundary nodes and their neighbors.

Definition at line 141 of file CrackMeshCut3DUserObject.h.

Referenced by findBoundaryEdges(), findBoundaryNodes(), and sortBoundaryNodes().

◆ _cfd

bool CrackMeshCut3DUserObject::_cfd
protected

◆ _const_intersection

const Real CrackMeshCut3DUserObject::_const_intersection = 0.01
protected

Used to define intersection points.

Definition at line 109 of file CrackMeshCut3DUserObject.h.

Referenced by findFrontIntersection().

◆ _crack_front_definition

CrackFrontDefinition* CrackMeshCut3DUserObject::_crack_front_definition
protected

The crack front definition.

Definition at line 78 of file CrackMeshCut3DUserObject.h.

Referenced by findActiveBoundaryDirection(), initialize(), initialSetup(), and refineFront().

◆ _crack_front_points

std::vector<dof_id_type> CrackMeshCut3DUserObject::_crack_front_points
protected

updated crack front definition they are in the same order as defined in the input but the number of nodes may increase its difference from _front is that: _front does not necessarily follow the order of crack front definition therefore, _crack_front_points is generated from _front with the order of crack front definition limitation: this approach does not currently support the growth of one crack front into two

Definition at line 85 of file CrackMeshCut3DUserObject.h.

Referenced by findActiveBoundaryDirection(), getCrackFrontPoints(), getCrackPlaneNormals(), getFrontPointsIndex(), initializeCrackFrontNodes(), and refineFront().

◆ _cut_elem_dim

const unsigned int CrackMeshCut3DUserObject::_cut_elem_dim = 2
protected

Definition at line 72 of file CrackMeshCut3DUserObject.h.

Referenced by CrackMeshCut3DUserObject().

◆ _cut_elem_nnode

const unsigned int CrackMeshCut3DUserObject::_cut_elem_nnode = 3
protected

The cutter mesh has triangluar elements only.

Definition at line 71 of file CrackMeshCut3DUserObject.h.

Referenced by CrackMeshCut3DUserObject(), findBoundaryEdges(), and triangulation().

◆ _cutter_mesh

std::unique_ptr<MeshBase> MeshCutUserObjectBase::_cutter_mesh
protectedinherited

◆ _elem_dim

const unsigned int CrackMeshCut3DUserObject::_elem_dim = 3
protected

The structural mesh must be 3D only.

Definition at line 106 of file CrackMeshCut3DUserObject.h.

◆ _front

std::vector<std::vector<dof_id_type> > CrackMeshCut3DUserObject::_front
protected

New boundary after growth.

Definition at line 147 of file CrackMeshCut3DUserObject.h.

Referenced by findFrontIntersection(), growFront(), joinBoundary(), refineFront(), and triangulation().

◆ _func_v

const Function* CrackMeshCut3DUserObject::_func_v
protected

Definition at line 260 of file CrackMeshCut3DUserObject.h.

Referenced by growFront().

◆ _func_x

const Function* CrackMeshCut3DUserObject::_func_x
protected

Parsed functions of front growth.

Definition at line 257 of file CrackMeshCut3DUserObject.h.

Referenced by CrackMeshCut3DUserObject(), and findActiveBoundaryDirection().

◆ _func_y

const Function* CrackMeshCut3DUserObject::_func_y
protected

◆ _func_z

const Function* CrackMeshCut3DUserObject::_func_z
protected

◆ _grow

bool CrackMeshCut3DUserObject::_grow
protected

Definition at line 119 of file CrackMeshCut3DUserObject.h.

Referenced by CrackMeshCut3DUserObject(), and initialize().

◆ _growth_dir_method

const GrowthDirectionEnum CrackMeshCut3DUserObject::_growth_dir_method
protected

The direction method for growing mesh at the front.

Definition at line 94 of file CrackMeshCut3DUserObject.h.

Referenced by CrackMeshCut3DUserObject(), and findActiveBoundaryDirection().

◆ _growth_inc_reporter

const std::vector<Real>* const CrackMeshCut3DUserObject::_growth_inc_reporter
protected

Pointer to reporter with growth increment if available.

Definition at line 267 of file CrackMeshCut3DUserObject.h.

Referenced by growFront().

◆ _growth_increment_method

const GrowthRateEnum CrackMeshCut3DUserObject::_growth_increment_method
protected

The growth increment method for growing mesh at the front.

Definition at line 103 of file CrackMeshCut3DUserObject.h.

Referenced by CrackMeshCut3DUserObject(), and growFront().

◆ _heal_always

bool GeometricCutUserObject::_heal_always
protectedinherited

Heal the mesh.

Definition at line 211 of file GeometricCutUserObject.h.

◆ _inactive_boundary_pos

std::vector<unsigned int> CrackMeshCut3DUserObject::_inactive_boundary_pos
protected

◆ _interface_id

unsigned int GeometricCutUserObject::_interface_id
protectedinherited

Associated interface id.

Definition at line 208 of file GeometricCutUserObject.h.

Referenced by GeometricCutUserObject::finalize(), and GeometricCutUserObject::GeometricCutUserObject().

◆ _is_mesh_modified

bool CrackMeshCut3DUserObject::_is_mesh_modified
protected

Indicator that shows if the cutting mesh is modified or not in this calculation step.

Definition at line 150 of file CrackMeshCut3DUserObject.h.

Referenced by initialize().

◆ _ki_vpp

const std::vector<Real>* const CrackMeshCut3DUserObject::_ki_vpp
protected

Pointer to fracture integral ki if available.

Definition at line 263 of file CrackMeshCut3DUserObject.h.

Referenced by findActiveBoundaryDirection().

◆ _kii_vpp

const std::vector<Real>* const CrackMeshCut3DUserObject::_kii_vpp
protected

Pointer to fracture integral kii if available.

Definition at line 265 of file CrackMeshCut3DUserObject.h.

Referenced by findActiveBoundaryDirection().

◆ _last_step_initialized

int GeometricCutUserObject::_last_step_initialized
protectedinherited

Time step information needed to advance a 3D crack only at the real beginning of a time step.

Definition at line 214 of file GeometricCutUserObject.h.

Referenced by initialize().

◆ _marked_elems_2d

std::map<unsigned int, std::vector<Xfem::GeomMarkedElemInfo2D> > GeometricCutUserObject::_marked_elems_2d
protectedinherited

◆ _marked_elems_3d

std::map<unsigned int, std::vector<Xfem::GeomMarkedElemInfo3D> > GeometricCutUserObject::_marked_elems_3d
protectedinherited

◆ _mesh

MooseMesh& CrackMeshCut3DUserObject::_mesh
protected

The structural mesh.

Definition at line 75 of file CrackMeshCut3DUserObject.h.

Referenced by findActiveBoundaryNodes(), and findFrontIntersection().

◆ _n_step_growth

unsigned int CrackMeshCut3DUserObject::_n_step_growth
protected

Number of steps to grow the mesh.

Definition at line 115 of file CrackMeshCut3DUserObject.h.

Referenced by CrackMeshCut3DUserObject(), and initialize().

◆ _num_crack_front_points

unsigned int CrackMeshCut3DUserObject::_num_crack_front_points
protected

Total number of crack front points in the mesh cutter.

Definition at line 153 of file CrackMeshCut3DUserObject.h.

Referenced by getNumberOfCrackFrontPoints(), initializeCrackFrontNodes(), and refineFront().

◆ _size_control

Real CrackMeshCut3DUserObject::_size_control
protected

Used for cutter mesh refinement and front advancement.

Definition at line 112 of file CrackMeshCut3DUserObject.h.

Referenced by CrackMeshCut3DUserObject(), refineBoundary(), and refineFront().

◆ _stop

bool CrackMeshCut3DUserObject::_stop
protected

Variables to help control the work flow.

Definition at line 118 of file CrackMeshCut3DUserObject.h.

Referenced by findActiveBoundaryNodes(), and initialize().

◆ _tracked_crack_front_points

std::vector<dof_id_type> CrackMeshCut3DUserObject::_tracked_crack_front_points
protected

Front nodes that are grown from the crack front definition defined in the input therefore, they are (1) in the same order as defined in the input and (2) the number of nodes does not change.

Definition at line 132 of file CrackMeshCut3DUserObject.h.

Referenced by findFrontIntersection(), growFront(), initializeCrackFrontNodes(), and refineFront().

◆ _uses_mesh

const bool CrackFrontPointsProvider::_uses_mesh
protectedinherited

bool to set if CrackFrontPointsProvider derived objects use a cutter mesh

Definition at line 49 of file CrackFrontPointsProvider.h.

Referenced by CrackFrontPointsProvider::usesMesh().

◆ _xfem

std::shared_ptr<XFEM> GeometricCutUserObject::_xfem
protectedinherited

The documentation for this class was generated from the following files: