https://mooseframework.inl.gov
CombinerGenerator.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 "MeshGenerator.h"
13 #include "libmesh/replicated_mesh.h"
14 #include "MooseEnum.h"
15 
20 {
21 public:
23 
25 
26  std::unique_ptr<MeshBase> generate() override;
27 
29  void fillPositions();
30 
31 protected:
35  void copyIntoMesh(UnstructuredMesh & destination, const UnstructuredMesh & source);
36 
37  // Holds pointers to the mesh smart pointers (to be populated later).
38  const std::vector<std::unique_ptr<MeshBase> *> _meshes;
39 
41  const std::vector<MeshGeneratorName> & _input_names;
42 
44  std::vector<Point> _positions;
45 
50 };
const bool _avoid_merging_boundaries
Boolean to control whether to prevent merging boundaries.
Collects multiple meshes into a single (unconnected) mesh.
void fillPositions()
Fill the offset positions for each mesh.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const bool _avoid_merging_subdomains
Boolean to control whether to prevent merging subdomains.
const std::vector< MeshGeneratorName > & _input_names
The mesh generators to use.
static InputParameters validParams()
void copyIntoMesh(UnstructuredMesh &destination, const UnstructuredMesh &source)
Helper funciton for copying one mesh into another.
std::vector< Point > _positions
The (offsets) positions for each mesh.
const std::vector< std::unique_ptr< MeshBase > * > _meshes
CombinerGenerator(const InputParameters &parameters)
const InputParameters & parameters() const
Get the parameters of the object.
std::unique_ptr< MeshBase > generate() override
Generate / modify the mesh.
MeshGenerators are objects that can modify or add to an existing mesh.
Definition: MeshGenerator.h:32