www.mooseframework.org
GeneratedMesh.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #ifndef GENERATEDMESH_H
16 #define GENERATEDMESH_H
17 
18 #include "MooseMesh.h"
19 
20 class GeneratedMesh;
21 
22 template <>
24 
28 class GeneratedMesh : public MooseMesh
29 {
30 public:
32  GeneratedMesh(const GeneratedMesh & other_mesh) = default;
33 
34  // No copy
35  GeneratedMesh & operator=(const GeneratedMesh & other_mesh) = delete;
36 
37  virtual MooseMesh & clone() const override;
38  virtual void buildMesh() override;
39  virtual Real getMinInDimension(unsigned int component) const override;
40  virtual Real getMaxInDimension(unsigned int component) const override;
41 
42 protected:
45 
47  unsigned int _nx, _ny, _nz;
48 
51 
58 
65 };
66 
67 #endif /* GENERATEDMESH_H */
virtual MooseMesh & clone() const override
Clone method.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
MooseEnum _dim
The dimension of the mesh.
Definition: GeneratedMesh.h:44
virtual Real getMaxInDimension(unsigned int component) const override
virtual void buildMesh() override
Must be overridden by child classes.
Mesh generated from parameters.
Definition: GeneratedMesh.h:28
InputParameters validParams< GeneratedMesh >()
Definition: GeneratedMesh.C:28
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
Definition: MooseMesh.h:74
virtual Real getMinInDimension(unsigned int component) const override
Returns the min or max of the requested dimension respectively.
unsigned int _ny
Definition: GeneratedMesh.h:47
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
Definition: MooseEnum.h:37
Real _xmin
The min/max values for x,y,z component.
Definition: GeneratedMesh.h:50
GeneratedMesh(const InputParameters &parameters)
Definition: GeneratedMesh.C:81
GeneratedMesh & operator=(const GeneratedMesh &other_mesh)=delete
unsigned int _nz
Definition: GeneratedMesh.h:47
bool _gauss_lobatto_grid
All of the libmesh build_line/square/cube routines support an option to grade the mesh into the bound...
Definition: GeneratedMesh.h:57
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
unsigned int _nx
Number of elements in x, y, z direction.
Definition: GeneratedMesh.h:47
Real _bias_x
The amount by which to bias the cells in the x,y,z directions.
Definition: GeneratedMesh.h:64