ifs_tpfa.h File Reference

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. More...

#include <opm/core/grid.h>

Go to the source code of this file.

Classes

struct  ifs_tpfa_data
 Main data structure presenting a view of an assembled system of simultaneous linear equations which may be solved using external software. More...
 
struct  ifs_tpfa_solution
 Solution variables. More...
 
struct  ifs_tpfa_forces
 Driving forces pertaining to a particular model setup. More...
 

Functions

struct ifs_tpfa_dataifs_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. More...
 
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

◆ ifs_tpfa_assemble()

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

◆ ifs_tpfa_construct()

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.