MOOSE - Multiscale Object Oriented Simulation Environment
|
#include <RC.h>
Public Member Functions | |
double | getCapacitance () const |
double | getInject () const |
double | getResistance () const |
double | getState () const |
double | getV0 () const |
void | process (const Eref &e, ProcPtr proc) |
RC () | |
void | reinit (const Eref &e, ProcPtr proc) |
void | setCapacitance (double capacitance) |
void | setInject (double inject) |
void | setInjectMsg (double inject) |
void | setResistance (double resistance) |
void | setV0 (double voltage) |
Static Public Member Functions | |
static const Cinfo * | initCinfo () |
Private Attributes | |
double | capacitance_ |
double | dt_tau_ |
double | expTau_ |
double | inject_ |
double | msg_inject_ |
double | resistance_ |
double | state_ |
double | v0_ |
double RC::getCapacitance | ( | ) | const |
Definition at line 168 of file RC.cpp.
References capacitance_.
Referenced by initCinfo().
double RC::getInject | ( | ) | const |
Definition at line 186 of file RC.cpp.
References inject_.
Referenced by initCinfo().
double RC::getResistance | ( | ) | const |
Definition at line 156 of file RC.cpp.
References resistance_.
Referenced by initCinfo().
double RC::getState | ( | ) | const |
Definition at line 174 of file RC.cpp.
References state_.
Referenced by initCinfo().
double RC::getV0 | ( | ) | const |
|
static |
Definition at line 50 of file RC.cpp.
References getCapacitance(), getInject(), getResistance(), getState(), getV0(), Neutral::initCinfo(), outputOut(), process(), rcCinfo, reinit(), setCapacitance(), setInject(), setInjectMsg(), setResistance(), and setV0().
calculates the new voltage across the capacitor. this is the exact solution as described in Electronic Circuit and System Simulation Methods by Lawrance Pillage, McGraw-Hill Professional, 1999. pp 87-100. Eqn: 4.7.21
OR, if we use simple Euler: ///
Definition at line 204 of file RC.cpp.
References expTau_, inject_, msg_inject_, outputOut(), resistance_, and state_.
Referenced by initCinfo().
Definition at line 234 of file RC.cpp.
References capacitance_, ProcInfo::dt, dt_tau_, expTau_, msg_inject_, outputOut(), resistance_, state_, and v0_.
Referenced by initCinfo().
void RC::setCapacitance | ( | double | capacitance | ) |
Definition at line 162 of file RC.cpp.
References capacitance_.
Referenced by initCinfo().
void RC::setInject | ( | double | inject | ) |
Definition at line 180 of file RC.cpp.
References inject_.
Referenced by initCinfo().
void RC::setInjectMsg | ( | double | inject | ) |
Definition at line 192 of file RC.cpp.
References msg_inject_.
Referenced by initCinfo().
void RC::setResistance | ( | double | resistance | ) |
Definition at line 150 of file RC.cpp.
References resistance_.
Referenced by initCinfo().
void RC::setV0 | ( | double | voltage | ) |
|
private |
Definition at line 65 of file RC.h.
Referenced by getCapacitance(), reinit(), and setCapacitance().
|
private |
|
private |
Definition at line 67 of file RC.h.
Referenced by getInject(), process(), and setInject().
|
private |
Definition at line 68 of file RC.h.
Referenced by process(), reinit(), and setInjectMsg().
|
private |
Definition at line 64 of file RC.h.
Referenced by getResistance(), process(), reinit(), and setResistance().
|
private |
Definition at line 66 of file RC.h.
Referenced by getState(), process(), and reinit().
|
private |