MonitorWells Class Reference

#include <monitorwells.h>

Collaboration diagram for MonitorWells:
Collaboration graph
[legend]

List of all members.

Classes

struct  _NodeWell

Public Member Functions

std::vector< _NodeWell > & getWells ()
const std::vector< _NodeWell > & getWells () const
void printSelf (std::ostream &out)
void outputData (double time, DynamicBase &dyn, TransportBase &trans)
void openFileName (std::string fileName)
 MonitorWells ()
 ~MonitorWells ()

Protected Attributes

std::vector< _NodeWell_wells
std::ofstream _out

Detailed Description

Definition at line 11 of file monitorwells.h.


Constructor & Destructor Documentation

MonitorWells::MonitorWells (  ) 

Definition at line 12 of file monitorwells.cpp.

00013 {
00014 
00015 }

MonitorWells::~MonitorWells (  ) 

Definition at line 7 of file monitorwells.cpp.

00008 {
00009   _out.close();
00010 }


Member Function Documentation

const std::vector<_NodeWell>& MonitorWells::getWells (  )  const [inline]

Definition at line 28 of file monitorwells.h.

00028 {return _wells;}

std::vector<_NodeWell>& MonitorWells::getWells (  )  [inline]

Definition at line 27 of file monitorwells.h.

00027 {return _wells;}

void MonitorWells::openFileName ( std::string  fileName  ) 

Definition at line 27 of file monitorwells.cpp.

00028 {
00029   _out.close();
00030   _out.open(fileName.c_str());
00031 
00032 }

void MonitorWells::outputData ( double  time,
DynamicBase dyn,
TransportBase trans 
)

Definition at line 35 of file monitorwells.cpp.

00036 {
00037   assert(_out.good());
00038   const VecDouble &vP = dyn.getPressureAtCells();
00039   ArrayOfVecDouble  &vT =   trans.getSolutionAtCells();
00040  
00041   _out << time << "\t";
00042   for (unsigned i=0;i<_wells.size();i++)
00043   {
00044     unsigned index = _wells[i].cell_index;
00045     _out << vP(index) << "\t" << vT(index,0) << std::endl;
00046   }
00047 }

void MonitorWells::printSelf ( std::ostream &  out  ) 

Definition at line 17 of file monitorwells.cpp.

00018 {
00019   for (unsigned i=0;i<_wells.size();i++)
00020   {
00021     out << "Point: " <<  _wells[i].P[0] << " " << _wells[i].P[1] << " " << _wells[i].P[2] << "Index: " << _wells[i].cell_index << std::endl;
00022 
00023 
00024   }
00025 }


Member Data Documentation

std::ofstream MonitorWells::_out [protected]

Definition at line 23 of file monitorwells.h.

std::vector<_NodeWell> MonitorWells::_wells [protected]

Definition at line 22 of file monitorwells.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Sun Apr 8 23:13:23 2012 for CO2INJECTION by  doxygen 1.6.3