MOOSE - Multiscale Object Oriented Simulation Environment
|
#include <RateLookup.h>
Public Member Functions | |
void | addColumns (int species, const vector< double > &C1, const vector< double > &C2) |
Adds the columns for a given species. Columns supplied are C1 and C2. More... | |
void | column (unsigned int species, LookupColumn &column) |
void | lookup (const LookupColumn &column, const LookupRow &row, double &C1, double &C2) |
Actually performs the lookup and the linear interpolation. More... | |
LookupTable () | |
LookupTable (double min, double max, unsigned int nDivs, unsigned int nSpecies) | |
number of species (no. of columns / 2) More... | |
void | row (double x, LookupRow &row) |
Private Attributes | |
double | dx_ |
double | max_ |
max of the voltage / caConc range More... | |
double | min_ |
min of the voltage / caConc range More... | |
unsigned int | nColumns_ |
(# columns) = 2 * (# species) More... | |
unsigned int | nPts_ |
vector< double > | table_ |
Flattened table. More... | |
Definition at line 27 of file RateLookup.h.
|
inline |
Definition at line 30 of file RateLookup.h.
LookupTable::LookupTable | ( | double | min, |
double | max, | ||
unsigned int | nDivs, | ||
unsigned int | nSpecies | ||
) |
number of species (no. of columns / 2)
min | min of range |
max | max of range |
nDivs | number of divisions (~ no. of rows) |
Definition at line 15 of file RateLookup.cpp.
void LookupTable::addColumns | ( | int | species, |
const vector< double > & | C1, | ||
const vector< double > & | C2 | ||
) |
Adds the columns for a given species. Columns supplied are C1 and C2.
Definition at line 31 of file RateLookup.cpp.
Referenced by HSolveActive::createLookupTables().
void LookupTable::column | ( | unsigned int | species, |
LookupColumn & | column | ||
) |
Definition at line 56 of file RateLookup.cpp.
References LookupColumn::column.
Referenced by HSolveActive::createLookupTables().
void LookupTable::lookup | ( | const LookupColumn & | column, |
const LookupRow & | row, | ||
double & | C1, | ||
double & | C2 | ||
) |
Actually performs the lookup and the linear interpolation.
Definition at line 76 of file RateLookup.cpp.
References LookupColumn::column, LookupRow::fraction, and LookupRow::row.
Referenced by HSolveActive::reinitChannels().
void LookupTable::row | ( | double | x, |
LookupRow & | row | ||
) |
Returns the row corresponding to x in the "row" parameter. i.e., returns the leftover fraction and the row's start address.
Definition at line 62 of file RateLookup.cpp.
References LookupRow::fraction, and LookupRow::row.
Referenced by HSolveActive::reinitChannels().
|
private |
This is the smallest difference: (max - min) / nDivs
Definition at line 73 of file RateLookup.h.
|
private |
max of the voltage / caConc range
Definition at line 69 of file RateLookup.h.
|
private |
min of the voltage / caConc range
Definition at line 68 of file RateLookup.h.
|
private |
(# columns) = 2 * (# species)
Definition at line 75 of file RateLookup.h.
|
private |
Number of rows in the table. Equal to nDivs + 2, so that interpol. is safe at either end.
Definition at line 70 of file RateLookup.h.
|
private |
Flattened table.
Definition at line 67 of file RateLookup.h.