FWellsSource Class Reference

#include <fwellssource.h>

Inheritance diagram for FWellsSource:
Inheritance graph
[legend]
Collaboration diagram for FWellsSource:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 FWellsSource (VecWellInfo wells)
virtual ~FWellsSource ()
double operator() (const VecDouble &p, const unsigned int component) const

Private Attributes

VecWellInfo _wells
VecDouble _v

Detailed Description

Definition at line 10 of file fwellssource.h.


Constructor & Destructor Documentation

FWellsSource::FWellsSource ( VecWellInfo  wells  ) 

Definition at line 4 of file fwellssource.cpp.

00005    :_wells(wells)
00006 {
00007   _v.reinit(wells.size());
00008   unsigned i=0;
00009   for (VecWellInfo::iterator it=wells.begin();it!=wells.end();it++)
00010   {
00011     _v(i++)=it->getSourceInjRate()/it->volume();
00012   }
00013 }

virtual FWellsSource::~FWellsSource (  )  [inline, virtual]

Definition at line 19 of file fwellssource.h.

00019 {};


Member Function Documentation

double FWellsSource::operator() ( const VecDouble p,
const unsigned int  component 
) const [virtual]

Implements GeneralFunctionInterface.

Definition at line 17 of file fwellssource.cpp.

00018 {
00019   assert(component==0);
00020   for (unsigned i=0;i<_wells.size();i++)
00021   {
00022     if (_wells[i].isPointInWell(p))
00023       return _v(i);
00024   }
00025   return 0.0;
00026 }


Member Data Documentation

Definition at line 14 of file fwellssource.h.

Definition at line 13 of file fwellssource.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:10 2012 for CO2INJECTION by  doxygen 1.6.3