ifs_tpfa.h File Reference
#include <opm/core/grid.h>
Include dependency graph for ifs_tpfa.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ifs_tpfa_data
 
struct  ifs_tpfa_solution
 
struct  ifs_tpfa_forces
 

Functions

struct ifs_tpfa_dataifs_tpfa_construct (struct UnstructuredGrid *G, struct Wells *W)
 
int ifs_tpfa_assemble (struct UnstructuredGrid *G, const struct ifs_tpfa_forces *F, const double *trans, const double *gpress, struct ifs_tpfa_data *h)
 
int ifs_tpfa_assemble_comprock (struct UnstructuredGrid *G, const struct ifs_tpfa_forces *F, const double *trans, const double *gpress, const double *porevol, const double *rock_comp, const double dt, const double *pressure, struct ifs_tpfa_data *h)
 
int ifs_tpfa_assemble_comprock_increment (struct UnstructuredGrid *G, const struct ifs_tpfa_forces *F, const double *trans, const double *gpress, const double *porevol, const double *rock_comp, const double dt, const double *prev_pressure, const double *initial_porevolume, struct ifs_tpfa_data *h)
 
void ifs_tpfa_press_flux (struct UnstructuredGrid *G, const struct ifs_tpfa_forces *F, const double *trans, struct ifs_tpfa_data *h, struct ifs_tpfa_solution *soln)
 
void ifs_tpfa_destroy (struct ifs_tpfa_data *h)
 

Detailed Description

Interfaces and data structures to assemble a system of simultaneous linear equations discretising a flow problem that is either incompressible or features rock compressibility using the two-point flux approximation method.

Includes support for reconstructing the Darcy flux field as well as well connection fluxes.

Function Documentation

int ifs_tpfa_assemble ( struct UnstructuredGrid G,
const struct ifs_tpfa_forces F,
const double *  trans,
const double *  gpress,
struct ifs_tpfa_data h 
)
Parameters
[in]G
[in]F
[in]trans
[in]gpress
[in,out]h
Returns
int ifs_tpfa_assemble_comprock ( struct UnstructuredGrid G,
const struct ifs_tpfa_forces F,
const double *  trans,
const double *  gpress,
const double *  porevol,
const double *  rock_comp,
const double  dt,
const double *  pressure,
struct ifs_tpfa_data h 
)
int ifs_tpfa_assemble_comprock_increment ( struct UnstructuredGrid G,
const struct ifs_tpfa_forces F,
const double *  trans,
const double *  gpress,
const double *  porevol,
const double *  rock_comp,
const double  dt,
const double *  prev_pressure,
const double *  initial_porevolume,
struct ifs_tpfa_data h 
)
struct ifs_tpfa_data* ifs_tpfa_construct ( struct UnstructuredGrid G,
struct Wells W 
)

Allocate TPFA management structure capable of assembling a system of simultaneous linear equations corresponding to a particular grid and well configuration.

Parameters
[in]GGrid.
[in]WWell topology.
Returns
Fully formed TPFA management structure if successful, NULL in case of allocation failure.
void ifs_tpfa_destroy ( struct ifs_tpfa_data h)
void ifs_tpfa_press_flux ( struct UnstructuredGrid G,
const struct ifs_tpfa_forces F,
const double *  trans,
struct ifs_tpfa_data h,
struct ifs_tpfa_solution soln 
)