OpenCAEPoro  v0.5.0
A simulator for multicomponent porous media flow
Public Member Functions | Protected Member Functions | List of all members
IsoT_AIMc Class Reference
Inheritance diagram for IsoT_AIMc:
IsoT_IMPEC IsoT_FIM IsothermalMethod IsothermalMethod

Public Member Functions

void Setup (Reservoir &rs, LinearSystem &ls, const OCPControl &ctrl)
 Setup AIMc.
 
void InitReservoir (Reservoir &rs) const
 Init.
 
void Prepare (Reservoir &rs, const OCP_DBL &dt)
 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 (Reservoir &rs, OCPControl &ctrl)
 Finish a Newton-Raphson iteration.
 
void FinishStep (Reservoir &rs, OCPControl &ctrl) const
 Finish a time step.
 

Protected Member Functions

void AllocateReservoir (Reservoir &rs)
 Allocate memory for reservoir.
 
void SetFIMBulk (Reservoir &rs)
 Determine which bulk are treated Implicit.
 
void CalFlashEp (Bulk &bk)
 Perform flash calculation with Ni for Explicit bulk – Update partial properties.
 
void CalFlashEa (Bulk &bk)
 Perform flash calculation with Ni for Explicit bulk – Update all properties.
 
void CalFlashI (Bulk &bk)
 Perform flash calculation with Ni for Implicit bulk.
 
void PassFlashValueEp (Bulk &bk, const OCP_USI &n)
 Pass flash value needed for Explicit bulk – Update partial properties.
 
void CalKrPcE (Bulk &bk)
 Calculate relative permeability and capillary pressure for Explicit bulk.
 
void CalKrPcI (Bulk &bk)
 Calculate relative permeability and capillary pressure for Implicit bulk.
 
void AssembleMatBulks (LinearSystem &ls, const Reservoir &rs, const OCP_DBL &dt) const
 Assemble linear system for bulks.
 
void GetSolution (Reservoir &rs, const vector< OCP_DBL > &u, const OCPControl &ctrl) const
 Update P, Ni, BHP after linear system is solved.
 
void ResetToLastTimeStep (Reservoir &rs, OCPControl &ctrl)
 Reset variables to last time step.
 
void UpdateLastTimeStep (Reservoir &rs) const
 Update values of last step for AIMc.
 
- Protected Member Functions inherited from IsoT_IMPEC
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.
 
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)
 
- Protected Member Functions inherited from IsothermalMethod
void InitRock (Bulk &bk) const
 
void CalRock (Bulk &bk) const
 
- Protected Member Functions inherited from IsoT_FIM
void AllocateReservoir (Reservoir &rs)
 Allocate memory for reservoir.
 
void AllocateLinearSystem (LinearSystem &ls, const Reservoir &rs, const OCPControl &ctrl)
 Allocate memory for linear system.
 
void PassFlashValue (Bulk &bk, const OCP_USI &n) const
 Pass value needed for FIM from flash to bulk.
 
void CalKrPc (Bulk &bk) const
 Calculate relative permeability and capillary pressure needed for FIM.
 
void CalRes (Reservoir &rs, const OCP_DBL &dt, const OCP_BOOL &resetRes0) const
 Calculate residual.
 
void AssembleMatWells (LinearSystem &ls, const Reservoir &rs, const OCP_DBL &dt) const
 Assemble linear system for wells.
 
void AssembleMatWellsNew (LinearSystem &ls, const Reservoir &rs, const OCP_DBL &dt) const
 
void ResetToLastTimeStep (Reservoir &rs, OCPControl &ctrl)
 Reset variables to last time step.
 
void UpdateLastTimeStep (Reservoir &rs) const
 Update values of last step for FIM.
 
void Setup (Reservoir &rs, LinearSystem &ls, const OCPControl &ctrl)
 Setup FIM.
 
void InitReservoir (Reservoir &rs) const
 Init.
 
void Prepare (Reservoir &rs, const OCP_DBL &dt)
 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) const
 Solve the linear system.
 
OCP_BOOL UpdateProperty (Reservoir &rs, OCPControl &ctrl)
 Update properties of fluids.
 
OCP_BOOL FinishNR (Reservoir &rs, OCPControl &ctrl)
 Finish a Newton-Raphson iteration.
 
void FinishStep (Reservoir &rs, OCPControl &ctrl)
 Finish a time step.
 

Detailed Description

Definition at line 233 of file OCPFluidMethod.hpp.


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