https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
21public:
23
25
26protected:
33 boundary_id_type getBoundaryIdToStitch(const MeshBase & mesh,
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};
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
MeshGenerators are objects that can modify or add to an existing mesh.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
Definition MooseEnum.h:55
A base class for mesh generators that stitch boundaries together.
static InputParameters validParams()
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.
const bool _clear_stitched_boundary_ids
Whether or not to clear (remove) the stitched boundary IDs.
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.
const std::vector< std::vector< std::string > > _stitch_boundaries_pairs
A transformed version of _stitch_boundaries into a more logical "pairwise" structure.
const MooseEnum _algorithm
Type of algorithm used to find matching nodes (binary or exhaustive)
MeshBase & mesh