https://mooseframework.inl.gov
Loading...
Searching...
No Matches
GeneratedMesh.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 "MooseMesh.h"
13
18{
19public:
21
23 GeneratedMesh(const GeneratedMesh & /* other_mesh */) = default;
24
25 // No copy
26 GeneratedMesh & operator=(const GeneratedMesh & other_mesh) = delete;
27
28 virtual std::unique_ptr<MooseMesh> safeClone() const override;
29
30 virtual void buildMesh() override;
31 virtual Real getMinInDimension(unsigned int component) const override;
32 virtual Real getMaxInDimension(unsigned int component) const override;
33 virtual void prepared(bool state) override;
34
35protected:
38
40 unsigned int _nx, _ny, _nz;
41
44
51
58
61};
Mesh generated from parameters.
virtual std::unique_ptr< MooseMesh > safeClone() const override
A safer version of the clone() method that hands back an allocated object wrapped in a smart pointer.
GeneratedMesh(const GeneratedMesh &)=default
unsigned int _nz
virtual Real getMaxInDimension(unsigned int component) const override
Real _xmin
The min/max values for x,y,z component.
bool _dims_may_have_changed
Boolean to indicate that dimensions may have changed.
unsigned int _nx
Number of elements in x, y, z direction.
GeneratedMesh & operator=(const GeneratedMesh &other_mesh)=delete
MooseEnum _dim
The dimension of the mesh.
virtual Real getMinInDimension(unsigned int component) const override
Returns the min or max of the requested dimension respectively.
bool _gauss_lobatto_grid
All of the libmesh build_line/square/cube routines support an option to grade the mesh into the bound...
virtual void buildMesh() override
Must be overridden by child classes.
static InputParameters validParams()
unsigned int _ny
Real _bias_x
The amount by which to bias the cells in the x,y,z directions.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
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
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
Definition MooseMesh.h:95
bool prepared() const
Setter/getter for whether the mesh is prepared.
Definition MooseMesh.C:3238