https://mooseframework.inl.gov
Loading...
Searching...
No Matches
PeripheralTriangleMeshGenerator.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 std::unique_ptr<MeshBase> generate() override;
25
26protected:
28 const MeshGeneratorName _input_name;
34 const Real _desired_area;
36 std::string _desired_area_func;
40 std::unique_ptr<MeshBase> * _build_mesh;
41};
const InputParameters & parameters() const
This PeripheralTriangleMeshGenerator object adds a circular peripheral region to the input mesh.
std::unique_ptr< MeshBase > * _build_mesh
The final mesh that is generated by the subgenerators;.
const Real _desired_area
Desired (maximum) triangle area.
std::unique_ptr< MeshBase > generate() override
const Real _peripheral_ring_radius
Radius of the peripheral region's outer circular boundary.
std::string _desired_area_func
Desired area as a function of (x,y)
const MeshGeneratorName _input_name
Name of the mesh generator to get the input mesh.
const bool _preserve_volumes
Whether to preserve the volume of the peripheral region by fixing the radius.
const unsigned int _peripheral_ring_num_segments
Number of segments in the peripheral region's outer circular boundary.