opm-grid
Toggle main menu visibility
Loading...
Searching...
No Matches
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
42
43
#ifdef __cplusplus
44
extern
"C"
{
45
#endif
46
47
48
61
struct
UnstructuredGrid
*
62
create_grid_cart2d(
int
nx,
int
ny,
double
dx,
double
dy);
63
64
76
struct
UnstructuredGrid
*
77
create_grid_cart3d
(
int
nx,
int
ny,
int
nz);
78
79
98
struct
UnstructuredGrid
*
99
create_grid_hexa3d
(
int
nx,
int
ny,
int
nz,
100
double
dx,
double
dy,
double
dz);
101
102
126
struct
UnstructuredGrid
*
127
create_grid_tensor2d
(
int
nx,
int
ny,
128
const
double
*x ,
const
double
*y );
129
130
161
struct
UnstructuredGrid
*
162
create_grid_tensor3d
(
int
nx ,
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 */
create_grid_tensor3d
struct UnstructuredGrid * create_grid_tensor3d(int nx, int ny, int nz, const double *x, const double *y, const double *z, const double *depthz)
Form tensor product (i.e., topologically Cartesian) grid in three space dimensions–possibly with a va...
Definition
cart_grid.c:140
create_grid_tensor2d
struct UnstructuredGrid * create_grid_tensor2d(int nx, int ny, const double *x, const double *y)
Form tensor product (Cartesian) grid in two space dimensions.
Definition
cart_grid.c:122
create_grid_cart3d
struct UnstructuredGrid * create_grid_cart3d(int nx, int ny, int nz)
Form geometrically Cartesian grid in three space dimensions with unit-sized cells.
Definition
cart_grid.c:53
create_grid_hexa3d
struct UnstructuredGrid * create_grid_hexa3d(int nx, int ny, int nz, double dx, double dy, double dz)
Form geometrically Cartesian grid in three space dimensions with equally sized cells.
Definition
cart_grid.c:59
UnstructuredGrid
Data structure for an unstructured grid, unstructured meaning that any cell may have an arbitrary num...
Definition
UnstructuredGrid.h:101
opm
grid
cart_grid.h
Generated by
1.17.0