cart_grid.h
Go to the documentation of this file.
1/*===========================================================================
2//
3// File: cart_grid.h
4//
5// Author: Jostein R. Natvig <Jostein.R.Natvig@sintef.no>
6//
7//==========================================================================*/
8
9
10/*
11 Copyright 2011 SINTEF ICT, Applied Mathematics.
12 Copyright 2011 Statoil ASA.
13
14 This file is part of the Open Porous Media Project (OPM).
15
16 OPM is free software: you can redistribute it and/or modify
17 it under the terms of the GNU General Public License as published by
18 the Free Software Foundation, either version 3 of the License, or
19 (at your option) any later version.
20
21 OPM is distributed in the hope that it will be useful,
22 but WITHOUT ANY WARRANTY; without even the implied warranty of
23 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 GNU General Public License for more details.
25
26 You should have received a copy of the GNU General Public License
27 along with OPM. If not, see <http://www.gnu.org/licenses/>.
28*/
29
30#ifndef OPM_CART_GRID_H_HEADER
31#define OPM_CART_GRID_H_HEADER
32
43#ifdef __cplusplus
44extern "C" {
45#endif
46
47
48
61struct UnstructuredGrid *
62create_grid_cart2d(int nx, int ny, double dx, double dy);
63
64
76struct UnstructuredGrid *
77create_grid_cart3d(int nx, int ny, int nz);
78
79
98struct UnstructuredGrid *
99create_grid_hexa3d(int nx, int ny, int nz,
100 double dx, double dy, double dz);
101
102
126struct UnstructuredGrid *
127create_grid_tensor2d(int nx, int ny,
128 const double *x , const double *y );
129
130
161struct UnstructuredGrid *
163 int ny ,
164 int nz ,
165 const double *x ,
166 const double *y ,
167 const double *z ,
168 const double *depthz);
169#ifdef __cplusplus
170}
171#endif
172#endif /* OPM_CART_GRID_H_HEADER */
struct UnstructuredGrid * create_grid_cart2d(int nx, int ny, double dx, double dy)
struct UnstructuredGrid * create_grid_tensor3d(int nx, int ny, int nz, const double *x, const double *y, const double *z, const double *depthz)
struct UnstructuredGrid * create_grid_tensor2d(int nx, int ny, const double *x, const double *y)
struct UnstructuredGrid * create_grid_cart3d(int nx, int ny, int nz)
struct UnstructuredGrid * create_grid_hexa3d(int nx, int ny, int nz, double dx, double dy, double dz)
Definition: UnstructuredGrid.h:99