https://mooseframework.inl.gov
Loading...
Searching...
No Matches
CartesianMeshGenerator.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
15/*
16 * Mesh generator to create a Cartesian mesh
17 */
19{
20public:
22
24
25 std::unique_ptr<MeshBase> generate() override;
26
27protected:
31 std::vector<Real> _dx;
33 std::vector<unsigned int> _ix;
35 std::vector<Real> _dy;
37 std::vector<unsigned int> _iy;
39 std::vector<Real> _dz;
41 std::vector<unsigned int> _iz;
43 std::vector<unsigned int> _subdomain_id;
45 int _nx, _ny, _nz;
46};
std::vector< Real > _dy
Intervals in y direction.
std::vector< unsigned int > _iy
Number of grids in all intervals in y direction.
std::vector< unsigned int > _ix
Number of grids in all intervals in x direction.
static InputParameters validParams()
std::vector< unsigned int > _subdomain_id
Block IDs.
int _nx
Number of elements in x, y, z direction.
std::vector< Real > _dz
Intervals in z direction.
std::vector< unsigned int > _iz
Number of grids in all intervals in z direction.
std::vector< Real > _dx
Intervals in x direction.
std::unique_ptr< MeshBase > generate() override
Generate / modify the mesh.
MooseEnum _dim
The dimension of the mesh.
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