MOOSE - Multiscale Object Oriented Simulation Environment
|
#include <Stencil.h>
Public Member Functions | |
void | addFlux (unsigned int meshIndex, vector< double > &f, const vector< vector< double > > &S, const vector< double > &diffConst) const |
RectangleStencil (double dx, double dy, unsigned int nx) | |
~RectangleStencil () | |
![]() | |
Stencil () | |
virtual | ~Stencil () |
Private Attributes | |
double | dx_ |
double | dy_ |
double | invDxSq_ |
double | invDySq_ |
unsigned int | nx_ |
Assumes a 2-D rectangular array, so the index offset for neighboring mesh points in x is 1, and in y is nx.
RectangleStencil::RectangleStencil | ( | double | dx, |
double | dy, | ||
unsigned int | nx | ||
) |
RectangleStencil::~RectangleStencil | ( | ) |
Definition at line 159 of file Stencil.cpp.
|
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.
Definition at line 163 of file Stencil.cpp.
References invDxSq_, invDySq_, nx_, stencil1(), and stencilN().
|
private |
Definition at line 76 of file Stencil.h.
Referenced by RectangleStencil().
|
private |
Definition at line 77 of file Stencil.h.
Referenced by RectangleStencil().
|
private |
Definition at line 78 of file Stencil.h.
Referenced by addFlux(), and RectangleStencil().
|
private |
Definition at line 79 of file Stencil.h.
Referenced by addFlux(), and RectangleStencil().
|
private |