compr_quantities_gen Struct Reference

Aggregate structure that represents an atomic view of the current fluid state. More...

#include <compr_quant_general.h>

Public Attributes

int nphases
 Number of fluid phases. More...
 
double * Ac
 Pressure and mass-dependent fluid matrix that converts phase volumes at reservoir conditions into component volumes at surface conditions. More...
 
double * dAc
 Derivative of $A$ with respect to pressure,

\[ \frac{\partial A}{\partial p} = \frac{\partial R}{\partial p}B^{-1} + R\frac{\partial B^{-1}}{\partial p} = (\frac{\partial R}{\partial p} - A\frac{\partial B}{\partial p})B^{-1} \]

sampled in each grid cell. More...

 
double * Af
 Fluid matrix sampled at each interface. More...
 
double * phasemobf
 Phase mobility per interface. More...
 
double * voldiscr
 Deceptively named "volume-discrepancy" term. More...
 

Detailed Description

Aggregate structure that represents an atomic view of the current fluid state.

These quantities are used directly in the cfs_tpfa_residual module to discretise a particular, linearised flow problem.

Member Data Documentation

◆ Ac

double* compr_quantities_gen::Ac

Pressure and mass-dependent fluid matrix that converts phase volumes at reservoir conditions into component volumes at surface conditions.

Obeys the defining formula

\[ A = RB^{-1} \]

in which $R$ denotes the miscibility ratios (i.e., the dissolved gas-oil ratio, $R_s$ and the evaporated oil-gas ratio, $R_v$) collected as a matrix and $B$ is the diagonal matrix of formation-volume expansion factors. The function is sampled in each grid cell. Array of size nphases * nphases * nc.

◆ Af

double* compr_quantities_gen::Af

Fluid matrix sampled at each interface.

Possibly as a result of an upwind calculation. Array of size nphases * nphases * nf.

◆ dAc

double* compr_quantities_gen::dAc

Derivative of $A$ with respect to pressure,

\[ \frac{\partial A}{\partial p} = \frac{\partial R}{\partial p}B^{-1} + R\frac{\partial B^{-1}}{\partial p} = (\frac{\partial R}{\partial p} - A\frac{\partial B}{\partial p})B^{-1} \]

sampled in each grid cell.

Array of size nphases * nphases * nc.

◆ nphases

int compr_quantities_gen::nphases

Number of fluid phases.

The pressure solvers also assume that the number of fluid components (at surface conditions) equals the number of fluid phases.

◆ phasemobf

double* compr_quantities_gen::phasemobf

Phase mobility per interface.

Possibly defined through an upwind calculation. Array of size nphases * nf.

◆ voldiscr

double* compr_quantities_gen::voldiscr

Deceptively named "volume-discrepancy" term.

Array of size nc. Unused by the cfs_tpfa_residual module.


The documentation for this struct was generated from the following file: