37 #include <lifev/electrophysiology/stimulus/StimulusPMJ.hpp> 60 fin.open ( fileName.c_str() );
63 StimulusPMJ_Activation junction;
68 fin >> junction.duration;
69 M_activationData.push_back ( junction );
82 M_activationData.push_back ( junction );
93 for (activationData_type::iterator it = M_activationData.begin(); it != M_activationData.end(); ++it)
95 Real distance = std::sqrt ( (x - it->x) * (x - it->x) + (y - it->y) * (y - it->y) + (z - it->z) * (z - it->z) );
98 if (distance <= M_radius && t >= (it->time) && t <= (it->time + it->duration) )
100 current += M_totalCurrent / volumeOfBall;
109 std::cout <<
"\n\n\t\tPMJ activation Informations\n\n";
111 std::cout <<
"\n\t\tList of parameters:\n\n";
113 std::cout <<
"Radius current application: " << M_radius << std::endl;
114 std::cout <<
"Total current: " << M_totalCurrent << std::endl;
115 std::cout <<
"Problem folder: " << M_problemFolder << std::endl;
116 std::cout <<
"\n\t\t End of PMJ activation Informations\n\n\n";
void setPMJAddJunction(Real x, Real y, Real z, Real time, Real duration)
void setPMJFromFile(std::string fileName)
Setters.
Real appliedCurrent(const Real &t, const Real &x, const Real &y, const Real &z, const ID &i)
Methods.
void updateInverseJacobian(const UInt &iQuadPt)
std::vector< StimulusPMJ_Activation > activationData_type
StimulusPMJ()
Empty Constructor.
double Real
Generic real data.
activationData_type M_activationData