https://mooseframework.inl.gov
Loading...
Searching...
No Matches
GeneratedMeshGenerator.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#include "MooseEnum.h"
14
19{
20public:
22
24
25 std::unique_ptr<MeshBase> generate() override;
26
27protected:
30
32 unsigned int &_nx, &_ny, &_nz;
33
35 Real &_xmin, &_xmax, &_ymin, &_ymax, &_zmin, &_zmax;
36
39
48
56 const Real _bias_x, _bias_y, _bias_z;
57
59 const std::string _boundary_name_prefix;
60
62 const boundary_id_type _boundary_id_offset;
63};
Generates a line, square, or cube mesh with uniformly spaced or biased elements.
const boundary_id_type _boundary_id_offset
offset that is added to the boundary IDs
Real & _xmin
The min/max values for x,y,z component.
static InputParameters validParams()
const std::string _boundary_name_prefix
prefix string for the boundary names
MooseEnum _dim
The dimension of the mesh.
std::unique_ptr< MeshBase > generate() override
Generate / modify the mesh.
bool _has_subdomain_ids
Whether or not subdomain_ids parameter is set.
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 Real _bias_x
The amount by which to bias the cells in the x,y,z directions.
unsigned int & _nx
Number of elements in x, y, z direction.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
MeshGenerators are objects that can modify or add to an existing mesh.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
Definition MooseEnum.h:55