www.mooseframework.org
MeshCollectionGenerator.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 
16 // Forward declarations
18 
19 template <>
21 
26 {
27 public:
29 
31 
32  std::unique_ptr<MeshBase> generate() override;
33 
34 protected:
36  const std::vector<MeshGeneratorName> & _input_names;
37 
38  // Holds pointers to the mesh smart pointers (to be populated later).
39  std::vector<std::unique_ptr<MeshBase> *> _meshes;
40 };
MeshCollectionGenerator::_input_names
const std::vector< MeshGeneratorName > & _input_names
The mesh generators to read.
Definition: MeshCollectionGenerator.h:36
MeshCollectionGenerator::_meshes
std::vector< std::unique_ptr< MeshBase > * > _meshes
Definition: MeshCollectionGenerator.h:39
MeshGenerator.h
MeshGenerator
MeshGenerators are objects that can modify or add to an existing mesh.
Definition: MeshGenerator.h:32
MooseObject::parameters
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:76
MeshCollectionGenerator
Collects multiple meshes into a single (unconnected) mesh.
Definition: MeshCollectionGenerator.h:25
InputParameters
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Definition: InputParameters.h:53
MeshCollectionGenerator::generate
std::unique_ptr< MeshBase > generate() override
Generate / modify the mesh.
Definition: MeshCollectionGenerator.C:44
validParams< MeshCollectionGenerator >
InputParameters validParams< MeshCollectionGenerator >()
MooseEnum.h
MeshCollectionGenerator::validParams
static InputParameters validParams()
Definition: MeshCollectionGenerator.C:23
MeshCollectionGenerator::MeshCollectionGenerator
MeshCollectionGenerator(const InputParameters &parameters)
Definition: MeshCollectionGenerator.C:31