OpenCAEPoro
v0.5.0
A simulator for multicomponent porous media flow
|
Public Member Functions | |
void | Setup (Reservoir &rs, LinearSystem &ls, const OCPControl &ctrl) |
Setup FIM. More... | |
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) const |
Finish a time step. | |
Protected Member Functions | |
void | AllocateReservoir (Reservoir &rs) |
Allocate memory for reservoir. | |
void | InitFlash (Bulk &bk) const |
Perform Flash with Sj and calculate values needed for FIMn. | |
void | CalFlash (Bulk &bk) |
Perform Flash with Ni and calculate values needed for FIMn. | |
void | PassFlashValue (Bulk &bk, const OCP_USI &n) const |
Pass value needed for FIMn from flash to bulk. | |
void | AssembleMatBulksNew (LinearSystem &ls, const Reservoir &rs, const OCP_DBL &dt) const |
Assemble linear system for bulks. | |
void | AssembleMatWellsNew (LinearSystem &ls, const Reservoir &rs, const OCP_DBL &dt) const |
Assemble linear system for wells. | |
void | AssembleMatInjWellsNew (LinearSystem &ls, const Bulk &bk, const Well &wl, const OCP_DBL &dt) const |
Assemble linear system for injection wells. | |
void | AssembleMatProdWellsNew (LinearSystem &ls, const Bulk &bk, const Well &wl, const OCP_DBL &dt) const |
Assemble linear system for production wells. | |
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 FIMn. | |
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. | |
Protected Member Functions inherited from IsothermalMethod | |
void | InitRock (Bulk &bk) const |
void | CalRock (Bulk &bk) const |
Definition at line 179 of file OCPFluidMethod.hpp.
void IsoT_FIMn::Setup | ( | Reservoir & | rs, |
LinearSystem & | ls, | ||
const OCPControl & | ctrl | ||
) |
Setup FIM.
Setup FIMn.
Definition at line 2967 of file OCPFluidMethod.cpp.
References IsoT_FIM::AllocateLinearSystem(), and AllocateReservoir().