Advanced Multi-Physics (AMP)
On-Line Documentation
StructuredMeshHelper.h
Go to the documentation of this file.
1#ifndef included_AMP_StructuredMeshHelper
2#define included_AMP_StructuredMeshHelper
3
4#include "AMP/mesh/Mesh.h"
5
6
7namespace AMP::Mesh {
8
9
18{
19public:
32 static void getXYZCoordinates( std::shared_ptr<AMP::Mesh::Mesh> mesh,
33 std::vector<double> &x,
34 std::vector<double> &y,
35 std::vector<double> &z,
36 bool check = true );
37
46 static AMP::Mesh::MeshIterator getXYFaceIterator( std::shared_ptr<AMP::Mesh::Mesh> mesh,
47 int gcw = 0 );
48
57 static AMP::Mesh::MeshIterator getXZFaceIterator( std::shared_ptr<AMP::Mesh::Mesh> mesh,
58 int gcw = 0 );
59
68 static AMP::Mesh::MeshIterator getYZFaceIterator( std::shared_ptr<AMP::Mesh::Mesh> mesh,
69 int gcw );
70
81 getFaceIterator( std::shared_ptr<AMP::Mesh::Mesh> mesh, int gcw, int direction );
82
83
84 static AMP::Mesh::MeshIterator getGapFaceIterator( std::shared_ptr<AMP::Mesh::Mesh> subChannel,
85 int ghostWidth );
86
87protected:
88};
89} // namespace AMP::Mesh
90#endif
A class used to iterate over elements in a Mesh.
A class used to provide utility functions for simple structured meshes.
static AMP::Mesh::MeshIterator getXZFaceIterator(std::shared_ptr< AMP::Mesh::Mesh > mesh, int gcw=0)
Get an iterator over the faces in the x-z planes.
static void getXYZCoordinates(std::shared_ptr< AMP::Mesh::Mesh > mesh, std::vector< double > &x, std::vector< double > &y, std::vector< double > &z, bool check=true)
Get the x, y, z, coordinates of a cube mesh.
static AMP::Mesh::MeshIterator getGapFaceIterator(std::shared_ptr< AMP::Mesh::Mesh > subChannel, int ghostWidth)
static AMP::Mesh::MeshIterator getYZFaceIterator(std::shared_ptr< AMP::Mesh::Mesh > mesh, int gcw)
Get an iterator over the faces in the y-z planes.
static AMP::Mesh::MeshIterator getFaceIterator(std::shared_ptr< AMP::Mesh::Mesh > mesh, int gcw, int direction)
Get an iterator over the faces.
static AMP::Mesh::MeshIterator getXYFaceIterator(std::shared_ptr< AMP::Mesh::Mesh > mesh, int gcw=0)
Get an iterator over the faces in the x-y planes.



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