OpenCAEPoro  0.2.0 Sep/22/2022
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< 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 PVTW Table, each PVTW 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 748 of file ParamReservoir.cpp.

749 {
750  cout << "---------------------\n";
751  cout << "TABLE: " << name << "\n";
752  cout << "---------------------\n";
753  for (auto v : data) {
754  const USI len = v[0].size();
755  for (USI i = 0; i < len; i++) {
756  for (USI j = 0; j < colNum; j++) {
757  cout << setw(12) << v[j][i];
758  }
759  cout << "\n";
760  }
761  }
762 }
unsigned int USI
Generic unsigned integer.
Definition: OCPConst.hpp:22
vector< vector< vector< OCP_DBL > > > data
All table with the same name.
USI colNum
Number of columns of table.
string name
Name of table.

References colNum, data, and name.


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