OpenCAEPoro
0.2.0 Sep/22/2022
A simulator for multicomponent porous media flow
|
IsothermalSolver class for fluid solution method. More...
#include <IsothermalSolver.hpp>
Public Member Functions | |
void | SetupMethod (Reservoir &rs, const OCPControl &ctrl) |
Setup the fluid solver. More... | |
void | InitReservoir (Reservoir &rs) const |
Initialize the Reservoir and prepare variables for some method. More... | |
void | Prepare (Reservoir &rs, OCP_DBL &dt) |
Prepare for assembling Mat. More... | |
void | AssembleMat (const Reservoir &rs, const OCP_DBL &dt) |
Assemble Mat. More... | |
void | SolveLinearSystem (Reservoir &rs, OCPControl &ctrl) |
Solve the linear system in single problem. More... | |
bool | UpdateProperty (Reservoir &rs, OCPControl &ctrl) |
Update properties of fluid. More... | |
bool | FinishNR (Reservoir &rs, OCPControl &ctrl) |
Finish the Newton-Raphson iteration. More... | |
void | FinishStep (Reservoir &rs, OCPControl &ctrl) |
Finish the current time step. More... | |
IsothermalSolver class for fluid solution method.
Definition at line 19 of file IsothermalSolver.hpp.
Assemble Mat.
Assemble linear systems for IMPEC and FIM.
Definition at line 96 of file IsothermalSolver.cpp.
References AIMc, AIMs, AIMt, OCP_AIMs::AssembleMat(), OCP_FIM::AssembleMat(), OCP_FIMn::AssembleMat(), OCP_AIMc::AssembleMat(), Reservoir::AssembleMatIMPEC(), FIM, FIMn, IMPEC, and OCP_ABORT.
bool IsothermalSolver::FinishNR | ( | Reservoir & | rs, |
OCPControl & | ctrl | ||
) |
Finish the Newton-Raphson iteration.
Finish up Newton-Raphson iteration for IMPEC and FIM.
Definition at line 170 of file IsothermalSolver.cpp.
References AIMc, AIMs, AIMt, FIM, FIMn, OCP_IMPEC::FinishNR(), OCP_FIM::FinishNR(), OCP_AIMc::FinishNR(), OCP_AIMs::FinishNR(), IMPEC, and OCP_ABORT.
void IsothermalSolver::FinishStep | ( | Reservoir & | rs, |
OCPControl & | ctrl | ||
) |
Finish the current time step.
Finish up time step for IMPEC and FIM.
Definition at line 191 of file IsothermalSolver.cpp.
References AIMc, AIMs, AIMt, FIM, FIMn, OCP_AIMs::FinishStep(), OCP_FIM::FinishStep(), IMPEC, and OCP_ABORT.
void IsothermalSolver::InitReservoir | ( | Reservoir & | rs | ) | const |
Initialize the Reservoir and prepare variables for some method.
Setup solution methods, including IMPEC and FIM.
Definition at line 44 of file IsothermalSolver.cpp.
References AIMc, AIMs, AIMt, FIM, FIMn, IMPEC, OCP_IMPEC::InitReservoir(), OCP_FIM::InitReservoir(), OCP_FIMn::InitReservoir(), OCP_AIMc::InitReservoir(), and OCP_ABORT.
Prepare for assembling Mat.
Prepare solution methods, including IMPEC and FIM.
Definition at line 68 of file IsothermalSolver.cpp.
References AIMc, AIMs, AIMt, FIM, FIMn, IMPEC, OCP_ABORT, OCP_IMPEC::Prepare(), OCP_FIM::Prepare(), OCP_AIMc::Prepare(), OCP_AIMs::Prepare(), and OCP_AIMt::Prepare().
void IsothermalSolver::SetupMethod | ( | Reservoir & | rs, |
const OCPControl & | ctrl | ||
) |
Setup the fluid solver.
Setup solution methods, including IMPEC and FIM.
Definition at line 15 of file IsothermalSolver.cpp.
References AIMc, AIMs, AIMt, FIM, FIMn, OCPControl::GetMethod(), IMPEC, OCP_IMPEC::Setup(), OCP_FIM::Setup(), OCP_AIMc::Setup(), OCP_AIMs::Setup(), and OCP_AIMt::Setup().
void IsothermalSolver::SolveLinearSystem | ( | Reservoir & | rs, |
OCPControl & | ctrl | ||
) |
Solve the linear system in single problem.
Solve linear systems for IMPEC and FIM.
Definition at line 122 of file IsothermalSolver.cpp.
References AIMc, AIMs, AIMt, FIM, FIMn, IMPEC, OCP_ABORT, OCP_IMPEC::SolveLinearSystem(), OCP_AIMc::SolveLinearSystem(), OCP_AIMs::SolveLinearSystem(), OCP_FIM::SolveLinearSystem(), and OCP_FIMn::SolveLinearSystem().
bool IsothermalSolver::UpdateProperty | ( | Reservoir & | rs, |
OCPControl & | ctrl | ||
) |
Update properties of fluid.
Update physical properties for IMPEC and FIM.
Definition at line 148 of file IsothermalSolver.cpp.
References AIMc, AIMs, AIMt, FIM, FIMn, IMPEC, OCP_ABORT, OCP_IMPEC::UpdateProperty(), OCP_FIM::UpdateProperty(), OCP_FIMn::UpdateProperty(), OCP_AIMc::UpdateProperty(), OCP_AIMs::UpdateProperty(), and OCP_AIMt::UpdateProperty().