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

#include <ParamReservoir.hpp>

Public Member Functions

void DisplayTable () const
 Print table. More...
 

Public Attributes

string name
 Name of table.
 
USI colNum
 Number of columns of table.
 
vector< string > refName
 name of refData
 
vector< OCP_DBLrefData
 refData for each sub data.
 
vector< vector< vector< OCP_DBL > > > data
 All table with the same name.
 

Detailed Description

TableSet is used to store a series of tables which have the same type. For example, a series of Function Table, each Function table is two-dimension.

Definition at line 27 of file ParamReservoir.hpp.

Member Function Documentation

◆ DisplayTable()

void TableSet::DisplayTable ( ) const

Print table.

TODO: Add Doxygen.

Definition at line 909 of file ParamReservoir.cpp.

910 {
911  cout << "\n---------------------" << endl
912  << name << "\n---------------------" << endl;
913 
914  for (USI n = 0; n < data.size(); n++) {
915  if (refName.size() > n) {
916  cout << refName[n] << " ";
917  cout << refData[n] << endl;
918  }
919 
920  const USI len = data[n][0].size();
921  for (USI i = 0; i < len; i++) {
922  for (USI j = 0; j < colNum; j++) {
923  cout << setw(10) << data[n][j][i];
924  }
925  cout << "\n";
926  }
927  }
928 }
unsigned int USI
Generic unsigned integer.
Definition: OCPConst.hpp:23
vector< string > refName
name of refData
vector< vector< vector< OCP_DBL > > > data
All table with the same name.
vector< OCP_DBL > refData
refData for each sub data.
USI colNum
Number of columns of table.
string name
Name of table.

References colNum, data, name, refData, and refName.


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