www.mooseframework.org
CrackFrontPointsProvider.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 
18 {
19 public:
21 
22  CrackFrontPointsProvider(const InputParameters & parameters, const bool uses_mesh = false);
23 
27  virtual const std::vector<Point>
28  getCrackFrontPoints(unsigned int /*num_crack_front_points*/) const = 0;
29 
33  virtual const std::vector<RealVectorValue>
34  getCrackPlaneNormals(unsigned int /*num_crack_front_points*/) const = 0;
35 
40  bool usesMesh() const { return _uses_mesh; }
41 
42 protected:
44  const bool _uses_mesh;
45 };
const bool _uses_mesh
bool to set if CrackFrontPointsProvider derived objects use a cutter mesh
static InputParameters validParams()
virtual const std::vector< Point > getCrackFrontPoints(unsigned int) const =0
get a set of points along a crack front from a XFEM GeometricCutUserObject
Base class for crack front points provider.
bool usesMesh() const
Getter for if a cutter mesh is used in a derived class.
CrackFrontPointsProvider(const InputParameters &parameters, const bool uses_mesh=false)
virtual const std::vector< RealVectorValue > getCrackPlaneNormals(unsigned int) const =0
get a set of normal vectors along a crack front from a XFEM GeometricCutUserObject ...
const InputParameters & parameters() const