https://mooseframework.inl.gov
FillBetweenCurvesGenerator.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 #include "MeshGenerator.h"
12 
18 {
19 public:
21 
23 
24  std::unique_ptr<MeshBase> generate() override;
25 
26 protected:
28  const MeshGeneratorName _input_name_1;
30  const MeshGeneratorName _input_name_2;
32  const Point _mesh_1_shift;
34  const Point _mesh_2_shift;
36  const unsigned int _num_layers;
48  const bool _use_quad_elements;
52  const Real _sigma;
54  std::unique_ptr<MeshBase> & _input_1;
56  std::unique_ptr<MeshBase> & _input_2;
57 
63  Point curveCentroidPoint(const ReplicatedMesh & curve);
64 };
FillBetweenCurvesGenerator(const InputParameters &parameters)
const boundary_id_type _end_side_boundary_id
ID to be assigned to the boundary that connects the ending points of positions_vectors.
const MeshGeneratorName _input_name_1
Name of the mesh which contains the first input boundary.
const Real _sigma
Parameter used for Gaussian blurring of local node density.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const boundary_id_type _begin_side_boundary_id
ID to be assigned to the boundary that connects the starting points of positions_vectors.
Point curveCentroidPoint(const ReplicatedMesh &curve)
Calculates the centroid of a curve mesh.
const bool _use_quad_elements
A boolean parameter to determine whether QUAD4 elements are used instead of TRI3 elements.
std::unique_ptr< MeshBase > generate() override
Generate / modify the mesh.
const unsigned int _num_layers
Number of sublayers of the mesh to be generated.
int8_t boundary_id_type
const subdomain_id_type _block_id
Subdomain ID to be assigned to the generated transition layer.
std::unique_ptr< MeshBase > & _input_1
The mesh which contains the first input boundary.
const boundary_id_type _input_boundary_2_id
ID to be assigned to the boundary that corresponds to the input boundary on the second input mesh...
const Point _mesh_2_shift
Translation applied to the second input mesh.
const Point _mesh_1_shift
Translation applied to the first input mesh.
std::unique_ptr< MeshBase > & _input_2
The mesh which contains the second input boundary.
This FillBetweenCurvesGenerator object is designed to generate a transition layer to connect two curv...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const boundary_id_type _input_boundary_1_id
ID to be assigned to the boundary that corresponds to the input boundary on the first input mesh...
const InputParameters & parameters() const
Get the parameters of the object.
const MeshGeneratorName _input_name_2
Name of the mesh which contains the second input boundary.
const Real _bias_parameter
A parameter used to set up mesh biasing of the layers.
MeshGenerators are objects that can modify or add to an existing mesh.
Definition: MeshGenerator.h:32
static InputParameters validParams()