Opm::wellhelpers Namespace Reference

Classes

class  ParallelStandardWellB
 A wrapper around the B matrix for distributed wells. More...
 

Functions

double computeHydrostaticCorrection (const double well_ref_depth, const double vfp_ref_depth, const double rho, const double gravity)
 
template<typename Scalar , typename Comm >
void sumDistributedWellEntries (Dune::DynamicMatrix< Scalar > &mat, Dune::DynamicVector< Scalar > &vec, const Comm &comm)
 Sums entries of the diagonal Matrix for distributed wells. More...
 
template<class DenseMatrix >
DenseMatrix transposeDenseDynMatrix (const DenseMatrix &M)
 
bool rateControlWithZeroProdTarget (const WellProductionControls &controls, WellProducerCMode mode)
 Helper to check whether the well is under zero production rate control. More...
 
bool rateControlWithZeroInjTarget (const WellInjectionControls &controls, WellInjectorCMode mode)
 Helper to check whether the well is under zero injection rate control. More...
 

Function Documentation

◆ computeHydrostaticCorrection()

double Opm::wellhelpers::computeHydrostaticCorrection ( const double  well_ref_depth,
const double  vfp_ref_depth,
const double  rho,
const double  gravity 
)

◆ rateControlWithZeroInjTarget()

bool Opm::wellhelpers::rateControlWithZeroInjTarget ( const WellInjectionControls &  controls,
WellInjectorCMode  mode 
)

Helper to check whether the well is under zero injection rate control.

◆ rateControlWithZeroProdTarget()

bool Opm::wellhelpers::rateControlWithZeroProdTarget ( const WellProductionControls &  controls,
WellProducerCMode  mode 
)

Helper to check whether the well is under zero production rate control.

◆ sumDistributedWellEntries()

template<typename Scalar , typename Comm >
void Opm::wellhelpers::sumDistributedWellEntries ( Dune::DynamicMatrix< Scalar > &  mat,
Dune::DynamicVector< Scalar > &  vec,
const Comm comm 
)

Sums entries of the diagonal Matrix for distributed wells.

◆ transposeDenseDynMatrix()

template<class DenseMatrix >
DenseMatrix Opm::wellhelpers::transposeDenseDynMatrix ( const DenseMatrix &  M)