compr_quantities_gen Struct Reference

#include <compr_quant_general.h>

Public Attributes

int nphases
 
double * Ac
 
double * dAc
 
double * Af
 
double * phasemobf
 
double * voldiscr
 

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

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.

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.

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.

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.

double* compr_quantities_gen::phasemobf

Phase mobility per interface. Possibly defined through an upwind calculation. Array of size nphases * nf.

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: