miscUtilities.hpp File Reference
#include <vector>
#include <iosfwd>
#include "miscUtilities_impl.hpp"
Include dependency graph for miscUtilities.hpp:

Go to the source code of this file.

Classes

class  Opm::Watercut
 
class  Opm::WellReport
 

Namespaces

namespace  Opm
 

Functions

void Opm::computePorevolume (const UnstructuredGrid &grid, const double *porosity, std::vector< double > &porevol)
 Computes pore volume of all cells in a grid. More...
 
template<class T >
void Opm::computePorevolume (int number_of_cells, T begin_cell_volume, const double *porosity, std::vector< double > &porevol)
 Computes pore volume of all cells in a grid. More...
 
void Opm::computePorevolume (const UnstructuredGrid &grid, const double *porosity, const RockCompressibility &rock_comp, const std::vector< double > &pressure, std::vector< double > &porevol)
 Computes pore volume of all cells in a grid, with rock compressibility effects. More...
 
template<class T >
void Opm::computePorevolume (int number_of_cells, T begin_cell_volume, const double *porosity, const RockCompressibility &rock_comp, const std::vector< double > &pressure, std::vector< double > &porevol)
 Computes pore volume of all cells in a grid, with rock compressibility effects. More...
 
void Opm::computePorosity (const UnstructuredGrid &grid, const double *porosity_standard, const RockCompressibility &rock_comp, const std::vector< double > &pressure, std::vector< double > &porosity)
 Computes porosity of all cells in a grid, with rock compressibility effects. More...
 
void Opm::computeSaturatedVol (const std::vector< double > &pv, const std::vector< double > &s, double *sat_vol)
 Computes total saturated volumes over all grid cells. More...
 
void Opm::computeAverageSat (const std::vector< double > &pv, const std::vector< double > &s, double *aver_sat)
 Computes average saturations over all grid cells. More...
 
void Opm::computeInjectedProduced (const IncompPropertiesInterface &props, const std::vector< double > &s, const std::vector< double > &src, const double dt, double *injected, double *produced)
 Computes injected and produced volumes of all phases. Note 1: assumes that only the first phase is injected. Note 2: assumes that transport has been done with an implicit method, i.e. that the current state gives the mobilities used for the preceding timestep. More...
 
void Opm::computeTotalMobility (const Opm::IncompPropertiesInterface &props, const std::vector< int > &cells, const std::vector< double > &s, std::vector< double > &totmob)
 Computes total mobility for a set of saturation values. More...
 
void Opm::computeTotalMobilityOmega (const Opm::IncompPropertiesInterface &props, const std::vector< int > &cells, const std::vector< double > &s, std::vector< double > &totmob, std::vector< double > &omega)
 Computes total mobility and omega for a set of saturation values. More...
 
void Opm::computePhaseMobilities (const Opm::IncompPropertiesInterface &props, const std::vector< int > &cells, const std::vector< double > &s, std::vector< double > &pmobc)
 Computes phase mobilities for a set of saturation values. More...
 
void Opm::computeFractionalFlow (const Opm::IncompPropertiesInterface &props, const std::vector< int > &cells, const std::vector< double > &saturations, std::vector< double > &fractional_flows)
 
void Opm::computeTransportSource (const UnstructuredGrid &grid, const std::vector< double > &src, const std::vector< double > &faceflux, const double inflow_frac, const Wells *wells, const std::vector< double > &well_perfrates, std::vector< double > &transport_src)
 
void Opm::estimateCellVelocity (const UnstructuredGrid &grid, const std::vector< double > &face_flux, std::vector< double > &cell_velocity)
 Estimates a scalar cell velocity from face fluxes. More...
 
template<class CC , class FC , class FC1 , class CV >
void Opm::estimateCellVelocity (int number_of_cells, int number_of_faces, FC begin_face_centroids, FC1 face_cells, CC begin_cell_centroids, CV begin_cell_volumes, int dimension, const std::vector< double > &face_flux, std::vector< double > &cell_velocity)
 Estimates a scalar cell velocity from face fluxes. More...
 
void Opm::toWaterSat (const std::vector< double > &sboth, std::vector< double > &sw)
 
void Opm::toBothSat (const std::vector< double > &sw, std::vector< double > &sboth)
 
void Opm::wellsToSrc (const Wells &wells, const int num_cells, std::vector< double > &src)
 
void Opm::computeWDP (const Wells &wells, const UnstructuredGrid &grid, const std::vector< double > &saturations, const double *densities, const double gravity, const bool per_grid_cell, std::vector< double > &wdp)
 
template<class T >
void Opm::computeWDP (const Wells &wells, int number_of_cells, T begin_cell_centroids, const std::vector< double > &saturations, const double *densities, const double gravity, const bool per_grid_cell, std::vector< double > &wdp)
 
void Opm::computeFlowRatePerWell (const Wells &wells, const std::vector< double > &flow_rates_per_cell, std::vector< double > &flow_rates_per_well)
 
void Opm::computePhaseFlowRatesPerWell (const Wells &wells, const std::vector< double > &flow_rates_per_well_cell, const std::vector< double > &fractional_flows, std::vector< double > &phase_flow_per_well)