Advanced Multi-Physics (AMP)
On-Line Documentation
libmeshGenerators.h
Go to the documentation of this file.
1// This file contains classes for generating meshes that are based in libmesh
2#ifndef included_AMP_Unit_test_Libmesh_Generators_h
3#define included_AMP_Unit_test_Libmesh_Generators_h
4
5#include "AMP/AMP_TPLs.h"
6#include "AMP/mesh/MeshParameters.h"
7#include "AMP/mesh/testHelpers/meshGenerators.h"
8
9#include <string>
10
11
13class Communicator;
14}
15namespace AMP::Mesh {
16class initializeLibMesh;
17}
18
19
20namespace AMP::unit_test {
21
22
23// Class to create a cube in Libmesh
25{
26public:
28 LibMeshCubeGenerator( int size ) : SIZE( size ) {}
29 void build_mesh() override;
30 std::string name() const override { return "LibMeshCubeGenerator"; }
31
32private:
33 [[maybe_unused]] int SIZE = 0;
34};
35
36
37// Class to read in a default exodus file
39{
40public:
42 ExodusReaderGenerator( std::string_view file ) : d_file( file ) {}
43 void build_mesh() override;
44 std::string name() const override { return "ExodusReaderGenerator"; }
45 [[maybe_unused]] const std::string d_file;
46};
47
48
49// MulitMesh generator
51{
52public:
53 void build_mesh() override;
54 std::string name() const override { return "MultiMeshGenerator"; }
55};
56
57
58// libMeshThreeElement generator
60{
61public:
62 std::string name() const override { return "libMeshThreeElementGenerator"; }
63 static std::vector<unsigned int> getBndDofIndices();
64 static std::vector<std::vector<unsigned int>> getElemNodeMap();
65 void build_mesh() override;
67
68protected:
69 std::shared_ptr<libMesh::Parallel::Communicator> libMeshComm;
70 std::shared_ptr<AMP::Mesh::initializeLibMesh> libmeshInit;
71};
72
73
74} // namespace AMP::unit_test
75
76
77#endif
std::string name() const override
ExodusReaderGenerator(std::string_view file)
std::string name() const override
std::string name() const override
std::shared_ptr< AMP::Mesh::initializeLibMesh > libmeshInit
static std::vector< std::vector< unsigned int > > getElemNodeMap()
static std::vector< unsigned int > getBndDofIndices()
std::shared_ptr< libMesh::Parallel::Communicator > libMeshComm



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:40.
Comments on this page