https://mooseframework.inl.gov
SideSetsFromBoundingBoxGenerator.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 "SideSetsGeneratorBase.h"
13 #include "MooseEnum.h"
14 #include "libmesh/bounding_box.h"
15 
20 {
21 public:
23 
25 
26  std::unique_ptr<MeshBase> generate() override;
27 
28 protected:
31 
33  std::vector<BoundaryName> _boundaries_old;
34 
36  BoundaryName _boundary_new;
37 
39  BoundingBox _bounding_box;
40 
43 };
SideSetsFromBoundingBoxGenerator(const InputParameters &parameters)
std::unique_ptr< MeshBase > generate() override
Generate / modify the mesh.
BoundaryName _boundary_new
New boundary to assign.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
MeshGenerator for defining sidesets inside or outside of a bounding box.
std::vector< BoundaryName > _boundaries_old
List of boundary names to select.
BoundingBox _bounding_box
Bounding box for testing element centroids against.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
Definition: MooseEnum.h:33
MooseEnum _location
ID location (inside of outside of box)
const bool _boundary_id_overlap
Flag to determine if the provided boundaries need to overlap.
const InputParameters & parameters() const
Get the parameters of the object.