12 #ifndef __OCP_HEADER__
13 #define __OCP_HEADER__
23 #define OCPVersion "0.2.1"
32 cout <<
"=========================================" << endl
33 <<
"OpenCAEPoro Version-" <<
OCPVersion << endl
34 <<
"=========================================" << endl
41 cout <<
"Usage: " << endl
42 <<
" " << cmdname <<
" <InputFileName> [<options>]" << endl
45 cout <<
"The simplest usage is as follows, where parameters are read from file:"
48 <<
" examples/spe1a/spe1a.data %% Solve SPE1a in default setting" << endl
51 cout <<
"You can also pass cmd options after the input file:" << endl
52 <<
" method: solution method to use " << endl
53 <<
" dtInit: initial time stepsize " << endl
54 <<
" dtMax: maximum time stepsize " << endl
55 <<
" dtMin: minimum time stepsize " << endl
56 <<
" pl: print level on screen " << endl
59 cout <<
"Attention: " << endl
60 <<
" - These cmd options will override those in the input file;" << endl
61 <<
" - Only if `method' is set, other options will take effect;" << endl
62 <<
" - If (dtInit,dtMax,dtMin) are not set, default values will be used."
66 <<
"For example: solve SPE1a using FIM" << endl
68 <<
" examples/spe1a/spe1a.data method=FIM dtInit=1 dtMax=10 dtMin=0.1 pl=1"
unsigned int USI
Generic unsigned integer.
OCPControl class declaration.
OCPOutput class declaration.
#define OCPVersion
Software version tag used for git.
ParamRead class declaration.
Reservoir class declaration.
Solver class declaration.
Elapsed wall-time and CPU-cycles declaration.
All control parameters except for well controlers.
The OCPOutput class manages different kinds of ways to output information.
Top-level data structure for the OpenCAEPoro simulator.
void InputParam(ParamRead ¶m)
Read input parameters to an internal structure.
void SetupSimulator(ParamRead ¶m, const USI &argc, const char *options[])
Setup reservoir based on an internal structure.
void PrintUsage(string cmdname) const
Provide at least InputFileName for the input data.
void RunSimulation()
Run dynamic simulation.
void OutputResults() const
Output necessary information for post-processing.
void InitReservoir()
Initialize or get initial status of reservoir.
void PrintVersion() const
Output OpenCAEPoro version information.
Pre-processing unit for OpenCAEPoro for reading params from input files.
Solver class for overall solution methods.