44 std::vector<double>& rStimulusMagnitudes,
45 std::vector<double>& rDurations,
46 std::vector<double>& rPeriods,
47 std::vector<double>& rStarts,
48 std::vector<double>& rEnds)
61 boost::shared_ptr<RegularStimulusZeroNetCharge> p_stimulus;
62 for (
unsigned pair_index = 0; pair_index < this->mrElectrodePairs.size(); pair_index++)
64 if (this->mrElectrodePairs[pair_index].first->DoesContain(pNode->
GetPoint()) )
66 p_stimulus.reset (
new RegularStimulusZeroNetCharge(this->mMagnitudesElectrode1[pair_index], this->mrDurations[pair_index], this->mrPeriods[pair_index], this->mrStarts[pair_index], this->mrEnds[pair_index]));
68 else if (this->mrElectrodePairs[pair_index].second->DoesContain(pNode->
GetPoint()) )
70 p_stimulus.reset (
new RegularStimulusZeroNetCharge(this->mMagnitudesElectrode2[pair_index], this->mrDurations[pair_index], this->mrPeriods[pair_index], this->mrStarts[pair_index], this->mrEnds[pair_index]));
74 p_stimulus.reset (
new RegularStimulusZeroNetCharge(0.0, this->mrDurations[pair_index], this->mrPeriods[pair_index], this->mrStarts[pair_index], this->mrEnds[pair_index]) );
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)