OpenCAEPoro
0.2.0 Sep/22/2022
A simulator for multicomponent porous media flow
|
#include <ParamControl.hpp>
Public Member Functions | |
void | Init (string &indir) |
Assign default values to parameters. More... | |
void | InitTime () |
Init the critical time. | |
void | InitMethod () |
Determine the default discrete method. More... | |
void | InitTuning () |
Determine the default Tuning. More... | |
void | InputMETHOD (ifstream &ifs) |
Input the Keyword: METHOD. More... | |
void | InputTUNING (ifstream &ifs) |
Input the Keyword: TUNING. More... | |
void | DisplayTuning () const |
Display the Tuning. More... | |
Public Attributes | |
string | dir |
Current work directory. | |
string | method |
Decide which method to use to discrete the fluid equations. | |
string | linearSolve |
Fasp file. | |
vector< TuningPair > | tuning_T |
Tuning set. | |
TUNING | tuning |
vector< OCP_DBL > | criticalTime |
ParamControl contains the param referred to control of simulation, for example, which discrete method will be used, which linear solve file will be used, how will the timestep change.
Definition at line 45 of file ParamControl.hpp.
void ParamControl::DisplayTuning | ( | ) | const |
Display the Tuning.
Print TUNING parameters.
Definition at line 152 of file ParamControl.cpp.
References tuning_T.
void ParamControl::Init | ( | string & | indir | ) |
Assign default values to parameters.
Initialize control parameters with default values.
Definition at line 15 of file ParamControl.cpp.
References dir, InitMethod(), InitTime(), and InitTuning().
void ParamControl::InitMethod | ( | ) |
Determine the default discrete method.
Initialize with default solution method and linear solver.
Definition at line 24 of file ParamControl.cpp.
References linearSolve, and method.
void ParamControl::InitTuning | ( | ) |
Determine the default Tuning.
Initialize TUNING parameters.
Definition at line 31 of file ParamControl.cpp.
void ParamControl::InputMETHOD | ( | ifstream & | ifs | ) |
Input the Keyword: METHOD.
Initialize solution method.
Definition at line 100 of file ParamControl.cpp.
References linearSolve, method, and ReadLine().
void ParamControl::InputTUNING | ( | ifstream & | ifs | ) |
Input the Keyword: TUNING.
Read TUNING parameters.
Definition at line 123 of file ParamControl.cpp.
References criticalTime, DealDefault(), DisplayTuning(), ReadLine(), tuning, and tuning_T.
vector<OCP_DBL> ParamControl::criticalTime |
Critical time records the important time points, at those times, the process of simulation should be carefully treated, for example, the boundary conditions will be changed.
Definition at line 56 of file ParamControl.hpp.
TUNING ParamControl::tuning |
Tuning.
Definition at line 52 of file ParamControl.hpp.