OpenCAEPoro  v0.5.0
A simulator for multicomponent porous media flow
Public Member Functions | Protected Attributes | List of all members
SkipStaAnaly Class Reference

Public Member Functions

void SetUseSkip (const OCP_BOOL &flag)
 Set ifUseSkip to true or false.
 
OCP_BOOL IfUseSkip () const
 Return ifUseSkip.
 
void Setup (const OCP_USI &numBulk, const USI &np, const USI &nc)
 Allocate memory for SkipStaAnaly term.
 
void SetFlagSkip (const OCP_USI &n, const OCP_BOOL &flagSkip)
 Set flag for skipping.
 
void AssignValue (const OCP_USI &n, const OCP_DBL &minEigenSkip, const OCP_DBL &PSkip, const OCP_DBL &TSkip, const vector< OCP_DBL > &ziSkip)
 Update variables used for determine if skipping will happen.
 
OCP_BOOL IfSkip (const OCP_DBL &Pin, const OCP_DBL &Tin, const OCP_DBL &Ntin, const vector< OCP_DBL > &Niin, const OCP_USI &n) const
 Determine if skipping will happen.
 
USI CalFtypeIMPEC (const OCP_DBL &Pin, const OCP_DBL &Tin, const OCP_DBL &Ntin, const vector< OCP_DBL > &Niin, const OCP_USI &n)
 Calculate the ftype for IMPEC.
 
USI CalFtypeFIM (const OCP_DBL &Pin, const OCP_DBL &Tin, const OCP_DBL &Ntin, const vector< OCP_DBL > &Niin, const OCP_DBL *S, const USI &np, const OCP_USI &n) const
 Calculate the ftype for FIM.
 
void ResetToLastTimeStep ()
 Reset SkipStaAnaly term to last time step.
 
void UpdateLastTimeStep ()
 Update SkipStaAnaly term at last time step.
 

Protected Attributes

OCP_BOOL ifSetup {OCP_FALSE}
 Only one setup is needed.
 
OCP_BOOL ifUseSkip {OCP_TRUE}
 If true, then Skip option will be used.
 
USI numPhase
 Num of phase used in phase equilibrium calculation.
 
USI numCom
 Num of components used in phase equilibrium calculation.
 
vector< OCP_BOOLflag
 If true, skip will be test.
 
vector< OCP_DBLminEigen
 minimum eigenvalue used for testing skipping
 
vector< OCP_DBLP
 Pressure at last step.
 
vector< OCP_DBLT
 Temperature at last step.
 
vector< OCP_DBLzi
 Mole fraction of components(for test) at last step.
 
vector< OCP_BOOLlflag
 Last flag.
 
vector< OCP_DBLlminEigen
 Last min eigenvalue.
 
vector< OCP_DBLlP
 Last P.
 
vector< OCP_DBLlT
 Last T.
 
vector< OCP_DBLlzi
 Last zi.
 

Detailed Description

Definition at line 25 of file AcceleratePVT.hpp.


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