https://mooseframework.inl.gov
PolygonConcentricCircleMeshGeneratorBase.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 unsigned int _num_sides;
33  std::vector<Real> _duct_sizes;
35  const std::vector<unsigned int> _duct_intervals;
37  const std::vector<Real> _duct_radial_biases;
43  const std::vector<subdomain_id_type> _duct_block_ids;
45  const std::vector<SubdomainName> _duct_block_names;
47  const bool _has_rings;
49  const bool _has_ducts;
55  const std::vector<unsigned int> _num_sectors_per_side;
57  const unsigned int _background_intervals;
65  std::vector<subdomain_id_type> _background_block_ids;
67  std::vector<SubdomainName> _background_block_names;
75  const unsigned int _smoothing_max_it;
77  const std::vector<unsigned int> _sides_to_adapt;
79  std::vector<std::unique_ptr<MeshBase> *> _input_ptrs;
89  std::vector<std::vector<Real>> _azimuthal_angles_array;
90 };
std::vector< Real > _duct_sizes
Size parameters of the duct regions.
std::vector< std::unique_ptr< MeshBase > * > _input_ptrs
Pointers to input mesh pointers.
const std::vector< Real > _duct_radial_biases
Bias values used to induce biasing to radial meshing in duct regions.
dof_id_type & _node_id_background_meta
MeshMetaData: maximum node id of the background region.
const Real _center_quad_factor
A fractional radius factor used to determine the radial positions of transition nodes in the center r...
const unsigned int _smoothing_max_it
Maximum smooth iteration number.
const bool _has_rings
Whether the generated mesh contains ring regions.
const std::vector< unsigned int > _num_sectors_per_side
Mesh sector number of each polygon side.
Contains multiple blocks&#39;s boundary layer related parameters.
const bool _uniform_mesh_on_sides
Whether the nodes on the external boundary needs to be uniformly distributed.
Contains a single block&#39;s boundary layer related parameters.
std::vector< SubdomainName > _background_block_names
Subdomain Names of the background regions.
singleBdryLayerParams _background_inner_boundary_layer_params
Width, fraction, radiation sectors and growth factor of the inner boundary layer of the background re...
const PolygonSizeStyle _polygon_size_style
Type of polygon size parameter.
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.
const PolygonSizeStyle _duct_sizes_style
Thickness of each enclosing duct.
singleBdryLayerParams _background_outer_boundary_layer_params
Width, fraction, radiation sectors and growth factor of the outer boundary layer of the background re...
multiBdryLayerParams _duct_outer_boundary_layer_params
Widths, fractions, radial sectors and growth factors of the inner boundary layers of the duct regions...
std::vector< subdomain_id_type > _background_block_ids
Subdomain IDs of the background regions.
std::vector< std::vector< Real > > _azimuthal_angles_array
Azimuthal angles of all radial nodes for volume preservation.
const std::vector< SubdomainName > _duct_block_names
Subdomain Names of the duct regions.
const unsigned int _num_sides
Number of polygon sides.
const std::vector< unsigned int > _duct_intervals
Number of layers in each enclosing duct.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real _background_radial_bias
Bias value used to induce biasing to radial meshing in background region.
const unsigned int _background_intervals
Numbers of radial intervals of the background regions.
bool _is_general_polygon
MeshMetaData: whether this produced mesh is a general polygon (or a hexagon)
const InputParameters & parameters() const
const bool _has_ducts
Whether the generated mesh contains duct regions.
This ConcentricCircleGeneratorBase object is a base class to be inherited for mesh generators that in...
PolygonConcentricCircleMeshGeneratorBase(const InputParameters &parameters)
const std::vector< subdomain_id_type > _duct_block_ids
Subdomain IDs of the duct regions.
multiBdryLayerParams _duct_inner_boundary_layer_params
Widths, fractions, radial sectors and growth factors of the inner boundary layers of the duct regions...
const std::vector< unsigned int > _sides_to_adapt
Indices of the hexagon sides that need to adapt.
bool & _is_control_drum_meta
MeshMetaData: whether this produced mesh is a control drum.
uint8_t dof_id_type
PolygonSizeStyle
An enum class for style of input polygon size.