/
AllSideSetsByNormalsGenerator.h
45 lines (35 loc) · 1.27 KB
/
AllSideSetsByNormalsGenerator.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgpl-2.1.html
#ifndef ALLSIDESETSBYNORMALSGENERATOR_H
#define ALLSIDESETSBYNORMALSGENERATOR_H
#include "SideSetsGeneratorBase.h"
// Forward declarations
class AllSideSetsByNormalsGenerator;
template <>
InputParameters validParams<AllSideSetsByNormalsGenerator>();
/**
* This class will add sidesets to the entire mesh based on unique normals.
* Note: This algorithm may not work well with meshes containing curved faces.
* Several sidesets may be created in that case. Use sensibly!
*/
class AllSideSetsByNormalsGenerator : public SideSetsGeneratorBase
{
public:
AllSideSetsByNormalsGenerator(const InputParameters & parameters);
std::unique_ptr<MeshBase> generate() override;
protected:
boundary_id_type getNextBoundaryID();
/**
* A pointer to the Mesh's boundary set, this datastructure will be modified
* through this modifier.
*/
std::set<boundary_id_type> _mesh_boundary_ids;
std::unique_ptr<MeshBase> & _input;
};
#endif // ALLSIDESETSBYNORMALSGENERATOR_H