1#ifndef included_AMP_StructuredMeshHelper
2#define included_AMP_StructuredMeshHelper
4#include "AMP/mesh/Mesh.h"
33 std::vector<double> &x,
34 std::vector<double> &y,
35 std::vector<double> &z,
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.