Private Attributes

Detailed Description

This will be a class for reservoir rate equations, on which we can do noise simulations. There is always one dump reservoir, which corresponds to the infinite universe. Use it (but don't fill it up.)

What does it do? For n dimensions, you have n+1 reservoirs

(include the universe which is indexed by 0), so we need to define 0.5*n(n-1)+n exchange rates. (The universe only eats particles.)

You define these using the supplied macros for ease, but it

the future I might write a parser. The class then represents these to the outside world as a normal VectorFunction, but of course the extra consistency can be used to extract noise response information.

How do I use it? Derive your class from ReservoirFunction,

and implement all the required exchange rates (as friend functions). If you miss one, the class will complain (I hope).

Constructor & Destructor Documentation

ReservoirFunction (

const ReservoirFunction<dims, nelem, NT> & rf ) [inline]

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.