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