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

IsoT_IMPEC is IMPEC (implicit pressure explict saturation) method. More...

#include <OCPFluidMethod.hpp>

Inheritance diagram for IsoT_IMPEC:
IsothermalMethod IsoT_AIMc

Public Member Functions

void Setup (Reservoir &rs, LinearSystem &ls, const OCPControl &ctrl)
 Setup IMPEC.
 
void InitReservoir (Reservoir &rs) const
 Init. More...
 
void Prepare (Reservoir &rs, OCPControl &ctrl)
 Prepare for Assembling matrix.
 
void AssembleMat (LinearSystem &ls, const Reservoir &rs, const OCP_DBL &dt) const
 Assemble Matrix.
 
void SolveLinearSystem (LinearSystem &ls, Reservoir &rs, OCPControl &ctrl)
 Solve the linear system.
 
OCP_BOOL UpdateProperty (Reservoir &rs, OCPControl &ctrl)
 Update properties of fluids.
 
OCP_BOOL FinishNR (const Reservoir &rs)
 Determine if NR iteration finishes.
 
void FinishStep (Reservoir &rs, OCPControl &ctrl)
 
- Public Member Functions inherited from IsothermalMethod
void InitRock (Bulk &bk) const
 
void CalRock (Bulk &bk) const
 

Protected Member Functions

void InitFlash (Bulk &bk) const
 Perform Flash with Sj and calculate values needed for FIM.
 
void CalKrPc (Bulk &bk) const
 Calculate relative permeability and capillary pressure needed for FIM.
 
void PassFlashValue (Bulk &bk, const OCP_USI &n) const
 Pass value needed for FIM from flash to bulk.
 

Detailed Description

IsoT_IMPEC is IMPEC (implicit pressure explict saturation) method.

Definition at line 30 of file OCPFluidMethod.hpp.

Member Function Documentation

◆ InitReservoir()

void IsoT_IMPEC::InitReservoir ( Reservoir rs) const

Init.

Initialize reservoir.

Definition at line 47 of file OCPFluidMethod.cpp.

48 {
49  rs.bulk.InitPTSw(50);
50 
51  InitRock(rs.bulk);
52  CalRock(rs.bulk);
53 
54  InitFlash(rs.bulk);
55  CalKrPc(rs.bulk);
56 
57  CalBulkFlux(rs);
58 
59  rs.allWells.InitBHP(rs.bulk);
60 
61  UpdateLastTimeStep(rs);
62 }
void InitBHP(const Bulk &myBulk)
Set the initial well pressure.
Definition: AllWells.cpp:192
void InitPTSw(const USI &tabrow)
Calculate initial equilibrium – hydrostatic equilibration.
Definition: Bulk.cpp:443
void InitFlash(Bulk &bk) const
Perform Flash with Sj and calculate values needed for FIM.
void CalKrPc(Bulk &bk) const
Calculate relative permeability and capillary pressure needed for FIM.
Bulk bulk
Active grid info.
Definition: Reservoir.hpp:74
AllWells allWells
Wells class info.
Definition: Reservoir.hpp:75

References Reservoir::allWells, Reservoir::bulk, CalKrPc(), AllWells::InitBHP(), InitFlash(), and Bulk::InitPTSw().


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