https://mooseframework.inl.gov
Loading...
Searching...
No Matches
SpiralAnnularMeshGenerator.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
18{
19public:
21
23
24 // No copy
26
27 std::unique_ptr<MeshBase> generate() override;
28
29protected:
31 const Real _inner_radius;
32
34 const Real _outer_radius;
35
39
41 const unsigned int _nodes_per_ring;
42
44 const bool _use_tri6;
45
50 unsigned int _num_rings;
51
53 const boundary_id_type _cylinder_bid, _exterior_bid;
54
59 const Real _initial_delta_r;
60};
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
MeshGenerators are objects that can modify or add to an existing mesh.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
Generates a spiral annular mesh given all the parameters.
const Real _inner_radius
Radius of the inner circle.
unsigned int _num_rings
Number of rings.You can't specify both the number of rings and the radial bias if you want to match a...
std::unique_ptr< MeshBase > generate() override
Generate / modify the mesh.
SpiralAnnularMeshGenerator & operator=(const SpiralAnnularMeshGenerator &other_mesh)=delete
const Real _initial_delta_r
Width of the initial layer of elements around the cylinder.
const boundary_id_type _cylinder_bid
The boundary id to use for the cylinder.
const Real _outer_radius
Radius of the outer circle. Logically, it's bigger that inner_radius.
Real _radial_bias
Factor to increase initial_delta_r for each ring.
const unsigned int _nodes_per_ring
Number of nodes on each ring.
static InputParameters validParams()
const bool _use_tri6
Generate mesh of TRI6 elements instead of TRI3 elements.