/
StitchedMeshGenerator.h
53 lines (40 loc) · 1.51 KB
/
StitchedMeshGenerator.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
46
47
48
49
50
51
52
53
//* 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 STITCHEDMESHGENERATOR_H
#define STITCHEDMESHGENERATOR_H
#include "MeshGenerator.h"
#include "libmesh/replicated_mesh.h"
#include "MooseEnum.h"
// Forward declarations
class StitchedMeshGenerator;
template <>
InputParameters validParams<StitchedMeshGenerator>();
/**
* Generates individual elements given a list of nodal positions
*/
class StitchedMeshGenerator : public MeshGenerator
{
public:
StitchedMeshGenerator(const InputParameters & parameters);
std::unique_ptr<MeshBase> generate() override;
protected:
/// The mesh files to read
const std::vector<MeshGeneratorName> & _input_names;
/// Whether or not to clear (remove) the stitched boundary IDs
const bool & _clear_stitched_boundary_ids;
/// A transformed version of _stitch_boundaries into a more logical "pairwise" structure
std::vector<std::vector<std::string>> _stitch_boundaries_pairs;
// Holds pointers to the pointers to the meshes.
std::vector<std::unique_ptr<MeshBase> *> _mesh_ptrs;
/// The meshes to be stitched together.
std::vector<std::unique_ptr<ReplicatedMesh>> _meshes;
/// Type of algorithm used to find matching nodes (binary or exhaustive)
MooseEnum _algorithm;
};
#endif // STITCHEDMESHGENERATOR_H