www.mooseframework.org
PatchSidesetGenerator.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 
15 // Forward declarations
17 
18 template <>
19 InputParameters validParams<PatchSidesetGenerator>();
20 
25 class PatchSidesetGenerator : public MeshGenerator
26 {
27 public:
28  static InputParameters validParams();
29 
30  PatchSidesetGenerator(const InputParameters & parameters);
31 
32  std::unique_ptr<MeshBase> generate() override;
33 
34 protected:
36  std::vector<BoundaryName> sidesetNameHelper(const std::string & base_name) const;
37 
38  Elem * boundaryElementHelper(MeshBase & mesh, libMesh::ElemType type) const;
39 
40  std::unique_ptr<MeshBase> & _input;
41 
43  unsigned int _n_patches;
44 
46  const boundary_id_type & _sideset;
47 
49  MooseEnum _partitioner_name;
50 };
PatchSidesetGenerator::_n_patches
unsigned int _n_patches
the number of patches that this sideset generator divides _sideset into
Definition: PatchSidesetGenerator.h:43
PatchSidesetGenerator::boundaryElementHelper
Elem * boundaryElementHelper(MeshBase &mesh, libMesh::ElemType type) const
Definition: PatchSidesetGenerator.C:236
PatchSidesetGenerator::_partitioner_name
MooseEnum _partitioner_name
the name of the partitioner being used
Definition: PatchSidesetGenerator.h:49
PatchSidesetGenerator
Subdivides a sidesets into smaller patches each of which is going to be a new patch.
Definition: PatchSidesetGenerator.h:25
PatchSidesetGenerator::validParams
static InputParameters validParams()
Definition: PatchSidesetGenerator.C:44
PatchSidesetGenerator::sidesetNameHelper
std::vector< BoundaryName > sidesetNameHelper(const std::string &base_name) const
returns the name of the _n_patches subdivisions derived from _sideset
Definition: PatchSidesetGenerator.C:223
PatchSidesetGenerator::_sideset
const boundary_id_type & _sideset
The sideset that will be subdivided.
Definition: PatchSidesetGenerator.h:46
PatchSidesetGenerator::_input
std::unique_ptr< MeshBase > & _input
Definition: PatchSidesetGenerator.h:40
validParams< PatchSidesetGenerator >
InputParameters validParams< PatchSidesetGenerator >()
PatchSidesetGenerator::PatchSidesetGenerator
PatchSidesetGenerator(const InputParameters &parameters)
Definition: PatchSidesetGenerator.C:74
PatchSidesetGenerator::generate
std::unique_ptr< MeshBase > generate() override
Definition: PatchSidesetGenerator.C:84