MOOSE - Multiscale Object Oriented Simulation Environment
|
#include <ReadCell.h>
Public Member Functions | |
Id | read (const string &filename, const string &cellname, Id parent) |
ReadCell () | |
Static Public Member Functions | |
static void | addChannelMessage (Id chan) |
Private Member Functions | |
bool | addCaConc (Id compt, Id chan, double value, double dia, double length) |
bool | addCanonicalChannel (Id compt, Id chan, double value, double dia, double length) |
Id | addChannel (Id compt, Id chan, double value, double dia, double length) |
bool | addNernst (Id compt, Id chan, double value) |
bool | addSpikeGen (Id compt, Id chan, double value, double dia, double length) |
bool | buildChannels (Id compt, vector< string > &argv, double diameter, double length) |
Id | buildCompartment (const string &name, const string &parent, double x0, double y0, double z0, double x, double y, double z, double d, double &length, vector< string > &argv) |
void | countProtos () |
Id | findChannel (const string &name) |
bool | innerRead (ifstream &fin) |
bool | readData (const string &line) |
bool | readScript (const string &line) |
Id | startGraftCell (const string &cellPath) |
Private Attributes | |
Id | cell_ |
map< string, Id > | chanProtos_ |
double | CM_ |
Id | currCell_ |
bool | doubleEndpointFlag_ |
double | ELEAK_ |
bool | eleakFlag_ |
double | EREST_ACT_ |
bool | erestFlag_ |
string | fileName_ |
bool | graftFlag_ |
Id | lastCompt_ |
unsigned int | lineNum_ |
unsigned int | numChannels_ |
unsigned int | numCompartments_ |
unsigned int | numOthers_ |
unsigned int | numProtoChans_ |
unsigned int | numProtoCompts_ |
unsigned int | numProtoOthers_ |
bool | polarFlag_ |
Id | protoCompt_ |
double | RA_ |
bool | relativeCoordsFlag_ |
double | RM_ |
Shell * | shell_ |
bool | symmetricFlag_ |
The ReadCell class implements the old GENESIS cellreader functionality.
ReadCell is partially implemented but works for most common uses and will evolve to some further point.
One significant semantic difference from the GENESIS version is that in MOOSE ReadCell can accept values of globals defined in the script, but will NOT alter the script global values.
Definition at line 24 of file ReadCell.h.
ReadCell::ReadCell | ( | ) |
Definition at line 23 of file ReadCell.cpp.
References chanProtos_, id, name, and Id::path().
Definition at line 846 of file ReadCell.cpp.
References Element::cinfo(), Id::element(), Field< A >::get(), graftFlag_, M_PI, Cinfo::name(), numOthers_, Field< A >::set(), and value.
Referenced by addChannel().
|
private |
Adds a typical channel to a compartment:
Typical channels currently are: HHChannel, HHChannel2D and SynChan. All of these have the same "channel" interface, and have a "Gbar" field.
Definition at line 774 of file ReadCell.cpp.
References ObjId::bad(), calcSurf(), Element::cinfo(), Shell::doAddMsg(), Id::element(), graftFlag_, Cinfo::name(), numChannels_, Field< A >::set(), shell_, and value.
Referenced by addChannel().
Definition at line 738 of file ReadCell.cpp.
References addCaConc(), addCanonicalChannel(), addNernst(), addSpikeGen(), Shell::doCopy(), Id::element(), Element::getName(), and shell_.
Referenced by buildChannels().
|
static |
Definition at line 985 of file ReadCell.cpp.
References ObjId::bad(), Neutral::children(), Eref::data(), Id::eref(), Field< A >::get(), name, and moose::tokenize().
Referenced by buildChannels(), and doClassSpecificMessaging().
Definition at line 893 of file ReadCell.cpp.
References graftFlag_, and numOthers_.
Referenced by addChannel().
Definition at line 814 of file ReadCell.cpp.
References Element::cinfo(), Shell::doAddMsg(), Id::element(), graftFlag_, Cinfo::name(), numOthers_, Field< A >::set(), and shell_.
Referenced by addChannel().
|
private |
Definition at line 629 of file ReadCell.cpp.
References addChannel(), addChannelMessage(), calcSurf(), doubleEndpointFlag_, Id::element(), fileName_, findChannel(), Element::getName(), lineNum_, M_PI, Field< A >::set(), and value.
Referenced by readData().
|
private |
Definition at line 378 of file ReadCell.cpp.
References ObjId::bad(), BADINDEX, calcSurf(), CM_, currCell_, Shell::doAddMsg(), Shell::doCopy(), Shell::doCreate(), doubleEndpointFlag_, ELEAK_, eleakFlag_, Id::element(), EREST_ACT_, erestFlag_, fileName_, Cinfo::findFinfo(), Field< A >::get(), Element::getNeighbors(), graftFlag_, SymCompartment::initCinfo(), lastCompt_, lineNum_, M_PI, MooseGlobal, numChannels_, numCompartments_, numOthers_, numProtoChans_, numProtoCompts_, numProtoOthers_, Id::path(), protoCompt_, RA_, relativeCoordsFlag_, RM_, Field< A >::set(), shell_, and symmetricFlag_.
Referenced by readData().
|
private |
Count elements under a tree.
Definition at line 1034 of file ReadCell.cpp.
Referenced by readScript().
|
private |
Definition at line 603 of file ReadCell.cpp.
References chanProtos_.
Referenced by buildChannels().
|
private |
Definition at line 155 of file ReadCell.cpp.
References COMMENT, DATA, lineNum_, numChannels_, numCompartments_, numOthers_, readData(), readScript(), SCRIPT, and moose::trim().
Referenced by read().
The readcell function implements the old GENESIS cellreader functionality.
Definition at line 108 of file ReadCell.cpp.
References cell_, Element::cinfo(), currCell_, Shell::doCreate(), Id::element(), fileName_, innerRead(), Cinfo::isA(), MooseGlobal, and shell_.
Referenced by Shell::doLoadModel().
|
private |
Definition at line 309 of file ReadCell.cpp.
References buildChannels(), buildCompartment(), doubleEndpointFlag_, fileName_, lineNum_, M_PI, name, polarFlag_, and moose::tokenize().
Referenced by innerRead().
|
private |
Definition at line 221 of file ReadCell.cpp.
References cell_, CM_, countProtos(), currCell_, doubleEndpointFlag_, ELEAK_, eleakFlag_, EREST_ACT_, erestFlag_, fileName_, graftFlag_, lineNum_, Id::path(), polarFlag_, protoCompt_, RA_, relativeCoordsFlag_, RM_, startGraftCell(), symmetricFlag_, and moose::tokenize().
Referenced by innerRead().
|
private |
Definition at line 558 of file ReadCell.cpp.
References ObjId::bad(), Shell::doCreate(), fileName_, lineNum_, MooseGlobal, Id::path(), and shell_.
Referenced by readScript().
|
private |
Definition at line 122 of file ReadCell.h.
Referenced by read(), and readScript().
|
private |
Definition at line 145 of file ReadCell.h.
Referenced by findChannel(), and ReadCell().
|
private |
Definition at line 106 of file ReadCell.h.
Referenced by buildCompartment(), and readScript().
|
private |
Definition at line 123 of file ReadCell.h.
Referenced by buildCompartment(), read(), and readScript().
|
private |
Definition at line 142 of file ReadCell.h.
Referenced by buildChannels(), buildCompartment(), readData(), and readScript().
|
private |
Definition at line 109 of file ReadCell.h.
Referenced by buildCompartment(), and readScript().
|
private |
Definition at line 120 of file ReadCell.h.
Referenced by buildCompartment(), and readScript().
|
private |
Definition at line 108 of file ReadCell.h.
Referenced by buildCompartment(), and readScript().
|
private |
Definition at line 119 of file ReadCell.h.
Referenced by buildCompartment(), and readScript().
|
private |
Definition at line 102 of file ReadCell.h.
Referenced by buildChannels(), buildCompartment(), read(), readData(), readScript(), and startGraftCell().
|
private |
Flag indicating if we are building the main cell, or just a freely hanging branch which will be grafted on later.
Definition at line 139 of file ReadCell.h.
Referenced by addCaConc(), addCanonicalChannel(), addNernst(), addSpikeGen(), buildCompartment(), and readScript().
|
private |
Definition at line 124 of file ReadCell.h.
Referenced by buildCompartment().
|
private |
Definition at line 103 of file ReadCell.h.
Referenced by buildChannels(), buildCompartment(), innerRead(), readData(), readScript(), and startGraftCell().
|
private |
Definition at line 128 of file ReadCell.h.
Referenced by addCanonicalChannel(), buildCompartment(), and innerRead().
|
private |
Definition at line 127 of file ReadCell.h.
Referenced by buildCompartment(), and innerRead().
|
private |
Definition at line 129 of file ReadCell.h.
Referenced by addCaConc(), addNernst(), addSpikeGen(), buildCompartment(), and innerRead().
|
private |
Definition at line 132 of file ReadCell.h.
Referenced by buildCompartment().
|
private |
Definition at line 131 of file ReadCell.h.
Referenced by buildCompartment().
|
private |
Definition at line 133 of file ReadCell.h.
Referenced by buildCompartment().
|
private |
Definition at line 140 of file ReadCell.h.
Referenced by readData(), and readScript().
|
private |
Definition at line 125 of file ReadCell.h.
Referenced by buildCompartment(), and readScript().
|
private |
Definition at line 107 of file ReadCell.h.
Referenced by buildCompartment(), and readScript().
|
private |
Definition at line 141 of file ReadCell.h.
Referenced by buildCompartment(), and readScript().
|
private |
Definition at line 105 of file ReadCell.h.
Referenced by buildCompartment(), and readScript().
|
private |
Definition at line 147 of file ReadCell.h.
Referenced by addCanonicalChannel(), addChannel(), addSpikeGen(), buildCompartment(), read(), and startGraftCell().
|
private |
Definition at line 143 of file ReadCell.h.
Referenced by buildCompartment(), and readScript().