23 #ifndef OPM_MSWELLHELPERS_HEADER_INCLUDED 24 #define OPM_MSWELLHELPERS_HEADER_INCLUDED 26 #include <dune/istl/matrix.hh> 38 namespace mswellhelpers
52 template<
class MatrixType>
56 using Scalar =
typename MatrixType::field_type;
61 template<
class X,
class Y>
62 void mv (
const X& x, Y& y)
const;
65 template<
class X,
class Y>
66 void mmv (
const X& x, Y& y)
const;
74 template <
typename MatrixType,
typename VectorType>
82 template <
typename VectorType,
typename MatrixType>
83 Dune::Matrix<typename MatrixType::block_type>
84 invertWithUMFPack(
const int size,
91 template <
typename MatrixType,
typename VectorType>
93 invDX(
const MatrixType& D, VectorType x,
DeferredLogger& deferred_logger);
103 template <
typename ValueType,
typename Scalar>
104 ValueType frictionPressureLoss(
const Scalar l,
const Scalar diameter,
105 const Scalar area,
const Scalar roughness,
106 const ValueType& density,
107 const ValueType& w,
const ValueType& mu);
110 template <
typename ValueType,
typename Scalar>
111 ValueType valveContrictionPressureLoss(
const ValueType& mass_rate,
112 const ValueType& density,
113 const Scalar area_con,
const Scalar cv);
116 template <
typename ValueType,
typename Scalar>
117 ValueType velocityHead(
const Scalar area,
const ValueType& mass_rate,
118 const ValueType& density);
122 template <
typename ValueType,
typename Scalar>
123 ValueType emulsionViscosity(
const ValueType& water_fraction,
124 const ValueType& water_viscosity,
125 const ValueType& oil_fraction,
126 const ValueType& oil_viscosity,
Definition: MSWellHelpers.hpp:29
A wrapper around the B matrix for distributed MS wells.
Definition: MSWellHelpers.hpp:53
void mmv(const X &x, Y &y) const
y = A x
Definition: MSWellHelpers.cpp:136
Definition: fvbaseprimaryvariables.hh:161
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: blackoilbioeffectsmodules.hh:45
Class encapsulating some information about parallel wells.
Definition: MSWellHelpers.hpp:34
Definition: DeferredLogger.hpp:56
void mv(const X &x, Y &y) const
y = A x
Definition: MSWellHelpers.cpp:116