mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-11 23:15:35 -06:00
Add utility functions for retrieving phase transmissibilities.
This commit is contained in:
parent
08e2e9c1a3
commit
a8f831be6c
@ -655,6 +655,32 @@ cfs_tpfa_fpress(grid_t *G,
|
||||
}
|
||||
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
void
|
||||
cfs_tpfa_retrieve_masstrans(grid_t *G,
|
||||
int np,
|
||||
struct cfs_tpfa_data *h,
|
||||
double *masstrans_f)
|
||||
/* ---------------------------------------------------------------------- */
|
||||
{
|
||||
memcpy(masstrans_f, h->pimpl->masstrans_f,
|
||||
np * G->number_of_faces * sizeof *masstrans_f);
|
||||
}
|
||||
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
void
|
||||
cfs_tpfa_retrieve_gravtrans(grid_t *G,
|
||||
int np,
|
||||
struct cfs_tpfa_data *h,
|
||||
double *gravtrans_f)
|
||||
/* ---------------------------------------------------------------------- */
|
||||
{
|
||||
memcpy(gravtrans_f, h->pimpl->gravtrans_f,
|
||||
np * G->number_of_faces * sizeof *gravtrans_f);
|
||||
}
|
||||
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
void
|
||||
cfs_tpfa_destroy(struct cfs_tpfa_data *h)
|
||||
|
@ -74,6 +74,18 @@ cfs_tpfa_fpress(grid_t *G,
|
||||
const double *fflux,
|
||||
double *fpress);
|
||||
|
||||
void
|
||||
cfs_tpfa_retrieve_masstrans(grid_t *G,
|
||||
int np,
|
||||
struct cfs_tpfa_data *h,
|
||||
double *masstrans_f);
|
||||
|
||||
void
|
||||
cfs_tpfa_retrieve_gravtrans(grid_t *G,
|
||||
int np,
|
||||
struct cfs_tpfa_data *h,
|
||||
double *gravtrans_f);
|
||||
|
||||
void
|
||||
cfs_tpfa_destroy(struct cfs_tpfa_data *h);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user