RectangleStencil Class Reference
#include <Stencil.h>
List of all members.
Public Member Functions |
| RectangleStencil (double dx, double dy, unsigned int nx) |
| ~RectangleStencil () |
void | addFlux (unsigned int meshIndex, vector< double > &f, const vector< vector< double > > &S, const vector< double > &diffConst) const |
Detailed Description
Assumes a 2-D rectangular array, so the index offset for neighboring mesh points in x is 1, and in y is nx.
Constructor & Destructor Documentation
RectangleStencil::RectangleStencil |
( |
double |
dx, |
|
|
double |
dy, |
|
|
unsigned int |
nx | |
|
) |
| | |
RectangleStencil::~RectangleStencil |
( |
|
) |
|
Member Function Documentation
void RectangleStencil::addFlux |
( |
unsigned int |
meshIndex, |
|
|
vector< double > & |
f, |
|
|
const vector< vector< double > > & |
S, |
|
|
const vector< double > & |
diffConst | |
|
) |
| | const [virtual] |
computes the Flux f in the voxel on meshIndex. Takes the matrix of molNumber[meshIndex][pool] and the vector of diffusionConst[pool] as arguments.
Implements Stencil.
The documentation for this class was generated from the following files: