www.mooseframework.org
ElementDeleterBase.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #ifndef ELEMENTDELETERBASE_H
16 #define ELEMENTDELETERBASE_H
17 
18 #include "MeshModifier.h"
19 
20 class ElementDeleterBase;
21 
22 template <>
24 
33 {
34 public:
36 
37 protected:
38  virtual void modify() override;
39 
44  virtual bool shouldDelete(const Elem * elem) = 0;
45 
47  const bool _assign_boundary;
48 
50  const BoundaryName _boundary_name;
51 };
52 
53 #endif /* ELEMENTDELETERBASE_H */
const bool _assign_boundary
Assign a boundary name to the cut surface?
MeshModifiers are objects that can modify or add to an existing mesh.
Definition: MeshModifier.h:31
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual void modify() override
Pure virtual modify function MUST be overridden by children classes.
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
ElementDeleterBase(const InputParameters &parameters)
virtual bool shouldDelete(const Elem *elem)=0
Method that returns a Boolean indicating whether an element should be removed from the mesh...
This class deletes elements from the mesh data structure after it has been generated or read but befo...
InputParameters validParams< ElementDeleterBase >()
const BoundaryName _boundary_name
Name of the boundary name to assign to the cut surface.