www.mooseframework.org
SphereSurfaceMeshGenerator.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 #include "libmesh/point.h"
14 
16 
17 template <>
19 
24 class SphereSurfaceMeshGenerator : public MeshGenerator
25 {
26 public:
27  SphereSurfaceMeshGenerator(const InputParameters & parameters);
28 
29  std::unique_ptr<MeshBase> generate() override;
30 
31 protected:
33  const Real _radius;
34 
36  const Point _center;
37 
39  const unsigned int _depth;
40 };
41 
SphereSurfaceMeshGenerator::_radius
const Real _radius
sphere radius
Definition: SphereSurfaceMeshGenerator.h:33
SphereSurfaceMeshGenerator::generate
std::unique_ptr< MeshBase > generate() override
Definition: SphereSurfaceMeshGenerator.C:46
SphereSurfaceMeshGenerator::_depth
const unsigned int _depth
recursion levels for triangle subdivision
Definition: SphereSurfaceMeshGenerator.h:39
SphereSurfaceMeshGenerator
Create a sphere surface mesh based on the recursive subdivision of the faces of a regular icosahedron...
Definition: SphereSurfaceMeshGenerator.h:24
SphereSurfaceMeshGenerator::_center
const Point _center
Definition: SphereSurfaceMeshGenerator.h:36
validParams< SphereSurfaceMeshGenerator >
InputParameters validParams< SphereSurfaceMeshGenerator >()
Definition: SphereSurfaceMeshGenerator.C:25
SphereSurfaceMeshGenerator::SphereSurfaceMeshGenerator
SphereSurfaceMeshGenerator(const InputParameters &parameters)
Definition: SphereSurfaceMeshGenerator.C:37