https://mooseframework.inl.gov
SimpleHexagonGenerator.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 
13 
19 {
20 public:
22 
24 
25  std::unique_ptr<MeshBase> generate() override;
26 
27 protected:
29  const enum class ElemType { TRI, QUAD, HYBRID } _element_type;
37  const unsigned int _radial_intervals;
39  const std::vector<subdomain_id_type> _block_id;
41  const std::vector<SubdomainName> _block_name;
43  const bool _boundary_id_valid;
47  const BoundaryName _external_boundary_name;
48 };
static InputParameters validParams()
const Real _hexagon_size
Size parameter of the hexagon.
const boundary_id_type _external_boundary_id
Boundary ID of the external boundary.
const InputParameters & parameters() const
const std::vector< subdomain_id_type > _block_id
Subdomain ID of the mesh.
const std::vector< SubdomainName > _block_name
Subdomain Name of the mesh.
const BoundaryName _external_boundary_name
Boundary Name of the external boundary.
std::unique_ptr< MeshBase > generate() override
SimpleHexagonGenerator(const InputParameters &parameters)
const PolygonSizeStyle _hexagon_size_style
Style of the size parameter.
int8_t boundary_id_type
enum SimpleHexagonGenerator::ElemType _element_type
Real _pitch
Pitch size of the hexagon.
This SimpleHexagonGenerator object is designed to generate a simple hexagonal mesh that only contains...
ElemType
Type of elements to build the mesh.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
A base class that contains common members for Reactor module mesh generators.
const bool _boundary_id_valid
Whether external_boundary_id is provided.
const unsigned int _radial_intervals
Number of radial meshing intervals.
PolygonSizeStyle
An enum class for style of input polygon size.