CompressibleTpfaPolymer.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_COMPRESSIBLETPFAPOLYMER_HEADER_INCLUDED
21#define OPM_COMPRESSIBLETPFAPOLYMER_HEADER_INCLUDED
22
23
24#include <opm/core/pressure/CompressibleTpfa.hpp>
25
26#include <vector>
27
28struct UnstructuredGrid;
29struct Wells;
30struct FlowBoundaryConditions;
31
32namespace Opm
33{
34
35 class BlackoilState;
37 class RockCompressibility;
39 class LinearSolverInterface;
41 class WellState;
42
48 class CompressibleTpfaPolymer : public CompressibleTpfa
49 {
50 public:
51
70 CompressibleTpfaPolymer(const UnstructuredGrid& grid,
71 const BlackoilPropertiesInterface& props,
72 const RockCompressibility* rock_comp_props,
73 const PolymerProperties& poly_props,
74 const LinearSolverInterface& linsolver,
75 const double residual_tol,
76 const double change_tol,
77 const int maxiter,
78 const double* gravity,
79 const Wells* wells);
80
85 void solve(const double dt,
87 WellState& well_state);
88
89 private:
90 virtual void computeCellDynamicData(const double dt,
91 const BlackoilState& state,
92 const WellState& well_state);
93
94 virtual void computePerSolveDynamicData(const double dt,
95 const BlackoilState& state,
96 const WellState& well_state);
97
98
99 private:
100 // ------ Data that will remain unmodified after construction. ------
101 const PolymerProperties& poly_props_;
102 // ------ Data that will be updated every solve() call. ------
103 const std::vector<double>* c_;
104 const std::vector<double>* cmax_;
105 std::vector<double> cell_eff_viscosity_;
106 std::vector<double> cell_relperm_;
107 };
108
109} // namespace Opm
110
111#endif // OPM_COMPRESSIBLETPFAPOLYMER_HEADER_INCLUDED
Definition: CompressibleTpfaPolymer.hpp:49
void solve(const double dt, PolymerBlackoilState &state, WellState &well_state)
CompressibleTpfaPolymer(const UnstructuredGrid &grid, const BlackoilPropertiesInterface &props, const RockCompressibility *rock_comp_props, const PolymerProperties &poly_props, const LinearSolverInterface &linsolver, const double residual_tol, const double change_tol, const int maxiter, const double *gravity, const Wells *wells)
Definition: PolymerBlackoilState.hpp:34
Definition: PolymerProperties.hpp:35
Definition: CompressibleTpfaPolymer.hpp:33