Loading...
Searching...
No Matches
WellFilterCake.hpp
/*
Copyright 2023 Equinor
This file is part of the Open Porous Media project (OPM).
OPM is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OPM is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with OPM. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef OPM_WELL_FILTER_CAKE_HEADER_INCLUDED
#define OPM_WELL_FILTER_CAKE_HEADER_INCLUDED
#include <cstddef>
#include <vector>
namespace Opm {
class DeferredLogger;
template<typename Scalar, typename IndexTraits> class WellInterfaceGeneric;
template<typename Scalar, typename IndexTraits> class WellState;
template<typename Scalar, typename IndexTraits>
class WellFilterCake {
public:
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);
void updatePreStep(const WellInterfaceGeneric<Scalar, IndexTraits>& well,
DeferredLogger& deferred_logger);
const std::vector<Scalar>& multipliers() const { return inj_fc_multiplier_; }
private:
void updateSkinFactorsAndMultipliers(const WellInterfaceGeneric<Scalar, IndexTraits>& well,
WellState<Scalar, IndexTraits>& well_state,
const double dt,
const std::size_t water_index,
DeferredLogger& deferred_logger);
template<class Conn>
void updateMultiplier(const Conn& conn, const int perf);
void applyCleaning(const WellInterfaceGeneric<Scalar, IndexTraits>& well,
DeferredLogger& deferred_logger);
std::vector<Scalar> inj_fc_multiplier_;
std::vector<Scalar> skin_factor_;
std::vector<Scalar> thickness_;
};
}
#endif // OPM_WELL_FILTER_CAKE_HEADER_INCLUDED
Opm::DeferredLogger
Definition DeferredLogger.hpp:57
Opm::WellFilterCake
Class for well calculations related to filter cakes.
Definition WellFilterCake.hpp:34
Opm::WellFilterCake::multipliers
const std::vector< Scalar > & multipliers() const
Returns a const-ref to multipliers.
Definition WellFilterCake.hpp:51
Opm::WellFilterCake::updatePostStep
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
Opm::WellFilterCake::updatePreStep
void updatePreStep(const WellInterfaceGeneric< Scalar, IndexTraits > &well, DeferredLogger &deferred_logger)
Pre-step filtration model updates.
Definition WellFilterCake.cpp:67
Opm::WellInterfaceGeneric
Definition WellInterfaceGeneric.hpp:53
Opm::WellState
The state of a set of wells, tailored for use by the fully implicit blackoil simulator.
Definition WellState.hpp:66
Opm
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilbioeffectsmodules.hh:43