Loading...
Searching...
No Matches
GridUtilities.hpp
/*
Copyright 2014 SINTEF ICT, Applied Mathematics.
This file is part of the Open Porous Media project (OPM).
OPM is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OPM is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with OPM. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef OPM_GRIDUTILITIES_HEADER_INCLUDED
#define OPM_GRIDUTILITIES_HEADER_INCLUDED
#include <opm/grid/UnstructuredGrid.h>
#include <opm/grid/utility/SparseTable.hpp>
namespace Opm
{
SparseTable<int> cellNeighboursAcrossVertices(const UnstructuredGrid& grid);
void orderCounterClockwise(const UnstructuredGrid& grid,
SparseTable<int>& nb);
} // namespace Opm
#endif // OPM_GRIDUTILITIES_HEADER_INCLUDED
UnstructuredGrid.h
Main OPM-Core grid data structure along with helper functions for construction, destruction and readi...
Opm::SparseTable
A SparseTable stores a table with rows of varying size as efficiently as possible.
Definition SparseTable.hpp:55
Opm
Holds the implementation of the CpGrid as a pimple.
Definition CellQuadrature.cpp:68
Opm::orderCounterClockwise
void orderCounterClockwise(const UnstructuredGrid &grid, SparseTable< int > &nb)
For each cell, order the (cell) neighbours counterclockwise.
Definition GridUtilities.cpp:104
Opm::cellNeighboursAcrossVertices
SparseTable< int > cellNeighboursAcrossVertices(const UnstructuredGrid &grid)
For each cell, find indices of all other cells sharing a vertex with it.
Definition GridUtilities.cpp:44