https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
20public:
22
24
25 std::unique_ptr<MeshBase> generate() override;
26
27protected:
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;
53 const Real _polygon_size;
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;
87 Real _pitch;
89 std::vector<std::vector<Real>> _azimuthal_angles_array;
90};
This ConcentricCircleGeneratorBase object is a base class to be inherited for mesh generators that in...
const InputParameters & parameters() const
This PolygonConcentricCircleMeshGeneratorBase object is a base class to be inherited for polygon mesh...
const std::vector< SubdomainName > _duct_block_names
Subdomain Names of the duct regions.
const bool _quad_center_elements
Whether the central elements need to be QUAD4.
const bool _has_ducts
Whether the generated mesh contains duct regions.
multiBdryLayerParams _duct_outer_boundary_layer_params
Widths, fractions, radial sectors and growth factors of the inner boundary layers of the duct regions...
bool _is_general_polygon
MeshMetaData: whether this produced mesh is a general polygon (or a hexagon)
const Real _center_quad_factor
A fractional radius factor used to determine the radial positions of transition nodes in the center r...
const std::vector< subdomain_id_type > _duct_block_ids
Subdomain IDs of the duct regions.
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...
std::vector< Real > _duct_sizes
Size parameters of the duct regions.
const bool _uniform_mesh_on_sides
Whether the nodes on the external boundary needs to be uniformly distributed.
const bool _has_rings
Whether the generated mesh contains ring regions.
singleBdryLayerParams _background_outer_boundary_layer_params
Width, fraction, radiation sectors and growth factor of the outer boundary layer of the background re...
std::vector< subdomain_id_type > _background_block_ids
Subdomain IDs of the background regions.
const Real _background_radial_bias
Bias value used to induce biasing to radial meshing in background region.
const PolygonSizeStyle _duct_sizes_style
Thickness of each enclosing duct.
const PolygonSizeStyle _polygon_size_style
Type of polygon size parameter.
const std::vector< unsigned int > _num_sectors_per_side
Mesh sector number of each polygon side.
const std::vector< unsigned int > _duct_intervals
Number of layers in each enclosing duct.
dof_id_type & _node_id_background_meta
MeshMetaData: maximum node id of the background region.
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< Real > _duct_radial_biases
Bias values used to induce biasing to radial meshing in duct regions.
std::vector< std::unique_ptr< MeshBase > * > _input_ptrs
Pointers to input mesh pointers.
const unsigned int _background_intervals
Numbers of radial intervals of the background regions.
bool & _is_control_drum_meta
MeshMetaData: whether this produced mesh is a control drum.
const unsigned int _smoothing_max_it
Maximum smooth iteration number.
std::vector< std::vector< Real > > _azimuthal_angles_array
Azimuthal angles of all radial nodes for volume preservation.
const std::vector< unsigned int > _sides_to_adapt
Indices of the hexagon sides that need to adapt.
PolygonSizeStyle
An enum class for style of input polygon size.
Contains multiple blocks's boundary layer related parameters.
Contains a single block's boundary layer related parameters.