LCOV - code coverage report
Current view: top level - include/userobjects - CrackFrontPointsProvider.h (source / functions) Hit Total Coverage
Test: idaholab/moose solid_mechanics: f45d79 Lines: 0 1 0.0 %
Date: 2025-07-25 05:00:39 Functions: 0 0 -
Legend: Lines: hit not hit

          Line data    Source code
       1             : //* This file is part of the MOOSE framework
       2             : //* https://mooseframework.inl.gov
       3             : //*
       4             : //* All rights reserved, see COPYRIGHT for full restrictions
       5             : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
       6             : //*
       7             : //* Licensed under LGPL 2.1, please see LICENSE for details
       8             : //* https://www.gnu.org/licenses/lgpl-2.1.html
       9             : 
      10             : #pragma once
      11             : 
      12             : #include "ElementUserObject.h"
      13             : 
      14             : /**
      15             :  * Base class for crack front points provider
      16             :  */
      17             : class CrackFrontPointsProvider : public ElementUserObject
      18             : {
      19             : public:
      20             :   static InputParameters validParams();
      21             : 
      22             :   CrackFrontPointsProvider(const InputParameters & parameters, const bool uses_mesh = false);
      23             : 
      24             :   /** get a set of points along a crack front from a XFEM GeometricCutUserObject
      25             :    * @return A vector which contains all crack front points
      26             :    */
      27             :   virtual const std::vector<Point>
      28             :   getCrackFrontPoints(unsigned int /*num_crack_front_points*/) const = 0;
      29             : 
      30             :   /** get a set of normal vectors along a crack front from a XFEM GeometricCutUserObject
      31             :    * @return A vector which contains all crack front normals
      32             :    */
      33             :   virtual const std::vector<RealVectorValue>
      34             :   getCrackPlaneNormals(unsigned int /*num_crack_front_points*/) const = 0;
      35             : 
      36             :   /**
      37             :    * Getter for if a cutter mesh is used in a derived class.
      38             :    * @return bool indicating if a cutter mesh is used in the derived class
      39             :    */
      40           0 :   bool usesMesh() const { return _uses_mesh; }
      41             : 
      42             : protected:
      43             :   /// bool to set if CrackFrontPointsProvider derived objects use a cutter mesh
      44             :   const bool _uses_mesh;
      45             : };

Generated by: LCOV version 1.14