20 #ifndef OPM_FSH_HEADER_INCLUDED 21 #define OPM_FSH_HEADER_INCLUDED 54 #include <opm/core/grid.h> 56 #include <opm/core/pressure/flow_bc.h> 157 const double *gpress,
203 const double *gpress,
233 const double *Binv,
const double *gpress,
235 double *cpress,
double *fflux,
236 double *wpress,
double *wflux);
Definition: fsh_common_impl.h:25
Basic compressed-sparse row (CSR) matrix data structure.
Definition: sparse_sys.h:38
void fsh_destroy(struct fsh_data *h)
Dispose of all memory associated to FSH object.
Definition: fsh_common_impl.c:98
void ifsh_assemble(struct FlowBoundaryConditions *bc, const double *src, const double *Binv, const double *gpress, well_control_t *wctrl, const double *WI, const double *wdp, struct fsh_data *h)
Form Schur-complement system of simultaneous linear equations arising in compressible flow using a hy...
Definition: ifsh.c:353
size_t sum_ngconn2
Sum of squared number of connections in all grid cells, .
Definition: fsh.h:89
void cfsh_assemble(struct FlowBoundaryConditions *bc, const double *src, const double *Binv, const double *Biv, const double *P, const double *gpress, well_control_t *wctrl, const double *WI, const double *BivW, const double *wdp, struct fsh_data *h)
Form Schur-complement system of simultaneous linear equations arising in compressible flow using a hy...
Definition: cfsh.c:181
Main data structure of hybridized pressure solvers based on Schur complement reductions.
Definition: fsh.h:72
Basic representation of well controls.
Definition: legacy_well.h:61
struct CSRMatrix * A
Coefficient matrix.
Definition: fsh.h:92
double * b
System RHS.
Definition: fsh.h:93
struct fsh_data * cfsh_construct(struct UnstructuredGrid *G, well_t *W)
Construct compressible hybrid flow-solver data object for a given grid and well pattern.
Definition: cfsh.c:86
void fsh_press_flux(struct UnstructuredGrid *G, const double *Binv, const double *gpress, struct fsh_data *h, double *cpress, double *fflux, double *wpress, double *wflux)
Compute cell pressures (cpress) and interface fluxes (fflux) from current solution of system of linea...
Definition: fsh.c:42
struct fsh_data * ifsh_construct(struct UnstructuredGrid *G, well_t *W)
Construct incompressible hybrid flow-solver data object for a given grid and well pattern...
Definition: ifsh.c:257
Deprecated (and obsolescent) well definition.
struct fsh_impl * pimpl
Private implementational details.
Definition: fsh.h:97
Basic representation of well topology.
Definition: legacy_well.h:52
int max_ngconn
Maximum number of connections in any grid cell, in which denotes the number connections (i...
Definition: fsh.h:81
double * x
Solution.
Definition: fsh.h:94