20 #ifndef OPM_CFS_TPFA_HEADER_INCLUDED 21 #define OPM_CFS_TPFA_HEADER_INCLUDED 23 #include <opm/core/grid.h> 189 const double *gravcap_f,
190 const double *cpress,
191 const double *wpress,
192 const double *porevol,
239 struct UnstructuredGrid *G,
245 const double *gravcap_f,
246 const double *cpress,
247 const double *wpress,
248 const double *porevol,
249 const double *porevol0,
250 const double *rock_comp,
289 const double *trans ,
290 const double *pmobc ,
291 const double *pmobf ,
292 const double *gravcap_f,
293 const double *cpress ,
294 const double *wpress ,
326 const double *htrans,
328 const double *gravcap_f,
330 const double *cpress,
336 cfs_tpfa_retrieve_masstrans(
struct UnstructuredGrid *G,
339 double *masstrans_f);
342 cfs_tpfa_retrieve_gravtrans(
struct UnstructuredGrid *G,
345 double *gravtrans_f);
348 cfs_tpfa_impes_maxtime(
struct UnstructuredGrid *G,
351 const double *porevol,
353 const double *dpmobf,
354 const double *surf_dens,
355 const double *gravity);
358 cfs_tpfa_expl_mass_transport(
struct UnstructuredGrid *G,
363 const double *porevol,
Basic compressed-sparse row (CSR) matrix data structure.
Definition: sparse_sys.h:38
int cfs_tpfa_res_comprock_assemble(struct UnstructuredGrid *G, double dt, struct cfs_tpfa_res_forces *forces, const double *zc, struct compr_quantities_gen *cq, const double *trans, const double *gravcap_f, const double *cpress, const double *wpress, const double *porevol, const double *porevol0, const double *rock_comp, struct cfs_tpfa_res_data *h)
Assemble system of linear equations by linearising the residual around the current pressure point...
Definition: cfs_tpfa_residual.c:1283
Result structure that presents the fully assembled system of linear equations, linearised around the ...
Definition: cfs_tpfa_residual.h:98
Definition: cfs_tpfa_residual.c:41
struct CompletionData * data
Completion data describing the fluid state at the current time level.
Definition: cfs_tpfa_residual.h:81
struct cfs_tpfa_res_impl * pimpl
Internal management structure.
Definition: cfs_tpfa_residual.h:102
struct compr_src * src
Explicit source terms.
Definition: cfs_tpfa_residual.h:90
struct cfs_tpfa_res_wells * wells
Wells.
Definition: cfs_tpfa_residual.h:89
Type encapsulating well topology and completion data (e.g., phase mobilities per connection (perforat...
Definition: cfs_tpfa_residual.h:71
Aggregate structure that represents an atomic view of the current fluid state.
Definition: compr_quant_general.h:40
Data structure aggregating static information about all wells in a scenario.
Definition: wells.h:50
Definition: cfs_tpfa.h:35
void cfs_tpfa_res_destroy(struct cfs_tpfa_res_data *h)
Destroy assembler for system of linear equations.
Definition: cfs_tpfa_residual.c:1153
struct cfs_tpfa_res_data * cfs_tpfa_res_construct(struct UnstructuredGrid *G, struct cfs_tpfa_res_wells *wells, int nphases)
Construct assembler for system of linear equations.
Definition: cfs_tpfa_residual.c:1167
Data structure aggregating dynamic information about all wells in a scenario.
Definition: wells.h:136
Main OPM-Core well data structure along with functions to create, populate and destroy it...
struct CSRMatrix * J
Jacobian matrix.
Definition: cfs_tpfa_residual.h:99
Type encapsulating all driving forces affecting the discrete pressure system.
Definition: cfs_tpfa_residual.h:88
void cfs_tpfa_res_fpress(struct UnstructuredGrid *G, int np, const double *htrans, const double *pmobf, const double *gravcap_f, struct cfs_tpfa_res_data *h, const double *cpress, const double *fflux, double *fpress)
Derive interface pressures from (converged) pressure solution.
Definition: cfs_tpfa_residual.c:1373
Basic representation of well topology.
Definition: legacy_well.h:52
struct Wells * W
All wells pertaining to a particular linear system assembly.
Definition: cfs_tpfa_residual.h:76
int cfs_tpfa_res_assemble(struct UnstructuredGrid *G, double dt, struct cfs_tpfa_res_forces *forces, const double *zc, struct compr_quantities_gen *cq, const double *trans, const double *gravcap_f, const double *cpress, const double *wpress, const double *porevol, struct cfs_tpfa_res_data *h)
Assemble system of linear equations by linearising the residual around the current pressure point...
Definition: cfs_tpfa_residual.c:1220
Definition: compr_quant.h:31
double * F
Residual vector (right-hand side)
Definition: cfs_tpfa_residual.h:100
Data structures and support routines needed to represent explicit, compressible source terms...
Collection of explicit, compressible source terms.
Definition: compr_source.h:52
void cfs_tpfa_res_flux(struct UnstructuredGrid *G, struct cfs_tpfa_res_forces *forces, int np, const double *trans, const double *pmobc, const double *pmobf, const double *gravcap_f, const double *cpress, const double *wpress, double *fflux, double *wflux)
Derive interface (total) Darcy fluxes from (converged) pressure solution.
Definition: cfs_tpfa_residual.c:1347
Dynamic discretisation data relating well to flow in reservoir.
Definition: legacy_well.h:71