FaultedBoundaryFaces.hpp
Go to the documentation of this file.
1/*
2 Copyright 2026 Equinor ASA.
3
4 This file is part of the Open Porous Media project (OPM).
5
6 OPM is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 OPM is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with OPM. If not, see <http://www.gnu.org/licenses/>.
18*/
19#ifndef OPM_GRID_REFINEMENT_FAULTEDBOUNDARYFACES_HEADER_INCLUDED
20#define OPM_GRID_REFINEMENT_FAULTEDBOUNDARYFACES_HEADER_INCLUDED
21
23
24#include <array>
25#include <optional>
26#include <vector>
27
28namespace Opm
29{
30namespace Refinement
31{
32
36{
37 std::array<int,3> boxCell{};
41 std::array<int,3> coarseNeighborSub{};
47 std::vector<std::array<double,3>> faceNodes;
48};
49
69std::vector<BoundaryConnection>
70boxBoundaryConnections(const std::array<int,3>& parentDims,
71 const double* coord,
72 const double* zcorn,
73 const int* actnum,
74 const BlockRefinement& box,
75 int axis,
76 int side,
77 const std::optional<CellRange>& across);
78
79} // namespace Refinement
80} // namespace Opm
81
82#endif // OPM_GRID_REFINEMENT_FAULTEDBOUNDARYFACES_HEADER_INCLUDED
std::vector< BoundaryConnection > boxBoundaryConnections(const std::array< int, 3 > &parentDims, const double *coord, const double *zcorn, const int *actnum, const BlockRefinement &box, int axis, int side, const std::optional< CellRange > &across)
Holds the implementation of the CpGrid as a pimple.
Definition: CellQuadrature.hpp:26
Definition: RefinementRequest.hpp:57
Definition: FaultedBoundaryFaces.hpp:36
std::array< int, 3 > coarseNeighborSub
Definition: FaultedBoundaryFaces.hpp:41
std::vector< std::array< double, 3 > > faceNodes
face corner coordinates
Definition: FaultedBoundaryFaces.hpp:47
std::array< int, 3 > boxCell
lattice (i,j,k) in the box's refined frame
Definition: FaultedBoundaryFaces.hpp:37
int coarseNeighborCart
Definition: FaultedBoundaryFaces.hpp:38