OpenCAEPoro  v0.5.0
A simulator for multicomponent porous media flow
Public Member Functions | Protected Attributes | Friends | List of all members
Reservoir Class Reference

#include <Reservoir.hpp>

Public Member Functions

void InputParam (ParamRead &param)
 
void SetupIsoT ()
 Setup static information for reservoir with input params for Isothermal model.
 
void SetupT ()
 Setup static information for reservoir with input params for Thermal model.
 
void ApplyControl (const USI &i)
 Apply the control of ith critical time point.
 
void CalIPRT (const OCP_DBL &dt)
 Calculate num of Injection, Production.
 
void CalMaxChange ()
 Calculate Maximum Change of some reference variables for IMPEC.
 
OCP_USI GetBulkNum () const
 Return the num of Bulk.
 
USI GetWellNum () const
 Return the num of Well.
 
USI GetComNum () const
 Return the num of Components.
 
OCP_DBL CalCFL (const OCP_DBL &dt) const
 Calculate the CFL number, including bulks and wells for IMPEC.
 
OCP_DBL GetNRdPmax ()
 Return NRdPmax.
 
OCP_DBL GetNRdSmax (OCP_USI &index)
 Return NRdSmax.
 
OCP_DBL GetNRdNmax ()
 Return NRdNmax.
 
void PrintSolFIM (const string &outfile) const
 
void OutInfoFinal () const
 

Protected Attributes

Grid grid
 Init Grid info.
 
Bulk bulk
 Active grid info.
 
AllWells allWells
 Wells class info.
 
BulkConn conn
 Bulk's connection info.
 
OptionalFeatures optFeatures
 optional features.
 

Friends

class OCPControl
 
class Summary
 
class CriticalInfo
 
class Out4RPT
 
class Out4VTK
 
class IsoT_IMPEC
 
class IsoT_FIM
 
class IsoT_FIMn
 
class IsoT_AIMc
 
class T_FIM
 
class Solver
 

Detailed Description

Reservoir is the core component in our simulator, it contains the all reservoir information, and all operations on it.

Reservoir has four Core components. Grids contains the basic informations of all grids as a database of reservoir. Bulk only stores active grids, which defines the area used for calculation. AllWells contains the well information, it's used to manage operations related to wells. BulkConn contains connections between bulks(active grids).

Definition at line 31 of file Reservoir.hpp.

Member Function Documentation

◆ InputParam()

void Reservoir::InputParam ( ParamRead param)

Input param from internal param data structure, which stores the params from input files.

Definition at line 18 of file Reservoir.cpp.

19 {
21 
22  grid.InputParam(param.paramRs, param.paramOutput);
23  bulk.InputParam(param.paramRs);
25  optFeatures.InputParam(param.paramRs);
26 }
#define OCP_FUNCNAME
Print Function Name.
Definition: UtilError.hpp:73
void InputParam(const ParamWell &paramWell, const ParamOutput &output_param)
Input param from ParamWell.
Definition: AllWells.cpp:18
void InputParam(const ParamReservoir &rs_param)
Input param from internal data structure ParamReservoir.
Definition: Bulk.cpp:99
void InputParam(const ParamReservoir &rs_param, const ParamOutput &output_param)
Input parameters from the internal param structure.
Definition: Grid.cpp:18
ParamOutput paramOutput
Read the output params.
Definition: ParamRead.hpp:45
ParamWell paramWell
Read the well params.
Definition: ParamRead.hpp:43
ParamReservoir paramRs
Read the reservoir params.
Definition: ParamRead.hpp:42
OptionalFeatures optFeatures
optional features.
Definition: Reservoir.hpp:77
Grid grid
Init Grid info.
Definition: Reservoir.hpp:73
Bulk bulk
Active grid info.
Definition: Reservoir.hpp:74
AllWells allWells
Wells class info.
Definition: Reservoir.hpp:75

References allWells, bulk, grid, Bulk::InputParam(), Grid::InputParam(), AllWells::InputParam(), OCP_FUNCNAME, optFeatures, ParamRead::paramOutput, ParamRead::paramRs, and ParamRead::paramWell.


The documentation for this class was generated from the following files: