Module defining derived fluid quantities needed to discretise compressible and miscible pressure (flow) problems. More...
#include <stddef.h>
Go to the source code of this file.
Classes | |
struct | compr_quantities_gen |
Aggregate structure that represents an atomic view of the current fluid state. More... | |
Functions | |
struct compr_quantities_gen * | compr_quantities_gen_allocate (size_t nc, size_t nf, int np) |
Create management structure capable of storing derived fluid quantities pertaining to a reservoir model of a particular size. More... | |
void | compr_quantities_gen_deallocate (struct compr_quantities_gen *cq) |
Release resources acquired in a previous call to constructor function compr_quantities_gen_allocate(). More... | |
Module defining derived fluid quantities needed to discretise compressible and miscible pressure (flow) problems.
struct compr_quantities_gen* compr_quantities_gen_allocate | ( | size_t | nc, |
size_t | nf, | ||
int | np | ||
) |
Create management structure capable of storing derived fluid quantities pertaining to a reservoir model of a particular size.
The resources acquired using function compr_quantities_gen_allocate() must be released using the destructor function compr_quantities_gen_deallocate().
[in] | nc | Number of grid cells |
[in] | nf | Number of grid interfaces |
[in] | np | Number of fluid phases (and components) |
NULL
in case of allocation failure. void compr_quantities_gen_deallocate | ( | struct compr_quantities_gen * | cq | ) |
Release resources acquired in a previous call to constructor function compr_quantities_gen_allocate().
Note that compr_quantities_gen_deallocate(NULL)
is supported and benign (i.e., this statement behaves as free(NULL)
).
[in,out] | cq | On input - compressible quantity management structure obtained through a previous call to construction function compr_quantities_gen_allocate(). On output - invalid pointer. |