OpenCAEPoro  0.2.0 Sep/22/2022
A simulator for multicomponent porous media flow
Public Member Functions | Friends | List of all members
OCPControl Class Reference

All control parameters except for well controlers. More...

#include <OCPControl.hpp>

Public Member Functions

void InputParam (const ParamControl &CtrlParam)
 Input parameters for control.
 
void ApplyControl (const USI &i, const Reservoir &rs)
 Apply control for time step i.
 
void InitTime (const USI &i)
 Initialize time step i.
 
void SetupFastControl (const USI &argc, const char *optset[])
 Setup fast Control.
 
USI GetMethod () const
 Return type of the solution method.
 
USI GetNumTSteps () const
 Return number of TSTEPs.
 
OCP_DBL GetCurTime () const
 Return the current time.
 
OCP_DBLGetCurDt ()
 Return current dt.
 
OCP_DBL GetLastDt () const
 Return last dt.
 
USI GetLSiter () const
 Return the number of linear iterations in one time step.
 
USI GetLSiterT () const
 Return the total number of linear iterations.
 
USI GetNRiter () const
 Return the number of Newton iterations in one time step.
 
USI GetNRiterT () const
 Return the total nubmer of Newton iterations.
 
void UpdateIters ()
 Update the number of iterations.
 
void UpdateIterLS (const USI &num)
 Update the number of linear iterations.
 
void UpdateIterNR ()
 Update the number of Newton iterations.
 
void ResetIterNRLS ()
 Reset the number of iterations.
 
void UpdateTimeLS (const OCP_DBL &t)
 Update time used for linear solver.
 
void RecordTotalTime (const OCP_DBL &t)
 Record the total time of simulation.
 
void CalNextTstepIMPEC (const Reservoir &reservoir)
 Calculate the next time step according to max change of some variables.
 
void CalNextTstepFIM (const Reservoir &reservoir)
 
bool IsCriticalTime (const USI &d)
 Determine whether the critical time point has been reached.
 
string GetWorkDir () const
 Return work dir name.
 
string GetLsFile () const
 Return linear solver file name.
 
void SetWellChange (const bool &flag)
 

Friends

class OpenCAEPoro
 
class OCPOutput
 
class DetailInfo
 
class Reservoir
 
class OCP_FIM
 
class OCP_FIMn
 
class OCP_IMPEC
 
class OCP_AIMc
 
class OCP_AIMs
 
class OCP_AIMt
 
class OCP_FIM_IMPEC
 
class Solver
 

Detailed Description

All control parameters except for well controlers.

Definition at line 93 of file OCPControl.hpp.


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