www.mooseframework.org
ElementDeleterBase.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 "MeshModifier.h"
13 
14 class ElementDeleterBase;
15 
16 template <>
18 
27 {
28 public:
30 
31 protected:
32  virtual void modify() override;
33 
38  virtual bool shouldDelete(const Elem * elem) = 0;
39 
41  const bool _assign_boundary;
42 
44  const BoundaryName _boundary_name;
45 };
46 
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:25
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:65
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.