initState.hpp
Go to the documentation of this file.
1 /*
2  Copyright 2012 SINTEF ICT, Applied Mathematics.
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 
20 #ifndef OPM_INITSTATE_HEADER_INCLUDED
21 #define OPM_INITSTATE_HEADER_INCLUDED
22 
23 #include <opm/parser/eclipse/Deck/Deck.hpp>
24 
25 struct UnstructuredGrid;
26 
27 namespace Opm
28 {
29 
30  namespace parameter { class ParameterGroup; }
31  class IncompPropertiesInterface;
32  class BlackoilPropertiesInterface;
33 
37 
62  template <class State>
64  const IncompPropertiesInterface& props,
65  const parameter::ParameterGroup& param,
66  const double gravity,
67  State& state);
68 
93  template <class FaceCells, class CCI, class FCI, class State>
94  void initStateBasic(int number_of_cells,
95  const int* global_cell,
96  const int* cartdims,
97  int number_of_faces,
98  FaceCells face_cells,
99  FCI begin_face_centroids,
100  CCI begin_cell_centroids,
101  int dimensions,
102  const IncompPropertiesInterface& props,
103  const parameter::ParameterGroup& param,
104  const double gravity,
105  State& state);
106 
123  template <class State>
125  const BlackoilPropertiesInterface& props,
126  const parameter::ParameterGroup& param,
127  const double gravity,
128  State& state);
129 
146  template <class FaceCells, class FCI, class CCI, class State>
147  void initStateBasic(int number_of_cells,
148  const int* global_cell,
149  const int* cartdims,
150  int number_of_faces,
151  FaceCells face_cells,
152  FCI begin_face_centroids,
153  CCI begin_cell_centroids,
154  int dimensions,
155  const BlackoilPropertiesInterface& props,
156  const parameter::ParameterGroup& param,
157  const double gravity,
158  State& state);
159 
167  template <class Props, class State>
169  const Props& props,
170  Opm::DeckConstPtr deck,
171  const double gravity,
172  State& state);
173 
182  template <class Props, class State>
184  const Props& props,
185  Opm::DeckConstPtr deck,
186  const double gravity,
187  State& state);
189  template <class FaceCells, class FCI, class CCI, class Props, class State>
190  void initBlackoilStateFromDeck(int number_of_cells,
191  const int* global_cell,
192  int number_of_faces,
193  FaceCells face_cells,
194  FCI begin_face_centroids,
195  CCI begin_cell_centroids,
196  int dimensions,
197  const Props& props,
198  Opm::DeckConstPtr deck,
199  const double gravity,
200  State& state);
201 } // namespace Opm
202 
204 
205 #endif // OPM_INITSTATE_HEADER_INCLUDED
Definition: grid.h:98
Definition: AnisotropicEikonal.hpp:43
int dimensions(const UnstructuredGrid &grid)
Get the dimensions of a grid.
const double gravity
Definition: Units.hpp:120
const UnstructuredGrid & grid
Definition: ColumnExtract.hpp:31
void initStateFromDeck(const UnstructuredGrid &grid, const Props &props, Opm::DeckConstPtr deck, const double gravity, State &state)
Initialize a state from input deck.
Definition: initState_impl.hpp:554
void initStateBasic(const UnstructuredGrid &grid, const IncompPropertiesInterface &props, const parameter::ParameterGroup &param, const double gravity, State &state)
Initialize a twophase state from parameters.
Definition: initState_impl.hpp:345
void initBlackoilStateFromDeck(const UnstructuredGrid &grid, const Props &props, Opm::DeckConstPtr deck, const double gravity, State &state)
Initialize a blackoil state from input deck.
Definition: initState_impl.hpp:857