#include <ZeroNetChargeElectrodes.hpp>
Inherits ElectrodesStimulusFactory< DIM >.
Public Member Functions | |
ZeroNetChargeElectrodes (std::vector< std::pair< AbstractChasteRegion< DIM > *, AbstractChasteRegion< DIM > * > > &rElectrodePairs, std::vector< double > &rStimulusMagnitudes, std::vector< double > &rDurations, std::vector< double > &rPeriods, std::vector< double > &rStarts, std::vector< double > &rEnds) | |
boost::shared_ptr < AbstractStimulusFunction > | CreateStimulusForNode (unsigned nodeIndex) |
~ZeroNetChargeElectrodes () |
This class implements the specification of two electrodes with a RegularStimulusZeroNetCharge applied to them. Note that the compatibility conditions are the same as its parent class (ElectrodesStimulusFactory), becuase the magnitudes involved are either + or minus 'Magnitude', hence the stimulus will be compatible.
See documentation of ElectrodesStimulusFactory for full functionality.
Definition at line 53 of file ZeroNetChargeElectrodes.hpp.
ZeroNetChargeElectrodes< DIM >::ZeroNetChargeElectrodes | ( | std::vector< std::pair< AbstractChasteRegion< DIM > *, AbstractChasteRegion< DIM > * > > & | rElectrodePairs, | |
std::vector< double > & | rStimulusMagnitudes, | |||
std::vector< double > & | rDurations, | |||
std::vector< double > & | rPeriods, | |||
std::vector< double > & | rStarts, | |||
std::vector< double > & | rEnds | |||
) | [inline] |
Constructor. Electrodes and stimulation parameters need to be passed in.
rElectrodePairs | the pairs of electrodes | |
rStimulusMagnitudes | the magnitudes of the stimuli (microA / cm^3). First electrode will have magnitude value and second electrode will have -magnitude (before being corrected to ensure equal flux). | |
rDurations | the duration of each stimulus (ms) | |
rPeriods | the period of each stimulus (ms) | |
rStarts | the start time of each stimulus (ms). | |
rEnds | the end of each stimulation (ms) |
Definition at line 38 of file ZeroNetChargeElectrodes.cpp.
ZeroNetChargeElectrodes< DIM >::~ZeroNetChargeElectrodes | ( | ) | [inline] |
Destructor
Definition at line 50 of file ZeroNetChargeElectrodes.cpp.
boost::shared_ptr< AbstractStimulusFunction > ZeroNetChargeElectrodes< DIM >::CreateStimulusForNode | ( | unsigned | nodeIndex | ) | [inline, virtual] |
Creates an appropriate stimuus for each node as to abide compatibility conditions.
nodeIndex | the node index for which to create the stimulus |
Reimplemented from ElectrodesStimulusFactory< DIM >.
Definition at line 56 of file ZeroNetChargeElectrodes.cpp.
References ElectrodesStimulusFactory< DIM >::mMagnitudesElectrode1, ElectrodesStimulusFactory< DIM >::mMagnitudesElectrode2, ElectrodesStimulusFactory< DIM >::mrDurations, ElectrodesStimulusFactory< DIM >::mrElectrodePairs, ElectrodesStimulusFactory< DIM >::mrEnds, ElectrodesStimulusFactory< DIM >::mrPeriods, and ElectrodesStimulusFactory< DIM >::mrStarts.