21 "Computed reversal potential"
29 "Computed reversal potential",
33 "Temperature of cell",
38 "Valence of ion in Nernst calculation",
43 "Internal conc of ion",
48 "External conc of ion",
53 "Voltage scale factor",
68 "Set internal conc of ion, and immediately send out the updated E",
72 "Set external conc of ion, and immediately send out the updated E",
79 static Finfo* NernstFinfos[] =
95 "Author",
"Upinder S. Bhalla, 2007, NCBS",
96 "Description",
"Nernst: Calculates Nernst potential for a given ion based on "
97 "Cin and Cout, the inside and outside concentrations. "
98 "Immediately sends out the potential to all targets.",
102 static const Cinfo NernstCinfo(
106 sizeof( NernstFinfos ) /
sizeof(
Finfo *),
109 sizeof( doc ) /
sizeof(
string )
126 factor_( scale_ * R_OVER_F * Temperature_ / valence_ )
226 double E = ne.
getE();
229 cout <<
"." << flush;
void setTemperature(double value)
static const Cinfo * nernstCinfo
void setCout(double value)
void setScale(double value)
void setValence(int value)
void log(string msg, serverity_level_ type=debug, bool redirectToConsole=true, bool removeTicks=true)
Log to console (and to a log-file)
void setCin(double value)
bool doubleApprox(double x, double y)
void handleCout(const Eref &e, double conc)
static SrcFinfo1< double > * Eout()
double getTemperature() const
static const Cinfo * initCinfo()
static const double R_OVER_F
static const double ZERO_CELSIUS
static const Cinfo * initCinfo()
void handleCin(const Eref &e, double conc)