https://mooseframework.inl.gov
Loading...
Searching...
No Matches
MFEMGeneratedMeshGenerator.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#ifdef MOOSE_MFEM_ENABLED
11
12#pragma once
13
14#include "MFEMMeshGenerator.h"
15
22{
23public:
25
27
28protected:
29 std::unique_ptr<mfem::Mesh> generateMFEMMesh() override;
30
31private:
33 const unsigned int _dim;
35 const unsigned int _nx;
37 const unsigned int _ny;
39 const unsigned int _nz;
41 const Real _xmax;
43 const Real _ymax;
45 const Real _zmax;
47 const mfem::Element::Type _elem_type;
48};
49
50#endif
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Generates a structured Cartesian MFEM mesh: a line (1D), rectangle (2D), or box (3D) with uniformly s...
const Real _ymax
Upper bound of the domain in the y direction (lower bound is 0)
const unsigned int _dim
Mesh dimension (1, 2, or 3)
const unsigned int _ny
Number of elements in the y direction.
const Real _xmax
Upper bound of the domain in the x direction (lower bound is 0)
const unsigned int _nz
Number of elements in the z direction.
const unsigned int _nx
Number of elements in the x direction.
const Real _zmax
Upper bound of the domain in the z direction (lower bound is 0)
static InputParameters validParams()
std::unique_ptr< mfem::Mesh > generateMFEMMesh() override
Implement this to produce the mfem::Mesh for this generator.
const mfem::Element::Type _elem_type
Element type (resolved from user input or dimension-based default); unused for dim == 1.
Abstract base class for MFEM-native mesh generators.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131