opm-simulators
WellFilterCake.hpp
1 /*
2  Copyright 2023 Equinor
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_WELL_FILTER_CAKE_HEADER_INCLUDED
21 #define OPM_WELL_FILTER_CAKE_HEADER_INCLUDED
22 
23 #include <cstddef>
24 #include <vector>
25 
26 namespace Opm {
27 
28 class DeferredLogger;
29 template<typename Scalar, typename IndexTraits> class WellInterfaceGeneric;
30 template<typename Scalar, typename IndexTraits> class WellState;
31 
33 template<typename Scalar, typename IndexTraits>
35 public:
40  const double dt,
41  const Scalar conc,
42  const std::size_t water_index,
43  DeferredLogger& deferred_logger);
44 
48  DeferredLogger& deferred_logger);
49 
51  const std::vector<Scalar>& multipliers() const { return inj_fc_multiplier_; }
52 
53 private:
55  void updateSkinFactorsAndMultipliers(const WellInterfaceGeneric<Scalar, IndexTraits>& well,
57  const double dt,
58  const std::size_t water_index,
59  DeferredLogger& deferred_logger);
60  template<class Conn>
61  void updateMultiplier(const Conn& conn, const int perf);
62 
65  void applyCleaning(const WellInterfaceGeneric<Scalar, IndexTraits>& well,
66  DeferredLogger& deferred_logger);
67 
68 
69  std::vector<Scalar> inj_fc_multiplier_;
70  std::vector<Scalar> skin_factor_;
71  std::vector<Scalar> thickness_;
72 };
73 
74 }
75 
76 #endif // OPM_WELL_FILTER_CAKE_HEADER_INCLUDED
void updatePreStep(const WellInterfaceGeneric< Scalar, IndexTraits > &well, DeferredLogger &deferred_logger)
Pre-step filtration model updates.
Definition: WellFilterCake.cpp:67
Class for well calculations related to filter cakes.
Definition: WellFilterCake.hpp:34
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: blackoilbioeffectsmodules.hh:45
void updatePostStep(const WellInterfaceGeneric< Scalar, IndexTraits > &well, WellState< Scalar, IndexTraits > &well_state, const double dt, const Scalar conc, const std::size_t water_index, DeferredLogger &deferred_logger)
Post-step filtration model updates.
Definition: WellFilterCake.cpp:42
Definition: DeferredLogger.hpp:56
const std::vector< Scalar > & multipliers() const
Returns a const-ref to multipliers.
Definition: WellFilterCake.hpp:51
Definition: BlackoilWellModelGeneric.hpp:75
The state of a set of wells, tailored for use by the fully implicit blackoil simulator.
Definition: TemperatureModel.hpp:61