#include <reservoirfunction.h>
Inheritance diagram for MODEL::ReservoirFunction:
Public Types | |
typedef NT::number | numT |
typedef NT::vect | vect |
typedef NT::vf | vf |
typedef NT::matrix | matrix |
typedef exchange_rate_f* | exchange_rate |
typedef exchange_rate* | exchange_rate_list |
Public Methods | |
typedef number | exchange_rate_f (ReservoirFunction *,const vect &u) |
ReservoirFunction () | |
ReservoirFunction (const ReservoirFunction &rf) | |
virtual void | add_exchange_rate (int from, int to, exchange_rate er) |
virtual const vect& | input (vect &fu, const vect &u)=0 |
virtual const vect& | function (vect &fu, const vect &u) |
number | get_rate (integer from, integer to, const vect &u) |
Private Attributes | |
exchange_rate_list | R [dims+1] |
class MySystem : ReservoirFunction<3> { ... };
Definition at line 59 of file reservoirfunction.h.
|
Copy constructor: copy parameters as well ! \note: this should not work, as R is not copied, but strangely enough, it does. WHY? And it doesn't ... It used to work because the amputated version does not have a correct call to the base class, and just copied all things binary. Of course, once you try to make a "real" copy, it fails.
Definition at line 96 of file reservoirfunction.h. |
|
This is the workhorse: it tries to take all the exchange rate functions and puts them into a coherent system which reacts like a vectorfunction. You have to make sure you defined them all. Reimplemented from MODEL::VectorFunction. Definition at line 132 of file reservoirfunction.h. |
|
This is the input vector. It might depend on the specific point Referenced by function().
|
More Info? Michael Peeters. Also, check our research website: www.alna.vub.ac.be
Last update: June 2002.