https://mooseframework.inl.gov
Boundary2DDelaunayGenerator.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 
13 #include "LevelSetMeshingHelper.h"
14 
15 #include "libmesh/meshfree_interpolation.h"
16 
22 {
23 public:
25 
27 
28  virtual std::unique_ptr<MeshBase> generate() override;
29 
30 protected:
32  std::unique_ptr<MeshBase> & _input;
33 
35  const std::vector<BoundaryName> _boundary_names;
36 
38  const std::vector<std::vector<BoundaryName>> _hole_boundary_names;
39 
42 
50  std::unique_ptr<MeshBase>
51  General2DDelaunay(std::unique_ptr<MeshBase> & mesh_2d,
52  std::vector<std::unique_ptr<MeshBase>> & hole_meshes_2d);
53 };
Boundary2DDelaunayGenerator(const InputParameters &parameters)
const std::vector< std::vector< BoundaryName > > _hole_boundary_names
The boundaries to be used as holes.
Base class for Delaunay mesh generators applied to a surface.
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseBase.h:131
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
BoundaryName _output_external_boundary_name
The name of the external boundary of the mesh to generate.
Helper class to define, parameterize and create a level set function used in meshing, often to correct the position of nodes on a surface.
std::unique_ptr< MeshBase > & _input
The input mesh name.
virtual std::unique_ptr< MeshBase > generate() override
Generate / modify the mesh.
std::unique_ptr< MeshBase > General2DDelaunay(std::unique_ptr< MeshBase > &mesh_2d, std::vector< std::unique_ptr< MeshBase >> &hole_meshes_2d)
Generate a 2D mesh using Delaunay triangulation based on the input 2D boundary mesh and the 2D hole m...
Mesh generator to remesh a boundary of a volumetric mesh using triangle elements. ...
static InputParameters validParams()
const std::vector< BoundaryName > _boundary_names
The boundaries to be converted to a 2D mesh.