51 static constexpr
const char*
UCathode =
"Cathode potential (mV)";
53 static constexpr
const char*
UAnode =
"Anode potential (mV)";
55 static constexpr
const char*
VCets =
"CETS voltage (mV)";
57 static constexpr
const char*
VCts =
"CTS voltage (mV)";
std::set< _Type, _Compare, _Alloc > CepsSet
C++ set.
float CepsReal
Need single precision floating point.
std::shared_ptr< DistributedHaloVector > DHVecPtr
Typedef for pointer on Distributed Halo CepsVector.
Common elements of problems with a pacemaker.
Bidomain equation with extracardiac medium main class.
Encapsulates all the geometrical data.
PowerSupply(PacemakerBidomainProblem *problem)
constructor
~PowerSupply() override=default
destructor
PacemakerBidomainProblem * m_problem
Linked problem.
CepsReal eval(CepsStandardArgs args) final
Evaluation function.
Bidomain equation with extracardiac medium and connected to a pacemaker main class.
CepsSet< CepsAttribute > getAnodeAttributes() const override
Get cathode attributes if set.
void setupWithParameters(InputParameters *params) override
Sets options from the parameters.
Unknown * getUAnodeUnknown() const override
Link to the Up unknown of the problem.
void defineSourceTerms() override
Define the source terms.
Unknown * getVCetsUnknown() const override
Link to the VCets unknown of the problem.
Unknown * getUCathodeUnknown() const override
Link to the Um unknown of the problem.
CepsSet< CepsAttribute > getCathodeAttributes() const override
Get cathode attributes if set.
PacemakerBidomainProblem(Geometry *g, InputParameters *=nullptr)
Constructor from geometry and possibly parameters.
Unknown * getVCtsUnknown() const override
Link to the VCts unknown of the problem.
virtual ~PacemakerBidomainProblem()=default
Destructor.
void defineUnknowns() override
Transmembrane voltage (mV), Extracellular potential (mV) and both potential of the pacemaker.
void defineBoundaryConditions() override
Define the boundary conditions.
void run() override
Run the simulation.
void getInitialCondition(DHVecPtr v0) const override
Zero and fill with initial conditions for vm and ue, and put QCets to Cets*AmpStim.
A class used to defined an unknown of a PDE problem The unknown can be defined on a specific region,...
Structure used to pass arguments to SAFunc (see pde directory) The flags of the SAFunc allows extract...
static constexpr const char * vm
Transmembrane voltage.
static constexpr const char * ue
Extracellular and extracardiac potential.
Struct for all names of unknowns.
static constexpr const char * VCts
Voltage on reserve capacitor.
static constexpr const char * ue
Extracellular and extracardiac potential.
static constexpr const char * UCathode
Potential of cathode (device side)
static constexpr const char * VCets
Voltage on tank capacitor.
static constexpr const char * UAnode
Potential of anode (device side)
static constexpr const char * vm
Transmebrane voltage.