www.mooseframework.org
GeneratedMeshGenerator.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 "MooseEnum.h"
14 
19 {
20 public:
22 
24 
25  std::unique_ptr<MeshBase> generate() override;
26 
27 protected:
30 
32  unsigned int &_nx, &_ny, &_nz;
33 
36 
39 
47  const bool _gauss_lobatto_grid;
48 
57 
59  const std::string _boundary_name_prefix;
60 
63 };
const Real _bias_x
The amount by which to bias the cells in the x,y,z directions.
bool _has_subdomain_ids
Whether or not subdomain_ids parameter is set.
GeneratedMeshGenerator(const InputParameters &parameters)
Generates a line, square, or cube mesh with uniformly spaced or biased elements.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const boundary_id_type _boundary_id_offset
offset that is added to the boundary IDs
int8_t boundary_id_type
static InputParameters validParams()
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
Definition: MooseEnum.h:31
unsigned int & _nx
Number of elements in x, y, z direction.
Real & _xmin
The min/max values for x,y,z component.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const bool _gauss_lobatto_grid
All of the libmesh build_line/square/cube routines support an option to grade the mesh into the bound...
const InputParameters & parameters() const
Get the parameters of the object.
std::unique_ptr< MeshBase > generate() override
Generate / modify the mesh.
MooseEnum _dim
The dimension of the mesh.
const std::string _boundary_name_prefix
prefix string for the boundary names
MeshGenerators are objects that can modify or add to an existing mesh.
Definition: MeshGenerator.h:32