https://mooseframework.inl.gov
AdvancedExtruderGenerator.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 
12 #include "MeshGenerator.h"
13 
14 #include "libmesh/point.h"
15 
20 {
21 public:
23 
25 
26  std::unique_ptr<MeshBase> generate() override;
27 
28 protected:
30  std::unique_ptr<MeshBase> & _input;
31 
33  const std::vector<Real> & _heights;
34 
36  const std::vector<Real> _biases;
37 
39  const std::vector<unsigned int> & _num_layers;
40 
42  const std::vector<std::vector<subdomain_id_type>> & _subdomain_swaps;
43 
45  const std::vector<std::vector<boundary_id_type>> & _boundary_swaps;
46 
48  const std::vector<std::string> & _elem_integer_names_to_swap;
49  std::vector<unsigned int> _elem_integer_indices_to_swap;
50 
52  const std::vector<std::vector<std::vector<dof_id_type>>> & _elem_integers_swaps;
53 
55  std::vector<std::unordered_map<subdomain_id_type, subdomain_id_type>> _subdomain_swap_pairs;
56 
58  std::vector<std::unordered_map<boundary_id_type, boundary_id_type>> _boundary_swap_pairs;
59 
61  std::vector<std::unordered_map<dof_id_type, dof_id_type>> _elem_integers_swap_pairs;
62 
64  Point _direction;
65 
66  const bool _has_top_boundary;
67  const BoundaryName _top_boundary;
68 
70  const BoundaryName _bottom_boundary;
71 
73  const std::vector<std::vector<subdomain_id_type>> _upward_boundary_source_blocks;
74 
76  const std::vector<std::vector<boundary_id_type>> _upward_boundary_ids;
77 
79  const std::vector<std::vector<subdomain_id_type>> _downward_boundary_source_blocks;
80 
82  const std::vector<std::vector<boundary_id_type>> _downward_boundary_ids;
83 
86 };
std::vector< std::unordered_map< boundary_id_type, boundary_id_type > > _boundary_swap_pairs
Easier to work with version of _boundary_swaps.
std::unique_ptr< MeshBase > & _input
Mesh that comes from another generator.
std::unique_ptr< MeshBase > generate() override
Generate / modify the mesh.
std::vector< unsigned int > _elem_integer_indices_to_swap
Point _direction
The direction of the extrusion.
const std::vector< Real > & _heights
Height of each elevation.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
AdvancedExtruderGenerator(const InputParameters &parameters)
const Real _twist_pitch
Axial pitch for a full rotation.
const std::vector< std::vector< subdomain_id_type > > _downward_boundary_source_blocks
The list of input mesh&#39;s blocks that need to be assigned downward boundary interfaces for each layer ...
const std::vector< std::vector< boundary_id_type > > _upward_boundary_ids
Upward boundary interfaces for each layer of elevation.
Extrudes a mesh to another dimension.
const std::vector< std::vector< boundary_id_type > > _downward_boundary_ids
Downward boundary interfaces for each layer of elevation.
std::vector< std::unordered_map< subdomain_id_type, subdomain_id_type > > _subdomain_swap_pairs
Easier to work with version of _sudomain_swaps.
const std::vector< std::vector< subdomain_id_type > > & _subdomain_swaps
Subdomains to swap out for each elevation.
const std::vector< std::vector< boundary_id_type > > & _boundary_swaps
Boundaries to swap out for each elevation.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const std::vector< std::vector< std::vector< dof_id_type > > > & _elem_integers_swaps
Extra element integers to swap out for each elevation and each element interger name.
const std::vector< Real > _biases
Bias growth factor of each elevation.
const InputParameters & parameters() const
Get the parameters of the object.
const std::vector< std::vector< subdomain_id_type > > _upward_boundary_source_blocks
The list of input mesh&#39;s blocks that need to be assigned upward boundary interfaces for each layer of...
const std::vector< unsigned int > & _num_layers
Number of layers in each elevation.
static InputParameters validParams()
const std::vector< std::string > & _elem_integer_names_to_swap
Names and indices of extra element integers to swap.
MeshGenerators are objects that can modify or add to an existing mesh.
Definition: MeshGenerator.h:32
std::vector< std::unordered_map< dof_id_type, dof_id_type > > _elem_integers_swap_pairs
Easier to work with version of _elem_integers_swaps.