https://mooseframework.inl.gov
StitchMeshGeneratorBase.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 protected:
34  const std::string & input_mg_name,
35  const BoundaryName & bname) const;
36 
43  void errorMissingBoundary(const MeshBase & mesh,
44  const std::string & input_mg_name,
45  const BoundaryName & bname) const;
46 
49 
51  const std::vector<std::vector<std::string>> _stitch_boundaries_pairs;
52 
55 };
boundary_id_type getBoundaryIdToStitch(const MeshBase &mesh, const std::string &input_mg_name, const BoundaryName &bname) const
Get the boundary id from the name of a boundary to stitch.
void errorMissingBoundary(const MeshBase &mesh, const std::string &input_mg_name, const BoundaryName &bname) const
Returns an error if the boundary to be stitched does not exist.
MeshBase & mesh
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const bool _clear_stitched_boundary_ids
Whether or not to clear (remove) the stitched boundary IDs.
static InputParameters validParams()
int8_t boundary_id_type
A base class for mesh generators that stitch boundaries together.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
Definition: MooseEnum.h:33
const MooseEnum _algorithm
Type of algorithm used to find matching nodes (binary or exhaustive)
const InputParameters & parameters() const
Get the parameters of the object.
StitchMeshGeneratorBase(const InputParameters &parameters)
MeshGenerators are objects that can modify or add to an existing mesh.
Definition: MeshGenerator.h:32
const std::vector< std::vector< std::string > > _stitch_boundaries_pairs
A transformed version of _stitch_boundaries into a more logical "pairwise" structure.