https://mooseframework.inl.gov
Loading...
Searching...
No Matches
CrackFrontPointsProvider.h
Go to the documentation of this file.
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
18{
19public:
21
22 CrackFrontPointsProvider(const InputParameters & parameters, const bool uses_mesh = false);
23
27 virtual unsigned int getNumberOfCrackFrontPoints() const = 0;
28
32 virtual const std::vector<Point>
33 getCrackFrontPoints(unsigned int /*num_crack_front_points*/) const = 0;
34
38 virtual const std::vector<RealVectorValue>
39 getCrackPlaneNormals(unsigned int /*num_crack_front_points*/) const = 0;
40
45 bool usesMesh() const { return _uses_mesh; }
46
47protected:
49 const bool _uses_mesh;
50};
Base class for crack front points provider.
virtual const std::vector< RealVectorValue > getCrackPlaneNormals(unsigned int) const =0
get a set of normal vectors along a crack front from a XFEM GeometricCutUserObject
virtual unsigned int getNumberOfCrackFrontPoints() const =0
Get the current number of crack front points.
const bool _uses_mesh
bool to set if CrackFrontPointsProvider derived objects use a cutter mesh
virtual const std::vector< Point > getCrackFrontPoints(unsigned int) const =0
get a set of points along a crack front from a XFEM GeometricCutUserObject
static InputParameters validParams()
bool usesMesh() const
Getter for if a cutter mesh is used in a derived class.
const InputParameters & parameters() const