www.mooseframework.org
AddSideSetsFromBoundingBox.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 ADDSIDESETSFROMBOUNDINGBOX_H
16 #define ADDSIDESETSFROMBOUNDINGBOX_H
17 
18 // MOOSE includes
19 #include "MooseEnum.h"
20 #include "MeshModifier.h"
21 
22 // Forward declerations
24 
25 template <>
27 
28 namespace libMesh
29 {
30 class BoundingBox;
31 }
32 
37 {
38 public:
43  AddSideSetsFromBoundingBox(const InputParameters & parameters);
44 
45  virtual void modify() override;
46 
47 private:
50 
53 
55  std::vector<BoundaryName> _boundary_id_old;
56 
58  boundary_id_type _boundary_id_new;
59 
61  BoundingBox _bounding_box;
62 
65 };
66 
67 #endif // ADDSIDESETSFROMBOUNDINGBOX_H
InputParameters validParams< AddSideSetsFromBoundingBox >()
subdomain_id_type SubdomainID
Definition: MooseTypes.h:77
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...
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...
BoundingBox _bounding_box
Bounding box for testing element centroids against.
boundary_id_type _boundary_id_new
boundary ID to assign
const bool _boundary_id_overlap
Flag to determine if the provided boundaries need to overlap.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
Definition: MooseEnum.h:37
MeshModifier for defining a Subdomain inside or outside of a bounding box.
std::vector< BoundaryName > _boundary_id_old
boundary ID to select
SubdomainID _block_id
Block ID to assign to the region.
MooseEnum _location
ID location (inside of outside of box)