My Project
Loading...
Searching...
No Matches
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
26namespace Opm {
27
28class DeferredLogger;
29template<class Scalar> class WellInterfaceGeneric;
30template<class Scalar> class WellState;
31
33template<class Scalar>
35public:
39 WellState<Scalar>& well_state,
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
53private:
55 void updateSkinFactorsAndMultipliers(const WellInterfaceGeneric<Scalar>& well,
56 WellState<Scalar>& well_state,
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>& 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
Definition DeferredLogger.hpp:57
Class for well calculations related to filter cakes.
Definition WellFilterCake.hpp:34
void updatePreStep(const WellInterfaceGeneric< Scalar > &well, DeferredLogger &deferred_logger)
Pre-step filtration model updates.
Definition WellFilterCake.cpp:65
const std::vector< Scalar > & multipliers() const
Returns a const-ref to multipliers.
Definition WellFilterCake.hpp:51
void updatePostStep(const WellInterfaceGeneric< Scalar > &well, WellState< Scalar > &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:40
Definition WellTest.hpp:37
The state of a set of wells, tailored for use by the fully implicit blackoil simulator.
Definition WellState.hpp:62
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilboundaryratevector.hh:37