https://mooseframework.inl.gov
PolygonConcentricCircleMeshGenerator.C
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 
11 
12 using namespace libMesh;
13 
15 
18 {
20  params.addRequiredRangeCheckedParam<Real>("polygon_size",
21  "polygon_size>0.0",
22  "Size of the polygon to be generated (given as either "
23  "apothem or radius depending on polygon_size_style).");
24  MooseEnum polygon_size_style("apothem radius", "apothem");
25  params.addParam<MooseEnum>("polygon_size_style",
26  polygon_size_style,
27  "Style in which polygon size is given (default: apothem).");
28  params.addRangeCheckedParam<unsigned int>(
29  "num_sides", 6, "num_sides>=3", "Number of sides of the polygon.");
30  params.addClassDescription("This PolygonConcentricCircleMeshGenerator object is designed to mesh "
31  "a polygon geometry with optional rings centered inside.");
32 
33  return params;
34 }
35 
37  const InputParameters & parameters)
39 {
40  _is_general_polygon = true;
42  paramError("quad_center_elements",
43  "This parameter must be false if different side sector numbers are set.");
44 }
void addRequiredRangeCheckedParam(const std::string &name, const std::string &parsed_function, const std::string &doc_string)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
const std::vector< unsigned int > _num_sectors_per_side
Mesh sector number of each polygon side.
registerMooseObject("ReactorApp", PolygonConcentricCircleMeshGenerator)
The following methods are specializations for using the Parallel::packed_range_* routines for a vecto...
This PolygonConcentricCircleMeshGeneratorBase object is a base class to be inherited for polygon mesh...
const bool _quad_center_elements
Whether the central elements need to be QUAD4.
void paramError(const std::string &param, Args... args) const
This PolygonConcentricCircleMeshGenerator object is designed to mesh a polygon geometry with optional...
PolygonConcentricCircleMeshGenerator(const InputParameters &parameters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
bool _is_general_polygon
MeshMetaData: whether this produced mesh is a general polygon (or a hexagon)
void addClassDescription(const std::string &doc_string)
void addRangeCheckedParam(const std::string &name, const T &value, const std::string &parsed_function, const std::string &doc_string)